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
Deletes element x from heap. Time complexity: O(logn) Space complexity: O(1)
public void delete(Node<T> x) { decreaseKey(x, min.key); extractMin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void binomialHeapDelete(Node x) {\n\t\tthis.binomialHeapDecreaseKey(x, Integer.MIN_VALUE);\n\t\tthis.binomialHeapExtractMin();\n\t}", "public int remove() \r\n { \r\n int v = h[1];\r\n hPos[v] = 0; // v is no longer in heap\r\n h[N+1] = 0; // put null node into empty spot\r\n \r\n h[1] = h[N--];\r\n siftDown(1);\r\n \r\n return v;\r\n }", "public int delete() {\r\n int ret = heap.get(0);\r\n heap.set(0, heap.get(heap.size() - 1));\r\n heap.remove(heap.size() - 1);\r\n\r\n siftDown(0);\r\n\r\n return ret;\r\n }", "void minDecrease(int i,int x)\n {\n arr[i]=x;\n while(i!=0 && arr[MyHeap.parent(i)]>arr[i])\n {\n swap(MyHeap.parent(i),i);\n i=MyHeap.parent(i);\n }\n }", "@Override\n public T remove() throws NoSuchElementException {\n if (size() == 0) {\n // throws NoSuchElementException if the heap is empty\n throw new NoSuchElementException();\n }\n\n // Store the root of heap before it is removed\n T root = heap[0];\n // Replace root with last element in the heap\n heap[0] = heap[size() - 1];\n // Decrease number of elements by 1, removes the old root from heap\n nelems--;\n // Trickle down the new root to the appropriate level in the heap\n trickleDown(0);\n\n // Return the old root\n return root;\n }", "@Override\n public int delete(int index) {\n if (isEmpty()) {\n throw new IllegalStateException(\"Heap is empty.\");\n }\n\n int keyItem = heap[index];\n heap[index] = heap[heapSize - 1];\n usedSize--;\n heapSize--;\n heapifyDown(index);\n return keyItem;\n }", "public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }", "public int delete(int ind)\n {\n if(isEmpty())\n {\n throw new NoSuchElementException(\"Underflow Exeption\");\n }\n else {\n int keyItem = heap[ind];\n heap[ind] = heap[heapSize-1];\n heapSize--;\n heapifyDown(ind);\n return keyItem;\n }\n }", "public static int delete(int[] arr,int heapSize)//SortedInDecendingOrder(MinHeap)\n\t{\n\t\t/*Replaceing Last Element With Min-Root & Heapifying*/\n\t\t//Replacing\n\t\tint temp=arr[0];\n\t\tarr[0]=arr[heapSize-1];\n\t\theapSize--;\n\t\t//Heapifying\n\t\tint parentIndex=0;\n\t\tint leftIndex=1;\n\t\tint rightIndex=2;\n\t\tint minIndex=parentIndex;\n\t\twhile(leftIndex<heapSize)\n\t\t{\n\t\t\tif(arr[leftIndex]<arr[minIndex])\n\t\t\t\tminIndex=leftIndex;\n\t\t\tif(rightIndex<heapSize && arr[rightIndex]<arr[minIndex])\n\t\t\t\tminIndex=rightIndex;\n\t\t\tif(minIndex!=parentIndex)//SWAP\n\t\t\t{\n\t\t\t\tint t=arr[parentIndex];\n\t\t\t\tarr[parentIndex]=arr[minIndex];\n\t\t\t\tarr[minIndex]=t;\n\t\t\t\tparentIndex=minIndex;\n\t\t\t\tleftIndex=2*parentIndex+1;\n\t\t\t\trightIndex=leftIndex+1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\treturn temp;\n\t}", "private int deleteMax() {\n int ret = heap[0];\n heap[0] = heap[--size];\n\n // Move root back down\n int pos = 0;\n while (pos < size / 2) {\n int left = getLeftIdx(pos), right = getRightIdx(pos);\n\n // Compare left and right child elements and swap accordingly\n if (heap[pos] < heap[left] || heap[pos] < heap[right]) {\n if (heap[left] > heap[right]) {\n swap(pos, left);\n pos = left;\n } else {\n swap(pos, right);\n pos = right;\n }\n } else {\n break;\n }\n }\n\n return ret;\n }", "private int remove(int index){\n\t\tremovedItem=heap[index];\n\t\theap[index]=INFINITE;\n\t\tshiftUp(index);\n\t\treturn extractMax();\n\t}", "protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }", "private void heapifyRemove() {\n // this is called after the item at the bottom-left has been put at the root\n // we need to see if this item should swap down\n int node = 0;\n int left = 1;\n int right = 2;\n int next;\n\n // store the item at the root in temp\n T temp = heap[node];\n\n // find out where we might want to swap root \n if ((heap[left] == null) && (heap[right] == null)) {\n next = count; // no children, so no swapping\n return;\n } else if (heap[right] == null) {\n next = left; // we will check left child\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) { // figure out which is the biggest of the two children\n next = left; // left is bigger than right, so check left child\n } else {\n next = right; // check right child\n }\n\n // compare heap[next] to item temp, if bigger, swap, and then repeat process\n while ((next < count) && (((Comparable) heap[next]).compareTo(temp) > 0)) {\n heap[node] = heap[next];\n node = next;\n left = 2 * node + 1; // left child of current node\n right = 2 * (node + 1); // right child of current node\n if ((heap[left] == null) && (heap[right] == null)) {\n next = count;\n } else if (heap[right] == null) {\n next = left;\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) {\n next = left;\n } else {\n next = right;\n }\n }\n heap[node] = temp;\n\n }", "@Override\n public E remove() {\n if (size == 0){\n throw new NoSuchElementException();\n }\n E removed = heap[0];\n heap[0] = heap[--size];\n siftDown(0);\n return removed;\n }", "public int deleteMin() {\n int keyItem = heap[0];\n delete(0);\n return keyItem;\n }", "private static Node delMin(ArrayList<Node> minHeap) {\n\t\tNode min = minHeap.remove(1);\n\t\t//put last element first\n\t\tint n = minHeap.size();\n\t\tif (n==1) return min;\n\t\tNode last = minHeap.remove(n-1);\n\t\tminHeap.add(1, last);\n\t\t//sink the new top to its right position\n\t\tsink(minHeap);\n\t\treturn min;\n\t}", "public HuffmanTreeNode deleteFromHeapAt(int index) {\n\t\tHuffmanTreeNode[] heap = swap(this.getHuffmanHeap(), index, this.getHuffmanHeap().length - 1);\n\t\tHuffmanTreeNode deletedNode = heap[heap.length - 1];\n\t\tHuffmanTreeNode[] newHeap = new HuffmanTreeNode[heap.length - 1];\n\t\n\t\tfor (int i = 0; i < newHeap.length; i++)\n\t\t\tnewHeap[i] = heap[i];\n\t\t\n\t\tnewHeap = heapSort(newHeap);\n\t\tthis.setHuffmanHeap(newHeap);\n\t\t\n\t\treturn deletedNode;\n\t}", "public boolean delete(int i) {\r\n\t\tif (i >= theHeap.size() || i < 0)\r\n\t\t\treturn false;\r\n\t\tInteger minimo = (Integer) getValue(i) - (Integer) getMin() + 1;\r\n\t\tdecreaseKey(i, minimo);\r\n\t\tremoveMin();\r\n\t\treturn true;\r\n\t}", "public int Delete(DHeap_Item item)\n {\n \tthis.Decrease_Key(item, Math.abs(Integer.MIN_VALUE+item.getKey()));\n \treturn this.Delete_Min();\n }", "public AnyType deleteMin() throws NoSuchElementException {\n\t\t\n\t\t// if the heap is empty, throw a NoSuchElementException\n\t\tif(this.size() == 0){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\n\t\t// store the minimum item so that it may be returned at the end\n\t\tAnyType minValue = this.findMin();\n\n\t\t// replace the item at minIndex with the last item in the tree\n\t\tAnyType lastValue = this.array[this.size()-1];\n\t\tthis.array[0] = lastValue;\n\t\tthis.array[this.size() - 1] = null;\n\t\t\n\t\t// update size\n\t\tthis.currentSize--;\n\n\t\t// percolate the item at minIndex down the tree until heap order is restored\n\t\t// It is STRONGLY recommended that you write a percolateDown helper method!\n\t\tthis.percolateDown(0);\n\t\t\n\t\t// return the minimum item that was stored\n\t\treturn minValue;\n\t}", "public static int deleteMaxHeap(Heap<Integer> heap) {\n\t\tint temp;\n\t\tif (heap.count == 0) {\n\t\t\treturn -1;\n\t\t}\n\t\ttemp = heap.elements[0];\n\t\theap.elements[0] = heap.elements[heap.count - 1];\n\t\theap.count--;\n\t\theapifyMax(heap, 0);\n\t\treturn temp;\n\t}", "public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }", "void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "public boolean decreaseKey(int i, Integer element) {\r\n\t\tif (i < 0 || i > theHeap.size() - 1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (element <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttheHeap.set(i, (T) (Integer) ((Integer) theHeap.get(i) - element));\r\n\t\tsiftUp(i);\r\n\t\treturn true;\r\n\t}", "private void heapDown(int position) {\n\t\tMinHeapNode<T> temp = heap[position]; \r\n\t\tint child; \r\n\t\tfor (; position * 2 <= currentSize; position = child) { \r\n\t\t\tchild = 2 * position; //get child\r\n\t\t\tif (child != currentSize && heap[child + 1].getTime() < heap[child].getTime()) \r\n\t\t\t\tchild++; \r\n\t if (heap[child].getTime() < temp.getTime()) //child < node\r\n\t \theap[position] = heap[child]; //move child up \r\n\t else \r\n\t break; \r\n\t } \r\n\t heap[position] = temp; \r\n\t }", "@Override\n public T removeMax() throws EmptyCollectionException {\n if (count == 0) {\n throw new EmptyCollectionException(\"Heap\");\n }\n T element = heap[0];\n // swap item at top of heap, with last item added\n heap[0] = heap[count - 1];\n // call heapify to see if new root needs to swap down\n heapifyRemove();\n\n count--;\n return element;\n }", "private void swim(int x) {\n while (x > 1 && less(heap[x / 2], heap[x])) {\n exch(heap, x, x / 2);\n x = x / 2;\n }\n }", "void MaxInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] < arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "public void deleteMin() {\r\n\t\tif (empty())\r\n\t\t\treturn;\r\n\t\telse {\r\n\t\t\tif (this.size > 0) {\r\n\t\t\t\tthis.size--;\r\n\t\t\t}\r\n\t\t\tif (this.size == 0) {\r\n\t\t\t\tthis.empty = true;\r\n\t\t\t}\r\n\r\n\t\t\tHeapNode hN = this.min;\r\n\t\t\tint rnkCount = 0;\r\n\t\t\tHeapNode hNIterator = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\trnkCount++;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t}\r\n\t\t\tthis.HeapTreesArray[rnkCount] = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\trnkCount--;\r\n\t\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\t\tif (hNIterator != null) {\r\n\t\t\t\tbH.empty = false;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\tbH.HeapTreesArray[rnkCount] = hNIterator;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t\tbH.HeapTreesArray[rnkCount].rightBrother = null;\r\n\t\t\t\tif (hNIterator != null) {\r\n\t\t\t\t\thNIterator.leftBrother = null;\r\n\t\t\t\t}\r\n\t\t\t\trnkCount = rnkCount - 1;\r\n\t\t\t}\r\n\t\t\tthis.min = null;\r\n\t\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\t\tif (this.min == null) {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tif (this.HeapTreesArray[i].value < this.min.value) {\r\n\t\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!bH.empty()) {\r\n\t\t\t\tfor (int i = 0; i < bH.HeapTreesArray.length; i++) {\r\n\t\t\t\t\tif (bH.min == null) {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tif (bH.HeapTreesArray[i].value < bH.min.value) {\r\n\t\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.meld(bH);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "private void siftDown(int k, T x) {\n int half = size >>> 1;\n while (k < half) {\n int child = (k << 1) + 1;\n Object c = heap[child];\n int right = child + 1;\n if (right < size &&\n comparator.compare((T) c, (T) heap[right]) > 0)\n c = heap[child = right];\n if (comparator.compare(x, (T) c) <= 0)\n break;\n heap[k] = c;\n k = child;\n }\n heap[k] = x;\n }", "public void remove(E x) {\n\n if(head == null) {\n return; // nothing to return.\n }\n\n if(head.data.equals(x)) {\n head = head.next; // moves where the first pointer is pointing to, and the garbage collector will delete the first element that has not pointers(old one)\n size--;\n return;\n }\n\n // Day 2\n RectNode<E> current = head;\n RectNode<E> back = head;\n\n while(current != null && !current.data.equals(x)) {\n back = current;\n current = current.next;\n }\n\n if(current == null) return;\n\n // else\n back.next = current.next;\n size--;\n\n }", "@Override\r\n\tpublic E remove() \r\n\t{\r\n\t\tif(theData.isEmpty())\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t//Save the top of the Heap.\r\n\t\tE result = theData.get(0);\r\n\t\t\r\n\t\t//If only one item then remove it.\r\n\t\tif(theData.size() == 1)\r\n\t\t{\r\n\t\t\ttheData.remove(0);\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Remove the last item from the ArrayList and place it into\r\n\t\t * the first position. \r\n\t\t*/\r\n\t\ttheData.set(0, theData.remove(theData.size() - 1));\r\n\t\t\r\n\t\t//The parent starts at the top.\r\n\t\tint parent = 0;\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tint leftChild = 2 * parent + 1;\r\n\t\t\tif(leftChild >= theData.size())\r\n\t\t\t{\r\n\t\t\t\tbreak; //Out of Heap.\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint rightChild = leftChild + 1;\r\n\t\t\tint minChild = leftChild; //Assume leftChild is smaller.\r\n\t\t\t\r\n\t\t\t//See whether rightChild is smaller.\r\n\t\t\tif(rightChild < theData.size()\r\n\t\t\t\t&& compare(theData.get(leftChild), theData.get(rightChild)) > 0)\r\n\t\t\t{\r\n\t\t\t\tminChild = rightChild;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//assert: minChild is the index of the smaller child.\r\n\t\t\t//Move smaller child up the heap if necessary.\r\n\t\t\tif(compare(theData.get(parent), theData.get(minChild)) > 0)\r\n\t\t\t{\r\n\t\t\t\tswap(parent, minChild);\r\n\t\t\t\tparent = minChild;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbreak; //Heap property is restored.\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int pop(){\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\tswap(0,size()-1);\n\t\t\tPair p=heap.remove(size()-1);\n\t\t\tlocation.remove(p.element);\n\t\t\tpushDownRoot();\n\t\t\treturn (int) p.element;\n\t\t}\n\t\t\n\t}", "public static void insertHeap(int x)\n {\n if(s.isEmpty()){\n s.add(x);\n }\n else if(x>s.peek()){\n g.add(x);\n }\n else if(g.isEmpty()){\n g.add(s.poll());\n s.add(x);\n }\n else {\n s.add(x);\n }\n balanceHeaps();\n \n }", "public void heapDecreaseKey(node_data node){\n\t\tint v = node.getKey();\n\t\tint i = 0;\n\t\twhile (i<_size && v!=_a[i].getKey()) i++;\n\t\tif (node.getWeight() <_a[i].getWeight()){\n\t\t\t_a[i] = node;\n\t\t\twhile (i>0 && _a[parent(i)].getWeight()>_a[i].getWeight()){\n\t\t\t\texchange(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}\n\t}", "public boolean delete(int x) {\n BstDeleteReturn output = deleteHelper(root,x );\n root = output.root;\n if (output.deleted) {\n size--;\n }\n\n return output.deleted;\n }", "public Node deleteMin() {\n\t\t// if the heap is empty\n\t\t// return MAXINT as output\n\t\tNode min = new Node(Integer.MAX_VALUE);\n\t\tif(this.head == null)\n\t\t\treturn min;\n\t\t\n\t\t\n\t\tNode prevMin = null;\n\t\tNode curr = this.head;\n\t\tNode prev = null;\n\t\t\n\t\t// find the smallest node\n\t\t// keep track of node who points to this minimum node\n\t\twhile(curr!=null) {\n\t\t\tif(curr.key<min.key) {\n\t\t\t\tmin = curr;\n\t\t\t\tprevMin = prev;\n\t\t\t}\n\t\t\tprev = curr;\n\t\t\tcurr = curr.rightSibling;\n\t\t}\n\t\t\n\t\t// if its the head then move one pointer ahead\n\t\tif(prevMin == null)\n\t\t\tthis.head = min.rightSibling;\n\t\telse {\n\t\t\t// else attach the previous node to the rightSibling of min\n\t\t\tprevMin.rightSibling = min.rightSibling;\n\t\t}\n\t\tmin.rightSibling = null;\n\t\t\n\t\t//return min node\n\t\treturn min;\n\t}", "protected void heapdown(int i) {\r\n\t\twhile (true) {\r\n\t\t\tint left = left(i);\r\n\t\t\tint right = right(i);\r\n\t\t\tint childToUse = i;\r\n\r\n\t\t\tif (left < list.size() && list.get(i).getValue() > list.get(left).getValue()) {\r\n\t\t\t\tchildToUse = left;\r\n\t\t\t}\r\n\r\n\t\t\tif (right < list.size() && list.get(childToUse).getValue() > list.get(right).getValue()) {\r\n\t\t\t\tchildToUse = right;\r\n\t\t\t}\r\n\r\n\t\t\tif (childToUse == i) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tswap(i, childToUse);\r\n\t\t\t\ti = childToUse;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}", "public static void heapsort(int[]data){\n buildHeap(data);\n int j = data.length;\n for (int i=0; i<data.length; i++){\n remove(data,j);\n j--;\n }\n }", "public boolean remove(Object x)\n {\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n Node previous = null;\n while (current != null)\n {\n if (current.data.equals(x))\n {\n if (previous == null)\n {\n buckets[h] = current.next;\n }\n else\n {\n previous.next = current.next;\n }\n currentSize--;\n return true;\n }\n previous = current;\n current = current.next;\n }\n return false;\n }", "private void heapify(int idx) {\r\n // TODO\r\n }", "public FHeapNode removeMax()\r\n {\r\n FHeapNode z = maxNode;\r\n //hmap.remove(maxNode.gethashtag());\t\t\t\t\t\t\t\t\t\t//remove the node from the hashtable\r\n \r\n if (z != null) \r\n\t\t{\r\n \t for (HashMap.Entry<String, FHeapNode> entry : hmap.entrySet()) \r\n {\r\n \tif(entry.getValue() == maxNode)\r\n \t{\r\n \t\thmap.remove(entry.getKey());\r\n \t\tbreak;\r\n \t}\r\n }\r\n \t \r\n int numKids = z.degree;\r\n FHeapNode x = z.child;\r\n FHeapNode tempRight;\r\n\r\n while (numKids > 0) \t\t\t\t\t\t\t\t\t\t\t\t\t// iterate trough all the children of the max node\r\n\t\t\t{\r\n tempRight = x.right; \r\n x.left.right = x.right;\t\t\t\t\t\t\t\t\t\t\t\t// remove x from child list\r\n x.right.left = x.left;\r\n \r\n x.left = maxNode;\t\t\t\t\t\t\t\t\t\t\t\t\t// add x to root list of heap\r\n x.right = maxNode.right;\r\n maxNode.right = x;\r\n x.right.left = x;\r\n \r\n x.parent = null;\t\t\t\t\t\t\t\t\t\t\t\t\t// set parent[x] to null\r\n x = tempRight;\r\n numKids--;\r\n }\r\n\t\t\tz.left.right = z.right;\t\t\t\t\t\t\t\t\t\t\t\t\t// remove z from root list of heap\r\n z.right.left = z.left;\r\n\r\n if (z == z.right)\r\n\t\t\t{\r\n maxNode = null;\r\n } \r\n\t\t\telse \r\n\t\t\t{\r\n maxNode = z.right;\r\n meld();\r\n } \r\n nNodes--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// decrement size of heap\r\n }\r\n \r\n\r\n return z;\r\n }", "@Override\n // average-case complexity: O(n), since it always needs to shift n-amount\n // of element, where n is propotional to the list/input size\n public void remove(int index) {\n if (arr.length * SHRINK_THRESHOLD > size)\n arr = resize(arr, SHRINK_FACTOR);\n \n // remove the item at the specified index and shift everything right of\n // the given index 1 step to the left\n for (int i = index; i < size-1; i++) {\n arr[i] = arr[i+1];\n }\n // remove the previous last item and then decrement the size\n arr[--size] = null;\n }", "public int Delete()\n\t{\n\t\tif(isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Queue Underflow\");\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\t\n//\t\tremoves element from front end\n\t\tint x=queueArray[front];\n\t\t\n//\t\tif queue has only one element\n\t\tif(front==rear)\n\t\t{\n\t\t\tfront = -1;\n\t\t\trear = -1;\n\t\t}\n\t\t\n//\t\tif front is equal to last index of array\n\t\telse if (front==queueArray.length-1)\n\t\t\tfront=0;\n\t\telse\n//\t\t\tincremements front\n\t\t\tfront=front+1;\n\t\treturn x;\n\t}", "void reheap (int a[], int length, int i) throws Exception {\n boolean done = false;\n int T = a[i];\n int parent = i;\n int child = 2*(i+1)-1;\n while ((child < length) && (!done)) {\n compex(parent, child);\n pause();\n if (child < length - 1) {\n if (a[child] < a[child + 1]) {\n child += 1;\n }\n }\n if (T >= a[child]) {\n done = true;\n }\n else {\n a[parent] = a[child];\n parent = child;\n child = 2*(parent+1)-1;\n }\n }\n a[parent] = T;\n }", "public U remove(U x){\r\n\t \tif (x==null)\r\n\t \t\tthrow new IllegalArgumentException(\"x cannot be null\");\r\n\t \t//find index\r\n\t \tint i = Arrays.binarySearch(array,0, getArraySize(), x);\r\n\t \t//x not found in array\r\n\t \tif (i<0)\r\n\t \t\treturn null;\r\n\t \t//store current element\r\n\t \t@SuppressWarnings(\"unchecked\")\r\n\t\t\tU data = (U) array[i];\r\n\t \t//enter loop\r\n\t \twhile(i<numElems-1){\r\n\t \t\t//move element left\r\n\t \t\tarray[i]= array[i+1];\r\n\t \t\ti++;\r\n\t \t}\r\n\r\n\t \t//Not sure if needed: set last element to null after shift\r\n\t \tarray[numElems-1] = null;\r\n\t \tnumElems--;\r\n\t \treturn data;\r\n\t \t\r\n\t }", "void Minheap()\n {\n for(int i= (size-2)/2;i>=0;i--)\n {\n minHeapify(i);\n }\n }", "@Test\n\tpublic void testDecreaseKey() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.decreaseKey(11, 1);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(1, 5, 3, 7, 15, 24, 32, 47, 36, 27, 38, 48, 53, 33, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}", "public int delete(int i) //O(log(n))\n {\n\t if(this.lst == null)\n\t\t return -1;\n\t if(i < 0 || i >= this.length)\n\t\t return -1;\n\t this.length--; //one element removed\n\t this.lst.correctFrom(this.lst.deletenode(this.lst.Select(i+1))); //see details in class AVLTree\n\t return 0;\n }", "protected void siftDown() {\r\n\t\tint parent = 0, child = (parent << 1) + 1;// preguntar porque 0 y no 1\r\n\t\t\r\n\t\twhile (child < theHeap.size()) {\r\n\t\t\tif (child < theHeap.size() - 1\r\n\t\t\t\t\t&& compare(theHeap.get(child), theHeap.get(child + 1)) > 0)\r\n\t\t\t\tchild++; // child is the right child (child = (2 * parent) + 2)\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tparent = child;\r\n\t\t\tchild = (parent << 1) + 1; // => child = (2 * parent) + 1\r\n\t\t}\r\n\t}", "public void deleteItem() throws ContainerEmpty280Exception {\n if(this.isEmpty()){ // if there's no item , so not possible to delete\n throw new ContainerEmpty280Exception(\"Impossible to delete item from empty heap\");\n }\n if(this.count>1){ // if the cursor is bigger then 1\n this.currentNode=1; // the current node is 1\n this.items[currentNode]= this.items[count]; // cursor is now at the number 1 node\n }\n this.count--; // decreasing the coutner by 1\n if( this.count == 0) { // if it's empty make the current node the root node\n this.currentNode = 0;\n return;\n }\n int n=1; // starting on the 1 node\n while(findLeftChild(n)<=count){ // while we find the left node child, when its less or equal to the count\n int child= findLeftChild(n);\n if(child+1 <=count && items[child].compareTo(items[child+1])<0){ // if its the right side, and if its bigger\n child++; // select that right child\n }\n if( items[n].compareTo(items[child]) < 0 ) { // if parent is smaller than the rot\n I temp = items[n];\n items[n] = items[child]; // prev node is now the current node\n items[child] = temp; //current node to the right node's item\n }\n else return;\n }\n\n\n }", "public boolean remove(int x) {\n\n // Can't remove anything from an empty list.\n if (head == null)\n return false;\n \n // Remove the first element, if necessary.\n if (head.data == x) {\n head = head.next;\n return true;\n }\n\n // Set up helper reference to refer to the node right before the node\n // to be deleted would be stored.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data < x)) \n helper = helper.next;\n\n // If x was too big to be on the list, simply return false.\n if (helper.next == null)\n return false;\n\n // Only if the appropriate node stores x should it be deleted.\n if (helper.next.data == x) {\n helper.next = helper.next.next;\n return true;\n } \n\n return true; // Never gets here, compiler complains w/o this.\n }", "public Node remove() {\n Node result = peek();\n\n //new root is last leaf\n heap[1] = heap[size];\n heap[size] = null;\n size--;\n\n //reconstruct heap\n shiftDown();\n\n return result;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void remove( T x )\r\n\t{\r\n\t\tif (x == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t{ \r\n\t\t\tLinkedArrays<T> L = (LinkedArrays<T>) table[i]; \r\n\t\t\tboolean b = L.contains(x);\r\n\t\t\tif (b)\r\n\t\t\t{\r\n\t\t\t\tL.remove(x);this.size--;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "private void deleteFixup(Node<K, V> x) {\n\t\t\n\t}", "public MinHeapNode<T> deleMin() {\n\t\tif(!isEmpty()) { \r\n\t\t\tMinHeapNode<T> min = heap[1]; //min node\r\n\t heap[1] = heap[currentSize--]; //move bottom node to root\r\n\t heapDown(1); //move root down\r\n\t return min; \r\n\t } \r\n\t return null; \r\n\t}", "protected int removeLast() {\n if (size > 0) {\n return heap[size--];\n }\n return null;\n }", "boolean remMinEltTester(IHeap Heap, IBinTree Tree){\n\t\t\tLinkedList<Integer> treeResult2 = Tree.getTreeList();\n\t\t\tLinkedList<Integer> newHeapList2 = Heap.getTreeList();\n\t\t\t\n\t\t\tnewHeapList2.sort(null);\n\t\t\t\n\t\t\tif (newHeapList2.size() > 0) {\n\t\t\t\tnewHeapList2.remove(0);\n\t\t\t}\n\t\t\t\n\t\t\ttreeResult2.sort(null);\n\t\t\t\n\t\t\t\n\t\t\treturn ((treeResult2.equals(newHeapList2)) && Heap.isHeap());\n\t\t}", "private Node delete(Node x, int time) {\n\t\tif (x == null) return null;\n\n\t\tif (x.getTime() == time) {\n\t\t\tif (x.getLeft() == null && x.getRight() == null) return null;\n\t\t\tif (x.getLeft() == null || x.getRight() == null) {\n\t\t\t\treturn (x.getLeft() == null) ? x.getRight() : x.getLeft();\n\t\t\t}\n\t\t\t// Copy successor's data into x\n\t\t\tNode s = succ(x.getTime());\n\t\t\tx.setTime(s.getTime());\n\t\t\tx.setReq_index(s.getReq_index());\n\t\t\t// Then delete successor\n\t\t\tx.setRight(delete(x.getRight(), s.getTime()));\n\t\t\treturn x;\n\t\t}\n\t\tif (time < x.getTime()) {\n\t\t\tx.setLeft(delete(x.getLeft(), time));\n\t\t}\n\t\telse {\n\t\t\tx.setRight(delete(x.getRight(), time));\n\t\t}\n\t\treturn x;\n\t}", "public void deleteIfGreater(int target){\n\t\tNode tmp = head;\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.getElement() > target) {\n\t\t\t\tdelete(tmp.getElement());\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\t}", "void delete(final Key key) {\n int r = rank(key);\n if (r == size || keys[r].compareTo(key) != 0) {\n return;\n }\n for (int i = r; i < size - 1; i++) {\n keys[i] = keys[i + 1];\n values[i] = values[i + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }", "private Node<Value> delete(Node<Value> x, String key, int d)\r\n {\r\n if (x == null) return null;\r\n char c = key.charAt(d);\r\n if (c > x.c) x.right = delete(x.right, key, d);\r\n else if (c < x.c) x.left = delete(x.left, key, d);\r\n else if (d < key.length()-1) x.mid = delete(x.mid, key, d+1);\r\n else if (x.val != null) { x.val = null; --N; }\r\n if (x.mid == null && x.val == null)\r\n {\r\n if (x.left == null) return x.right;\r\n if (x.right == null) return x.left;\r\n Node<Value> t;\r\n if (StdRandom.bernoulli()) // to keep balance\r\n { t = min(x.right); x.right = delMin(x.right); }\r\n else\r\n { t = max(x.left); x.left = delMax(x.left); }\r\n t.right = x.right;\r\n t.left = x.left;\r\n return t;\r\n }\r\n return x;\r\n }", "public void deleteMin();", "@Override\n public Node remove() {\n Node temp;\n int x = 0;\n while (isEmpty(x)) {\n x++;\n }\n temp = hashTable[x];\n hashTable[x] = temp.getNext(); \n\n return temp;\n }", "private A deleteLargest(int subtree) {\n return null; \n }", "private void heapify() {\n for (int i=N/2; i>=1; i--)\n sink(i);\n }", "public void downHeap(int pos) throws NoSuchElementException\r\n {\r\n if (pos <= 0 || pos > size)\r\n throw new NoSuchElementException();\r\n\r\n int cur = pos;\r\n while (true) {\r\n int left = 2* cur; // [TODO] indice del hijo izquierdo\r\n int right = 2* cur + 1; // [TODO] indice del hijo derecho\r\n\r\n // [TODO] Si no tiene hijos (es una hoja), detenemos el loop\r\n\r\n if (left > size && right > size)\r\n break;\r\n\r\n int min_idx; // indice (left o right) del hijo mas prioritario\r\n\r\n // [TODO] Compara el hijo izquierdo versus el derecho y determina cual\r\n // es el mas prioritario. Graba su posicion en min_idx. Ojo: el hijo\r\n // derecho puede ser que NO exista, en cuyo caso el mas prioritario es\r\n // el izquierdo\r\n if (heap[right] == null){\r\n min_idx = left;\r\n }else\r\n if (heap[left].compareTo(heap[right]) > 0){\r\n min_idx = left;\r\n }else\r\n min_idx = right;\r\n\r\n\r\n // [TODO] Revisar si la propiedad de heap se cumple para los elementos\r\n // en los indices cur y min_idx. Si no nay violacion de la propiedad\r\n // de heap, terminamos el loop\r\n if (heap[cur].compareTo(heap[min_idx]) > 0)\r\n break;\r\n\r\n // [TODO] Intercambiamos los elementos en los indices cur y min_idx\r\n Item c = heap[cur];\r\n Item hijo = heap[min_idx];\r\n\r\n heap[min_idx] = c;\r\n heap[cur] = hijo;\r\n\r\n // [TODO] Navega hacia el hijo mas prioritario\r\n cur = min_idx;\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint A[] = { 17, 15, 13, 9, 6, 5, 10, 4, 8, 3, 1 };\t\t// max-heap structure\n\t\t//index\t\t0 1 2 3 4 5 6 7 8 9 10\n\t\t\n\t\tdeleteMax(A);\n\t\tSystem.out.println(Arrays.toString(A));\n\t}", "@Override\n public void delete(Integer index) {\n if(index > lastIndex)\n throw new IllegalArgumentException(); // only for tests\n stack.push(arr[index]);\n stack.push(index + arr.length+1);\n for (int i=index+1; i<lastIndex + 1; i++){\n arr[i-1] = arr[i];\n }\n lastIndex = lastIndex - 1;\n }", "public Node delete(Node x, Key key) {\n if (x == null) return null;\n if (key.equals(x.key)) {\n n--;\n return x.next;\n }\n x.next = delete(x.next, key);\n return x;\n }", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "private BinaryNode<AnyType> remove( AnyType x, BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t == null )\r\n\t\t\treturn t; // Item not found; do nothing\r\n\r\n\t\tint compareResult = x.compareTo( t.element );\r\n\r\n\t\tif( compareResult < 0 )\r\n\t\t\tt.left = remove( x, t.left );\r\n\t\telse if( compareResult > 0 )\r\n\t\t\tt.right = remove( x, t.right );\r\n\t\telse if( t.left != null && t.right != null ) // Two children\r\n\t\t{\r\n\t\t\tt.element = findMin( t.right ).element;\r\n\t\t\tt.right = remove( t.element, t.right );\r\n\t\t}\r\n\t\telse\r\n\t\t\tt = ( t.left != null ) ? t.left : t.right;\r\n\t\treturn t;\r\n\t}", "public static void heap(int[] data, int number){\n for(int i=1; i<number; i++){\n int child = i;\n while(child>0){\n int parent = child/2;\n if(data[child] > data[parent]){\n int temp=data[parent];\n data[parent]=data[child];\n data[child]=temp;\n }\n child=parent;\n }\n }\n }", "@Test\n public void testDelMin() {\n PriorityQueue<Integer> instance = new PriorityQueue<>();\n instance.insert(7);\n instance.insert(5);\n instance.insert(6);\n assertEquals(new Integer(5), instance.delMin());\n }", "private static <T> void siftDown (HeapSet<T> heap, int start, int size) {\r\n\t\tint root = start;\r\n\t\twhile (root * 2 + 1 < size) {\r\n\t\t\tint child = root * 2 + 1;\r\n\t\t\tif ((child < size - 1) && (((Comparable<? super T>) heap._list.get (child)).compareTo (heap._list.get (child + 1)) < 0))\r\n\t\t\t\t++child;\r\n\t\t\tif (((Comparable<? super T>) heap._list.get (root)).compareTo (heap._list.get (child)) < 0) {\r\n\t\t\t\tCollections.swap (heap._list, root, child);\r\n\t\t\t\tHeapSet.fireEvent (heap, root, child);\r\n\t\t\t\troot = child;\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void remove( Object x )\n {\n LinkedListItr p = findPrevious( x );\n\n if( p.current.next != null )\n p.current.next = p.current.next.next; // Bypass deleted node\n }", "public void insert(int x)\n {\n if(isFull())\n {\n throw new NoSuchElementException(\"Overflow Exception\");\n }\n else {\n heap[heapSize++] = x;\n heapifyUp(heapSize-1);\n\n }\n }", "public static void heapify() {\n //배열을 heap 자료형으로 만든다.\n // 1d 2d 2d 3d 3d 3d 3d 4d\n// int[] numbers = {9, 12, 1, 3, 6, 2, 8, 4};\n // 1depth의 자식노드 numbers[2i], numbers[2i+1]\n int[] numbers = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};\n int i = 1;\n while (true) {\n int target = numbers[i-1];\n int left = numbers[2*i-1];\n\n if (2*i == numbers.length) {\n if (left > target){\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n print(numbers);\n break;\n }\n int right =numbers[2*i];\n\n if (left > right) {\n if(left > target) {\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n }else if (right > left) {\n if (right > target) {\n numbers[i-1] = right;\n numbers[2*i] = target;\n }\n }\n i++;\n\n print(numbers);\n }\n\n }", "static void heapSort(int[] input){\n int len = input.length;\n for(int i=(len/2)-1;i>=0;i--){\n heapify(input,i,len);\n }\n for(int i = len-1;i>=0;i--){\n int temp = input[0];\n input[0] = input[i];\n input[i] = temp;\n heapify(input,0,i);\n }\n }", "public void heapDecreaseKey(Entry<K,V>[] a,int pos, int val )\r\n\t{\n\t\tEntry<K,V> e = a[pos];\r\n\t\tif(e.getKey().intValue()<val)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wrong input\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t// compare it with parent\r\n\t\tK k = (K) new Integer(val);\r\n\t\te.setKey(k);\r\n\t\twhile(pos>0 && (a[parent(pos)].getKey().intValue()>a[pos].getKey().intValue()) )\r\n\t\t{\r\n\t\t\tswap(a,pos,parent(pos));\r\n\t\t\tpos = parent(pos);\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void delete(int pValueToDelete) {\n\t\tint n = find(pValueToDelete);\n\t\tif (find(pValueToDelete) != -1) {\n\t\t\tpointer--;\n\t\t\tvalues[n] = values[pointer];\n\t\t\t// for Sorted Lists\n//\t\t\tfor (int n = find(pValueToDelete); n < pointer - 1; n++)\n//\t\t\t\t// shift to left\n//\t\t\t //FAILS WHEN TO TRY SHIFT LAST POSITION\n//\t\t\t\tvalues[n] = values[n + 1];\n\t\t}\n\t}", "public T poll() {\n if (size == 0)\n return null;\n int s = --size;\n T result = (T) heap[0];\n T backup = (T) heap[s];\n heap[s] = null; // delete\n if (s != 0)\n siftDown(0, backup);\n return result;\n }", "public void delete(int i) {\n\t\tfor (int j = i; j < keyCount - 1; j++) {\n\t\t\tkeys[j] = keys[j + 1];\n\t\t\tpointers[j] = pointers[j + 1];\n\t\t}\n\t\tkeys[keyCount - 1] = null;\n\t\tpointers[keyCount - 1] = null;\n\t\tkeyCount--;\n\t}", "public void decreaseKey(int i, int new_val)\n\t{\n\t Heap[i] = new_val;\n\t while (i != 0 && Heap[parent(i)] < Heap[i])\n\t {\n\t swap(i, parent(i));\n\t i = parent(i);\n\t }\n\t}", "Object unlink(Node x) {\n final Object element = x.item;\n final Node next = x.next;\n final Node prev = x.pre;\n\n //当前节点为first节点\n if (prev == null) {\n //删除这个节点时,要将next节点赋值为first节点\n first = next;\n } else {\n prev.next = next;\n x.pre = null;\n }\n\n //最后一个节点\n if (next == null) {\n last = prev;\n } else {\n next.pre = prev;\n x.next = null;\n }\n\n x.item = null;\n size--;\n return element;\n }", "public void delete(final Key key) {\n if (isEmpty()) return;\n int r = rank(key);\n if (r == size || (keys[r].compareTo(key) != 0)) {\n return;\n }\n for (int j = r; j < size - 1; j++) {\n keys[j] = keys[j + 1];\n values[j] = values[j + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }", "void deleteMin() {\n delete(keys[0]);\n }", "public E poll() {\r\n if (isEmpty()) {\r\n return null;\r\n }\r\n //first element of heap\r\n E result = theData.get(0).data;\r\n\r\n if (theData.size() == 1 && theData.get(theData.size()-1).count == 1 ) {\r\n theData.remove(0);\r\n return result;\r\n }\r\n //deleting first element of heap\r\n if (theData.get(0).count == 1 ){\r\n theData.set(0, theData.remove(theData.size() - 1));\r\n\r\n fixHeap(0);\r\n }else{ //first element of heap if exist more than 1, decreases count\r\n theData.get(0).count-=1;\r\n }\r\n //fixes heap\r\n fixHeap(0);\r\n\r\n return result;\r\n }", "private Node<Integer, Integer> delete(Node<Integer, Integer> node, int value) {\n\t\tif (node.getKey() == value && !node.hasChildren()) {\n\t\t\treturn null;\n\t\t} else if (node.getKey() == value && node.hasChildren()) {\n\t\t\tif (node.getLeft() == null && node.getRight() != null) {\n\t\t\t\treturn node.getRight();\n\t\t\t} else if (node.getLeft() != null && node.getRight() == null) {\n\t\t\t\treturn node.getLeft();\n\t\t\t} else {\n\t\t\t\treturn deleteRotateRight(node);\n\t\t\t}\n\t\t} else {\n\t\t\tif (node.getKey() > value) {\n\t\t\t\tnode.left = delete(node.getLeft(), value);\n\t\t\t\treturn node;\n\t\t\t} else {\n\t\t\t\tnode.right = delete(node.getRight(), value);\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t}", "public void binomialHeapDecreaseKey(Node x, int k) {\n\t\tif(k>x.key) {\n\t\t\tSystem.out.println(\"New key is greater than current key\");\n\t\t}\n\t\telse {\n\t\t\t// change the key of given node to k\n\t\t\tx.key = k;\n\t\t\tNode y = x;\n\t\t\tNode z = y.p;\n\t\t\t// bubble up the node to its correct position in the tree\n\t\t\t// by just exchanging the key values of all nodes in\n\t\t\t// y's path to the root\n\t\t\twhile(z!=null && y.key < z.key) {\n\t\t\t\tint temp = z.key;\n\t\t\t\tz.key = y.key;\n\t\t\t\ty.key = temp;\n\t\t\t\ty = z;\n\t\t\t\tz = y.p;\n\t\t\t}\n\t\t}\n\t}", "public void HeapdecreaseKey(Vertex[] queue, int i, Vertex key) {\r\n\t\tqueue[i] = key;\r\n\t\twhile (i > 0 && queue[(i - 1) / 2].dist > queue[i].dist) {\r\n\t\t\tVertex temp = queue[(i - 1) / 2];\r\n\t\t\tVertex temp2 = queue[i];\r\n\t\t\ttemp.setHandle(i);\r\n\t\t\tqueue[i] = temp;\r\n\t\t\ttemp2.setHandle((i - 1) / 2);\r\n\t\t\tqueue[(i - 1) / 2] = temp2;\r\n\t\t\ti = (i - 1) / 2;\r\n\t\t}\r\n\t}", "public void delete_ith_element (int pos) {\n \t \n \t //check if the pos is less than maximum possible value\n \t if (pos > len) {\n \t\t \n \t\t //throw exception for index of bounds\n \t\t throw new IndexOutOfBoundsException(\"your index has reached bounds\");\n \t }\n \t \n \t //now must run loop\n \t else {\n \t\t \n \t //if pos is 0 then just change head\n \t if (pos == 0) {\n \t\t \n \t\t //just change pointer of head next element\n \t\t head = head.show_next();\n \t\t \n \t\t \n \t\t //change prev to null\n \t\t head.change_prev(null);\n \t\t }\n \t \n \t //if pos = len - 1 then just change tail\n \t //if we want to delete last \n \t else if (pos == len -1) {\n\t\t\t \n\t\t\t //just change the last node \n\t\t\t tail = tail.show_prev();\n\t\t\t \n\t\t\t //change next of tail to null\n\t\t\t tail.change_next(null);\n\t\t }\n \n \t //else run for loop to reach node\n \t else {\n \t\t \n \t\t //define the current node as head\n \t\t node<Type> current_node = new node<>();\n \t\t \n \t\t //place current node to head\n \t\t current_node = head;\n \t\t \n \t\t //now run the for loop\n \t\t for(int i = 1 ; i <= pos; i++ ) {\n \t\t\t \n \t\t\t //just update current node\n \t\t\t current_node = current_node.show_next();\n \t\t }\n \t\t //now just delete the node\n //now just set current_node's next element to next next element of current\n \t\t System.out.println(\"we are here\");\n \t\t\n \t\t current_node.show_next().change_prev(current_node.show_prev());\n \t\t \n \t\t //now also change next node of before node\n \t\t current_node.show_prev().change_next(current_node.show_next());\n \t\t \n \t \t}\n \t //decrese length by one\n\t\t len--;\n \t }\n }", "private static void Heapify(int[] A, int i, int size)\n {\n // get left and right child of node at index i\n int left = LEFT(i);\n int right = RIGHT(i);\n\n int smallest = i;\n\n // compare A[i] with its left and right child\n // and find smallest value\n if (left < size && A[left] < A[i]) {\n smallest = left;\n }\n\n if (right < size && A[right] < A[smallest]) {\n smallest = right;\n }\n\n // swap with child having lesser value and\n // call heapify-down on the child\n if (smallest != i) {\n swap(A, i, smallest);\n Heapify(A, smallest, size);\n }\n }", "protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}", "@Override\n protected void downHeap(int k)\n {\n while (2 * k <= this.count)\n {\n //identify which of the 2 children are smaller\n int j = 2 * k;\n if (j < this.count && this.isGreater(j, j + 1))\n {\n j++;\n }\n //if the current value is < the smaller child, we're done\n if (!this.isGreater(k, j))\n {\n break;\n }\n //if not, swap and continue testing\n this.swap(k, j);\n k = j;\n }\n \tthis.elementsToArrayIndex.put(elements[k], k);\n }", "private Node<Value> delMin(Node<Value> x)\r\n {\r\n if (x.left == null) return x.right;\r\n x.left = delMin(x.left);\r\n return x;\r\n }", "public void remove(int n) {\n\tif(!contains(n)){\n\t\treturn; //Check\n\t}\t\n\telse{\n\t\tint index = 0;\n\t\tfor(int i = 0; i < size; i++){\n \t\tif(elements[i] == n){\n \t\t\tindex = i;\n \t\t}\n \t\t}\n\t\tfor(int c = 0;c < (size - index) - 1; c++){\n\t\t\telements[index+c] = elements[index+c+1];\n\t\t}\n\t\tsize--;\n\t}\n\n System.out.println(\"Removing \" + n + \"...\");\n }", "private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}", "@Override\r\n\tpublic void delete(int el) {\n\t\tif (!isEmpty()) {\r\n\t\t\tif (tail.next == tail && el == tail.info) {\r\n\t\t\t\ttail = null;\r\n\t\t\t} else if (el == tail.next.info) {\r\n\t\t\t\ttail.next = tail.next.next;\r\n\t\t\t} else {\r\n\t\t\t\tIntCLNode pred, tmp;\r\n\t\t\t\tfor (pred = tail.next, tmp = tail.next.next; tmp != null\r\n\t\t\t\t\t\t&& tmp.info != el; pred = pred.next, tmp = tmp.next)\r\n\t\t\t\t\t;\r\n\t\t\t\tif (tmp != null) {\r\n\t\t\t\t\tpred.next = tmp.next;\r\n\t\t\t\t\tif (tmp == tail) {\r\n\t\t\t\t\t\ttail = pred;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.7974161", "0.72397953", "0.7199337", "0.7128657", "0.7072829", "0.70670944", "0.70638275", "0.7063822", "0.703273", "0.6952865", "0.6899073", "0.68522507", "0.68450534", "0.67978334", "0.67452025", "0.6727487", "0.66493434", "0.6646915", "0.651846", "0.64724", "0.64422995", "0.63906926", "0.63804334", "0.637067", "0.63576394", "0.63530135", "0.6314839", "0.6310381", "0.62543607", "0.6210469", "0.61827046", "0.6120604", "0.61061555", "0.6086346", "0.6084374", "0.6083012", "0.5998513", "0.5983122", "0.5981669", "0.5978436", "0.5978093", "0.59743625", "0.5959257", "0.5949995", "0.5949459", "0.5949187", "0.59229696", "0.5921034", "0.5914214", "0.59134", "0.59072053", "0.58992475", "0.58926076", "0.5885229", "0.58848345", "0.5879436", "0.58730686", "0.587289", "0.5867437", "0.5860189", "0.58488655", "0.5817093", "0.58035344", "0.5801471", "0.580093", "0.57951856", "0.579487", "0.5779147", "0.57772064", "0.5777132", "0.57697034", "0.5767353", "0.57624114", "0.5758594", "0.57392234", "0.57349694", "0.57289565", "0.5720922", "0.571316", "0.57059425", "0.5703959", "0.57024467", "0.5702069", "0.5697052", "0.5696546", "0.5694863", "0.5694384", "0.5693512", "0.5673826", "0.56732494", "0.56671166", "0.5658326", "0.5657548", "0.5656966", "0.565539", "0.5653642", "0.5645365", "0.5641743", "0.56381047", "0.5630526" ]
0.67008847
16
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { }
{ "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 void mouseReleased(MouseEvent e) { }
{ "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 void mouseEntered(MouseEvent e) { }
{ "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 void mouseExited(MouseEvent e) { }
{ "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
The recursive tree building function
@SuppressWarnings("unchecked") private void build(Node<VirtualDataSet> node) { if (node == null) throw new NullPointerException("Cannot built a decision (sub)tree for a null node."); VirtualDataSet set = node.data; if (set == null || set.getNumberOfDatapoints() == 0 || set.getNumberOfAttributes() == 0) throw new IllegalStateException("The dataset is in an invalid state!"); if (set.getNumberOfAttributes() == 1) // We have only the class attribute left return; if (set.getAttribute(set.getNumberOfAttributes() - 1).getValues().length == 1) // No uncertainty left return; boolean needsSplit = false; for (int i = 0; i < set.getNumberOfAttributes() - 1; i++) { if (set.getAttribute(i).getValues().length < 2) { continue; } needsSplit = true; } if (!needsSplit) // split would be futile for all remaining attributes return; GainInfoItem[] gains = InformationGainCalculator.calculateAndSortInformationGains(set); if (gains[0].getGainValue() == 0.0) // No split when there is no gain return; Attribute bestAttribute = set.getAttribute(gains[0].getAttributeName()); if (bestAttribute.getType() == AttributeType.NOMINAL) { VirtualDataSet[] partitions = set .partitionByNominallAttribute(set.getAttributeIndex(bestAttribute.getName())); node.children = (Node<VirtualDataSet>[]) new Node[partitions.length]; for (int i = 0; i < node.children.length; i++) { node.children[i] = new Node<VirtualDataSet>(partitions[i]); } for (int i = 0; i < node.children.length; i++) { build(node.children[i]); } } else { int attributeIndex = node.data.getAttributeIndex(bestAttribute.getName()); String[] values = bestAttribute.getValues(); int valueIndex = -1; for (int i = 0; i < values.length; i++) { if (values[i].equals(gains[0].getSplitAt())) { valueIndex = i; break; } } if (valueIndex == -1) { System.out.println("Houston, we have a problem!"); return; } VirtualDataSet[] partitions = set.partitionByNumericAttribute(attributeIndex, valueIndex); node.children = (Node<VirtualDataSet>[]) new Node[partitions.length]; for (int i = 0; i < node.children.length; i++) { node.children[i] = new Node<VirtualDataSet>(partitions[i]); } for (int i = 0; i < node.children.length; i++) { build(node.children[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "public static TreeNode buildTree() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\t\n\t\tTreeNode left = new TreeNode(2);\n\t\tleft.left = new TreeNode(4);\n\t\tleft.right = new TreeNode(5);\n\t\tleft.right.right = new TreeNode(8);\n\t\t\n\t\tTreeNode right = new TreeNode(3);\n\t\tright.left = new TreeNode(6);\n\t\tright.right = new TreeNode(7);\n\t\tright.right.left = new TreeNode(9);\n\t\t\n\t\troot.left = left;\n\t\troot.right = right;\n\t\t\n\t\treturn root;\n\t}", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "@Test\n\tpublic void testBuildTree() {\n\t\tTree<Integer> tree = new Tree<Integer> ();\n\t\t//add first level children, 1\n\t\tNode<Integer> root = tree.getRoot();\n\t\troot.addChild(new Node<Integer>());\n\t\tNode<Integer> c1 = root.getFirstChild();\n\t\tassertTrue(c1.getData() == null);\n\t\t//add second level children, 3\n\t\tc1.addChild(new Node<Integer> ());\n\t\tc1.addChild(new Node<Integer> ());\n\t\tc1.addChild(new Node<Integer> ());\n\t\tassertTrue(c1.countChildren() == 3);\n\t\t//add third level children, 3 * 3\n\t\tint[][] leafData = {\n\t\t\t\t{8,7,2},\n\t\t\t\t{9,1,6},\n\t\t\t\t{2,4,1}\n\t\t};\n\t\tNode<Integer> c2 = c1.getFirstChild();\n\t\tint i = 0;\n\t\twhile (c2 != null) {\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][0]));\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][1]));\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][2]));\n\t\t\tc2 = c2.next();\n\t\t\ti++;\n\t\t}\n\t\tassertTrue(tree.countDepth() == 3);\n\t\tNode<Integer> leaf = root;\n\t\twhile (leaf.countChildren() > 0) {\n\t\t\tleaf = leaf.getFirstChild();\n\t\t}\n\t\tassertTrue(leaf.getData() == 8);\t\t\t\n\t}", "public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }", "private <X extends Jgxx> X buildTree(X root) {\n\t\tList<X> list = this.extendedModelProvider.find(EXTEND_MODEL_XTGL_ZHGL_JGXX_CODE, Jgxx.class, SELECT_PRE_SQL + \" WHERE J.LFT BETWEEN ? AND ? AND J.DELETED = 0 ORDER BY J.LFT\",\n\t\t\t\troot.getLft(), root.getRgt());\n\t\tStack<X> rightStack = new Stack<X>();\n\t\tfor (X node : list) {\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\twhile (rightStack.lastElement().getRgt() < node.getRgt()) {\n\t\t\t\t\trightStack.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\trightStack.lastElement().addChild(node);\n\t\t\t}\n\t\t\trightStack.push(node);\n\t\t}\n\t\treturn rightStack.firstElement();\n\t}", "private static TreeNode<Character> buildTree () {\n // build left half\n TreeNode<Character> s = new TreeNode<Character>('S', \n new TreeNode<Character>('H'),\n new TreeNode<Character>('V'));\n\n TreeNode<Character> u = new TreeNode<Character>('U', \n new TreeNode<Character>('F'),\n null);\n \n TreeNode<Character> i = new TreeNode<Character>('I', s, u);\n\n TreeNode<Character> r = new TreeNode<Character>('R', \n new TreeNode<Character>('L'), \n null);\n\n TreeNode<Character> w = new TreeNode<Character>('W', \n new TreeNode<Character>('P'),\n new TreeNode<Character>('J'));\n\n TreeNode<Character> a = new TreeNode<Character>('A', r, w);\n\n TreeNode<Character> e = new TreeNode<Character>('E', i, a);\n\n // build right half\n TreeNode<Character> d = new TreeNode<Character>('D', \n new TreeNode<Character>('B'),\n new TreeNode<Character>('X'));\n\n TreeNode<Character> k = new TreeNode<Character>('K', \n new TreeNode<Character>('C'),\n new TreeNode<Character>('Y'));\n\n TreeNode<Character> n = new TreeNode<Character>('N', d, k);\n\n\n TreeNode<Character> g = new TreeNode<Character>('G', \n new TreeNode<Character>('Z'),\n new TreeNode<Character>('Q'));\n\n TreeNode<Character> o = new TreeNode<Character>('O');\n\n TreeNode<Character> m = new TreeNode<Character>('M', g, o);\n\n TreeNode<Character> t = new TreeNode<Character>('T', n, m);\n\n // build the root\n TreeNode<Character> root = new TreeNode<Character>(null, e, t);\n return root;\n }", "private Result buildTree(ListNode head, int len ){\n Result result = new Result(null, head);\n if (head == null)\n return result;\n if (len <= 0)\n return result;\n TreeNode left, right;\n // travel left \n Result l = buildTree(head, len / 2);\n // create root \n result.root = new TreeNode(l.tail.val);\n result.root.left = l.root;\n // travel right \n Result r = buildTree(l.tail.next, len - len / 2 - 1);\n result.root.right = r.root;\n result.tail = r.tail;\n return result;\n }", "public static TreeNode buildTree01() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t\n\t\treturn root;\n\t}", "private BinaryTree<Character> constructTree(){\n if(pq.size() == 1) return pq.poll().data;\n if(pq.size() == 0) return null;\n // Poll the lowest two trees, combine them, then stick them back in the queue.\n Helper<BinaryTree<Character>> temp0 = pq.poll(), temp1 = pq.poll(),\n result = new Helper<>(temp0.priority + temp1.priority, new BinaryTree<>(temp0.data, null , temp1.data));\n pq.add(result);\n // Call again to keep constructing.\n return constructTree();\n }", "private TakTree<TakPiece> treeBuilder(TakTree<TakPiece> tree, Point startingPoint, ArrayList<Point> visited){\n if(containsWinningPath(visited)){\n // Did white or black win?\n if(getTop(startingPoint).isWhite()){\n whiteWins = true;\n } else {\n blackWins = true;\n }\n\n // return our tree because this is certainly a leaf node\n return tree;\n }\n\n Point right = new Point(startingPoint.x + 1, startingPoint.y);\n Point left = new Point(startingPoint.x - 1, startingPoint.y);\n Point up = new Point(startingPoint.x, startingPoint.y - 1);\n Point down = new Point(startingPoint.x, startingPoint.y + 1);\n\n\n // Check for backtracking right\n if(isValidAndSimilar(right, startingPoint) && !visitedContains(visited, right)){\n // Create new subtree with our right as root\n TakTree<TakPiece> treeToAttach = new TakTree<>();\n treeToAttach.addRoot(getTop(right));\n //Add this position to the visited array\n visited.add(right);\n // Attach subtree to right position\n tree.attachRight(treeBuilder(treeToAttach, right, visited));\n }\n\n // Try to build left subtree\n if(isValidAndSimilar(left, startingPoint) && !visitedContains(visited, left)){\n // Create new subtree with our right as root\n TakTree<TakPiece> treeToAttach = new TakTree<>();\n treeToAttach.addRoot(getTop(left));\n //Add this position to the visited array\n visited.add(left);\n // Attach subtree to right position\n tree.attachLeft(treeBuilder(treeToAttach, left, visited));\n }\n\n // Try to build up subtree\n if(isValidAndSimilar(up, startingPoint) && !visitedContains(visited, up)){\n // Create new subtree with our right as root\n TakTree<TakPiece> treeToAttach = new TakTree<>();\n treeToAttach.addRoot(getTop(up));\n //Add this position to the visited array\n visited.add(up);\n // Attach subtree to right position\n tree.attachUp(treeBuilder(treeToAttach, up, visited));\n }\n\n // Try to build down subtree\n if(isValidAndSimilar(down, startingPoint) && !visitedContains(visited, down)){\n\n // Create new subtree with our right as root\n TakTree<TakPiece> treeToAttach = new TakTree<>();\n treeToAttach.addRoot(getTop(down));\n //Add this position to the visited array\n visited.add(down);\n // Attach subtree to right position\n tree.attachDown(treeBuilder(treeToAttach, down, visited));\n }\n\n return tree;\n }", "public static TreeNode buildTree02() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t/*\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.left = new TreeNode(5);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t*/\n\t\treturn root;\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 }", "private void buildBinaryTree() {\n log.info(\"Constructing priority queue\");\n Huffman huffman = new Huffman(cache.vocabWords());\n huffman.build();\n\n log.info(\"Built tree\");\n\n }", "private void constructBSTree(Node<T> u, int n, String lr) {\n\t\tn++;\n\t\taddToPT(n, lr + \" \" + u.x.toString());\n\t\telements.add(u.x);\n\t\tif (u.left != nil)\n\t\t\tconstructBSTree(u.left, n, lr + \"L\");\n\t\tif (u.right != nil)\n\t\t\tconstructBSTree(u.right, n, lr + \"R\");\n\t}", "public MutableMatrixTreeNode<E> buildTree() {\n\t\t// use parental relations to build the tree by directly inserting each child into it's parents\n\t\tfor (MutableMatrixTreeNode<E> node : nodeMap.values()) {\n\t\t\tPathMatrix key = node.getPathMatrix();\n\n\t\t\tif (!key.isRoot()) {\n\t\t\t\tPathMatrix parentKey = key.computeParentMatrix();\n\n\t\t\t\tMutableMatrixTreeNode<E> parentNode = nodeMap.get(parentKey);\n\t\t\t\tparentNode.insert(node);\n\t\t\t}\n\t\t}\n\n\t\t// get root\n\t\tPathMatrix firstKey = nodeMap.keySet().iterator().next();\n\t\treturn (MutableMatrixTreeNode<E>) nodeMap.get(firstKey).visitTopNode();\n\t}", "public static void generateTree(Node root){\n\n // If we hit the winning position or a draw, stop generating (Exit condition)\n if(defaultEvaluator.evaluate(root.getBoard()) != 0 || root.getBoard().getTurnNumber() == 9)\n return;\n\n // Else, keep generating recursively\n\n // Step0-Determine the turn player.\n GamePiece turnPlayer;\n if (root.getBoard().isXTurn()) {\n turnPlayer = GamePiece.X;\n }\n else {\n turnPlayer = GamePiece.O;\n }\n\n // Step1-generate a new board for every child of root\n int parentalBranches = root.getChildren().length;\n int childrenBranches = parentalBranches - 1;\n for(int i=0; i<parentalBranches; ++i){\n\n root.getChildren()[i] = new Node(childrenBranches);\n root.getChildren()[i].setBoard((Board)(root.getBoard().clone()));\n\n }\n\n // Step2-Place the pieces\n int childIndex=0;\n int placement = 0;\n while(childIndex<parentalBranches){\n\n try{\n\n root.getChildren()[childIndex].getBoard().set(placement %3, placement /3, turnPlayer);\n childIndex++;\n\n }catch(GridAlreadyChosenException ex){}\n placement++;\n\n }\n\n // Step3-Let the recursive madness begin. Call generateTree() on each child\n for (int i=0; i<parentalBranches; ++i)\n generateTree(root.getChildren()[i]);\n\n\n }", "private Node constructParsedTree(Node[] nodes) {\n int rootIndex = 0;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i].getFather() > 0)\n nodes[nodes[i].getFather() - 1].addChild(nodes[i]);\n else\n rootIndex = i;\n }\n return nodes[rootIndex];\n }", "public TreeNode buildTree(ArrayList<TreeNode> nodes){\n // if empty arraylist\n if (nodes.size() == 0){\n return null;\n }\n // else\n TreeNode root = nodes.get(0);\n // Structure the tree\n for (int i = 0; i < nodes.size(); i++){\n if ((2*i+1) < nodes.size()){\n nodes.get(i).left = nodes.get(2*i+1);\n } else {\n nodes.get(i).left = null;\n }\n if ((2*i+2) < nodes.size()){\n nodes.get(i).right = nodes.get(2*i+2);\n } else {\n nodes.get(i).right = null;\n }\n }\n \n return root;\n }", "protected void buildTree(JSONArray level, TreeNode relativeRoot){\n\t\tint elements = level.size();\n\t\tJSONObject split;\n\t\tJSONArray sub_trees;\n\t\tfor(int node = 0; node < elements; node++){\n\t\t\tTreeNode create = new TreeNode();\n\t\t\tsplit = (JSONObject)(level.get(node));\n\t\t\tcreate.type = (String)split.get(\"type\");\n\t\t\tcreate.attribute = (String)split.get(\"attribute\");\n\t\t\tcreate.operator = (String)split.get(\"operator\");\n\t\t\tif(create.type.compareTo(\"node\") == 0){\n\t\t\t\tcreate.nom_value = (String)split.get(\"value\");\n\t\t\t\tcreate.children = null;\n\t\t\t\trelativeRoot.children.add(create);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(create.type.compareTo(\"nominal\") == 0)\n\t\t\t\tcreate.nom_value = (String)split.get(\"value\");\n\t\t\telse if(create.type.compareTo(\"numerical\") == 0)\n\t\t\t\tcreate.num_value = Double.parseDouble((String)split.get(\"value\"));\n\t\t\t\n\t\t\tsub_trees = (JSONArray)split.get(\"subtree\");\n\t\t\tbuildTree(sub_trees,create);\n\t\t\trelativeRoot.children.add(create);\n\t\t}\n\t}", "protected void createTree() {\n\n\t\tint nextPlayer = opponent;\n\n\t\tQueue<Node> treeQueue = new LinkedList<Node>();\n\t\tWinChecker winCheck = new WinChecker();\n\n\t\ttreeQueue.add(parent);\n\n\t\twhile (!treeQueue.isEmpty()) {\n\t\t\tNode currentNode = treeQueue.poll();\n\n\t\t\tif (currentNode.getMove().Row != -1\n\t\t\t\t\t&& currentNode.getMove().Col != -1) {\n\t\t\t\tgb.updateBoard(currentNode.getMove());\n\n\t\t\t\tif (winCheck.getWin(gb) >= 0) {\n\t\t\t\t\tgb.revertBoard(currentNode.getMove());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tgb.revertBoard(currentNode.getMove());\n\t\t\t}\n\n\t\t\t// Restricting the depth to which we will create the tree\n\t\t\tif (currentNode.getPly() > 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (List<Hexagon> tempList : this.gb.getBoard()) {\n\t\t\t\tfor (Hexagon tempHex : tempList) {\n\n\t\t\t\t\tif (tempHex == null) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (tempHex.getValue() == EMPTY) {\n\n\t\t\t\t\t\tif (currentNode.getPly() % 2 == 0) {\n\t\t\t\t\t\t\tnextPlayer = opponent;\n\t\t\t\t\t\t} else if (currentNode.getPly() % 2 == 1) {\n\t\t\t\t\t\t\tnextPlayer = player;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tMove nextMove = new Move(nextPlayer, false,\n\t\t\t\t\t\t\t\ttempHex.getRow(), tempHex.getColumn());\n\n\t\t\t\t\t\tNode newNode = new Node(currentNode.getPly() + 1,\n\t\t\t\t\t\t\t\tnextMove);\n\t\t\t\t\t\tnewNode.setParent(currentNode);\n\n\t\t\t\t\t\tcurrentNode.children.add(newNode);\n\n\t\t\t\t\t\ttreeQueue.add(newNode);\n\t\t\t\t\t\ttempHex.setValue(EMPTY);\n\t\t\t\t\t}// End of if statement\n\n\t\t\t\t}// End of inner ForLoop\n\t\t\t}// End of outer ForLoop\n\n\t\t\t// currentNode.printChildren();\n\n\t\t}// End of While Loop\n\n\t}", "private void buildTree(int n, double x, double y, double a, double branchLength) {\n tree = new ArrayList<>();\n populateTree(n, x, y, a, branchLength);\n }", "private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}", "private BinaryNode<E> buildTree(ArrayList<E> arr, int height, BinaryNode<E> parent) {\n\n if (arr.isEmpty()) return null;\n BinaryNode<E> curr = new BinaryNode<>(arr.remove(0), null, null, parent);\n if (height > 0) {\n curr.left = buildTree(arr, height - 1, curr);\n curr.right = buildTree(arr, height - 1, curr);\n }\n return curr;\n }", "private void build(int nodeIdx){\r\n\t\t//get the sizes of each node in this subtree, with nodeIdx as root\r\n\t\tgetSizeDfs(nodeIdx, -1);\r\n\t\t\r\n\t\t//get the balanced root of this subtree, stored in curRootIdx\r\n\t\tcurMinMaxSize = curTreeSize = subTreeSize[nodeIdx];\r\n\t\tcurRootIdx = -1;\r\n\t\tgetBalancedRootDfs(nodeIdx, -1);\r\n\t\t\r\n\t\t//generate distances to this root node, for all the nodes in this subtree\r\n\t\tgenDistToRoot(curRootIdx, -1, 0);\r\n\t\tvisited[curRootIdx] = true;\t\t//set the root to be visited\r\n\t\t\r\n\t\t//recursively build the subtrees\r\n\t\tfor(Integer idx: cities[curRootIdx].adjacentNodeIndices){\r\n\t\t\tif(visited[idx]) continue;\r\n\t\t\tbuild(idx);\r\n\t\t}\r\n\t}", "@Override\n\tpublic TreeNode buildTree(String[] exp) {\n\t\tStack<TreeNode> stk = new Stack<TreeNode>();\n\t\tTreeNode tmpL, tmpR, tmpRoot;\n\t\tint i;\n\n\t\tfor(String s: exp) {\n\t\t\tif(s.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\ti = Integer.parseInt(s);\n\t\t\t\tstk.push(new TreeNode(EMPTY + i));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\ttmpR = stk.pop();\n\t\t\t\ttmpL = stk.pop();\n\t\t\t\ttmpRoot = new TreeNode(s, tmpL, tmpR);\n\t\t\t\tstk.push(tmpRoot);\n\t\t\t}\n\t\t}\n\n\t\treturn stk.pop();\n\n\t}", "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length == 0){\n return null;\n }\n TreeNode result = getRoot(inorder,postorder,0,inorder.length - 1,inorder.length-1);\n return result;\n }", "private void recursiveOefosTreeviewBuild(DefaultMutableTreeNode nodes, TreeMap<Object, Taxon> taxons, String sequence, String panelname) throws Exception {\r\n try {\r\n for (Map.Entry<Object, Taxon> kv : taxons.entrySet()) {\r\n ClassNode iNode = new ClassNode(\"\" + kv.getKey(), kv.getValue().upstream_identifier + \": \" + kv.getValue().description);\r\n \r\n ClassMutableNode inner = new ClassMutableNode(iNode);\r\n nodes.add(inner);\r\n String oefosname = panelname+\"----\"+sequence;\r\n if (this.oefos_path.get(oefosname) != null) {\r\n if (this.oefos_path.get(oefosname).containsValue(kv.getValue().TID)) {\r\n selected = inner;\r\n }\r\n }\r\n\r\n recursiveOefosTreeviewBuild(inner, kv.getValue().subtaxons, sequence, panelname);\r\n }\r\n\r\n // Utility.sortTreeChildren(nodes);\r\n } catch (Exception ex) {\r\n throw new Exception(\"Exception in recursiveOefosTreeviewBuild: \" + ex.getStackTrace() + \"\\n\");\r\n }\r\n }", "public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String> nodeF = new Node<String>(\"F\", null, null);\n Node<String> nodeG = new Node<String>(\"G\", null, null);\n root.leftChild = nodeB;\n root.rightChild = nodeC;\n nodeB.leftChild = nodeD;\n nodeB.rightChild = nodeE;\n nodeC.leftChild = nodeF;\n nodeC.rightChild = nodeG;\n\n }", "private void buildRoot() {\n this.root = new GPRootTreeNode(this.tree);\n }", "private void buildSkiTree(SkiNode head) {\n\t\tupdateNextNode(head, head.i - 1, head.j, 0);\n\t\tupdateNextNode(head, head.i, head.j - 1, 1);\n\t\tupdateNextNode(head, head.i + 1, head.j, 2);\n\t\tupdateNextNode(head, head.i, head.j + 1, 3);\n\t}", "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 testBuildTreeDeepStructure() {\n TreeNode root = buildRootNodeFromFile(\"testWihManyLevels.js\");\n\n // Ensure the hierarchy is correct.\n assertEquals(\"suite1\", root.getNodeValue().getTestText());\n assertEquals(4, root.getChildCount());\n }", "private Node makeTree(Node currentNode, DataNode dataNode,\r\n\t\t\tint featureSubsetSize, int height) {\n\r\n\t\tif (dataNode.labels.size() < this.traineeDataSize / 25 || height > 7) {\r\n\t\t\treturn new Node(majority(dataNode));\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tEntropyCalculation e1 = new EntropyCalculation();\r\n\r\n\t\t\tNode n = e1.maxGainedElement(dataNode.features, dataNode.labels, featureSubsetSize); //new\r\n\r\n\r\n\t\t\tif(e1.zeroEntropy){\r\n\r\n\t\t\t\tcurrentNode = new Node(dataNode.labels.get(0));\r\n\r\n\t\t\t\t/*currentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.labels.get(0);*/\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t\telse{\r\n\r\n\t\t\t\tcurrentNode = new Node();\r\n\r\n\t\t\t\tcurrentNode.featureIndexColumn = n.featureIndexColumn;\r\n\t\t\t\tcurrentNode.featureIndexRow = n.featureIndexRow;\r\n\r\n\t\t\t\tcurrentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.features.get(currentNode.featureIndexRow).get(currentNode.featureIndexColumn);\r\n\r\n\t\t\t\tcurrentNode.leftChild = new Node();\r\n\t\t\t\tcurrentNode.rightChild = new Node();\r\n\r\n\t\t\t\tDataNode leftNode = new DataNode();\r\n\t\t\t\tDataNode rightNode = new DataNode();\r\n\r\n\t\t\t\tfor (int i = 0; i < dataNode.features.size(); i++) {\r\n\r\n\t\t\t\t\tif(currentNode.nodeValue >= dataNode.features.get(i).get(currentNode.featureIndexColumn)) {\r\n\r\n\t\t\t\t\t\tleftNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\tleftNode.labels.add(dataNode.labels.get(i));\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\trightNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\trightNode.labels.add(dataNode.labels.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif((leftNode.labels.isEmpty() || rightNode.labels.isEmpty()) && height == 0){\r\n\t\t\t\t\tSystem.out.println(\"Ghapla\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentNode.leftChild = makeTree(currentNode.leftChild, leftNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\tcurrentNode.rightChild = makeTree(currentNode.rightChild, rightNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void createTree(SuccessorGenerator generator, GameState initialState)\n {\n LinkedList<GameState> currentLevel = new LinkedList<GameState>();\n currentLevel.add(initialState);\n Player currentPlayer = Player.PLAYER_MAX;\n \n int level = 0;\n while(true)\n {\n LinkedList<GameState> nextLevel = new LinkedList<GameState>();\n \n /*Gerando todas as ações possíveis para o nível atual.*/\n for(GameState state : currentLevel)\n {\n generator.generateSuccessors(state, currentPlayer);\n \n for(int i = 0; i < state.getChildren().size(); i++)\n {\n GameState successorState = state.getChildren().get(i);\n nextLevel.add(successorState);\n }\n }\n System.out.println(\"Expandindo nível \"+(level++)+\" com \"+nextLevel.size()+\" estados.\");\n \n /*Alternando jogadores*/\n currentPlayer = (currentPlayer == Player.PLAYER_MAX)?\n Player.PLAYER_MIN:\n Player.PLAYER_MAX; \n \n /*Busca termina quando todos os estados foram explorados*/\n if(nextLevel.isEmpty()) break;\n \n currentLevel.clear();\n currentLevel.addAll(nextLevel);\n }\n \n }", "private List<TreeNode> helper(int m, int n) {\n\t\t//System.out.println(\"== \" + m + \" \" + n + \"== \");\n\t\tList<TreeNode> result = new ArrayList<TreeNode>();\n\t\tif (m > n) {\n\t\t\t/* MUST add null \n\t\t\t * Cannot do nothing because foreach loop cannot find it if nothing inside \n\t\t\t */\n\t\t\tresult.add(null);\n\t\t} else if (m == n) {\n\t\t\tTreeNode node = new TreeNode(m);\n\t\t\tresult.add(node);\n\t\t} else {\n\t\t\tfor (int i = m; i <= n; i++) {\n\t\t\t\t//System.out.println(\"m, n, i : \" + m + \" \" + n + \" - \" + i);\n\t\t\t\tList<TreeNode> ls = helper(m, i - 1);\n\t\t\t\tList<TreeNode> rs = helper(i + 1, n);\n\t\t\t\t\n\t\t\t\tfor(TreeNode l: ls){\n\t\t\t\t\tfor(TreeNode r: rs){\n\t\t\t\t\t\tTreeNode node = new TreeNode(i);\n\t\t\t\t\t\tnode.left =l;\n\t\t\t\t\t\tnode.right=r;\n\t\t\t\t\t\tresult.add(node);\n\t\t\t\t\t\t//System.out.println(\">>>>>>>\");\n\t\t\t\t\t\t//node.printBFS();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n TreeNode node = new TreeNode();\n node.value = 1;\n node.left = new TreeNode();\n node.left.value = 2;\n node.right = new TreeNode();\n node.right.value = 3;\n node.left.left = new TreeNode();\n node.left.left.value = 4;\n node.left.right = new TreeNode();\n node.left.right.value = 5;\n node.right.left = new TreeNode();\n node.right.left.value = 6;\n node.right.right = new TreeNode();\n node.right.right.value = 7;\n// System.out.println(mirro(node).value);\n// System.out.println(mirro(node).left.value);\n// System.out.println(Arrays.toString(LevelPrintTree.levelPrint(mirro(node))));\n\n recur(node);\n\n }", "public BuildTree createBuildTree() {\n BuildTree buildTree = new BuildTree();\n createBuildTree(0, buildTree);\n return buildTree;\n }", "public void buildTreeRecursive(SearchNode currentNode, MapGrid map, int depthLimit) {\n\t\tsize = depthLimit;\n\t\tif (currentNode.getX() == 0 && currentNode.getY() == 0) {\n\t\t\thomeFound = true; \t// If home has not been found within depthLimit, then the reverse stack path is fastest route\n\t\t\treturn; \t\t\t// If the current Node is the home node, don't build deeper\n\t\t} else if (currentNode.getDepth() + 1 > depthLimit) {\t// if currentNode is at the depth limit, don't build further\n\t\t\treturn;\n\t\t} else {\n\t\t\tint currentDepth = currentNode.getDepth();\n\t\t\tGridCell currentCell = getCellFromNodeXY(currentNode, map);\n\t\t\tList<Character> walls = currentCell.directionsWithoutWalls();\n\t\t\tfor (char dir : walls) {\t\t\t\t\n\t\t\t\tGridCell adjacentCell = map.getCellInDir(currentCell, dir);\n\t\t\t\tSearchNode adjacentNode = createNodeFromCell(adjacentCell);\n\t\t\t\tadjacentNode.setDepth(currentDepth + 1);\n\t\t\t\tcurrentNode.addNodeInDir(adjacentNode, dir);\t\t\t\t\n\t\t\t\tbuildTreeRecursive(adjacentNode, map, depthLimit);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length==0 || postorder.length==0)\n return null;\n return build(inorder, postorder, 0, inorder.length-1, 0, postorder.length-1);\n }", "protected void buildHirarchyTree() {\r\n\t\tfor(SupplyZone s : supplyZoneLines){\r\n\t\t\tZoneNode currentZone = zoneNodeMap.get(s.getZoneName());\r\n\t\t\tZoneNode parentZone = zoneNodeMap.get(s.getParentZoneName());\r\n\t\t\tif(parentZone == null){\r\n\t\t\t\tzonesTreeRoot = currentZone;\r\n\t\t\t}\r\n\t\t\tcurrentZone.setParent(parentZone);\r\n\t\t\tif (parentZone != null) parentZone.addChild(currentZone); \r\n\t\t}\r\n\r\n\t}", "public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "static void buildtree(int arr[], int tree[], int start, int end, int index) {\r\n\t\tif (start == end) {\r\n\t\t\ttree[index] = arr[start];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint mid = (start + end) / 2;\r\n\t\tbuildtree(arr, tree, start, mid, 2 * index);\r\n\t\tbuildtree(arr, tree, mid + 1, end, (2 * index) + 1);\r\n\r\n\t\ttree[index] = tree[2 * index] + tree[(2 * index) + 1];\r\n\r\n\t}", "public void buildTree() throws RuntimeException, DivideByZero {\r\n // define local variable to count number of times an operator \r\n // is pushed into it's associated stack. This will be use to \r\n // count register values\r\n int i = 0;\r\n\r\n // split postfix expression enterend into the textbox into tokens using \r\n // StringTokenizer. Delimeters are used so that different inputs \r\n // can be parsed without spaces being necessary \r\n StringTokenizer token = new StringTokenizer(inputExpression, \" */+-\", true);\r\n\r\n // while loop to build tree out of the postfix expression\r\n while (token.hasMoreTokens()) {\r\n // get the next token in series\r\n String nextItem = token.nextToken();\r\n\r\n // use selection statements to determine if the next token\r\n // in the String is an operand, operator, or unknown\r\n if (nextItem.matches(\"[0-9]+\")) {\r\n // push operand to associated stack\r\n operandStk.push(nextItem);\r\n \r\n // push operand to AssemblyCode class\r\n assemblyCode.pushStack(nextItem);\r\n\r\n } else if (nextItem.equals(\"*\") || nextItem.equals(\"/\")\r\n || nextItem.equals(\"+\") || nextItem.equals(\"-\")) {\r\n // push current operator to operators stack\r\n operatorStk.push(nextItem);\r\n // call the getNodes() method to perform operation\r\n getNodes(i);\r\n // count each time an operator is pushed so registers can be counted\r\n i++;\r\n } else if (!nextItem.equals(\" \")){ \r\n // set class variable to equal invalid character\r\n invalidToken = nextItem; \r\n // throw exception if illegal operator or operand is parsed\r\n throw new RuntimeException();\r\n }\r\n } // end while loop\r\n }", "private void buildTree() {\n if (treeBuilt) {\n return;\n }\n\n Vector gItems = protocol.getGroupItems();\n int gCount = gItems.size();\n for (int i = 0; i < gCount; ++i) {\n Group gItem = (Group)gItems.elementAt(i);\n gItem.updateContacts();\n gItem.updateGroupData();\n }\n\n TreeNode currentNode = getCurrentNode();\n TreeBranch root = getRoot();\n clear();\n root.setExpandFlag(false);\n boolean showOffline = !Options.getBoolean(Options.OPTION_CL_HIDE_OFFLINE);\n for (int groupIndex = 0; groupIndex < gCount; ++groupIndex) {\n Group group = (Group)gItems.elementAt(groupIndex);\n boolean isExpanded = group.isExpanded();\n group.setExpandFlag(false);\n cleanNode(group);\n Vector contacts = group.getContacts();\n int contactCount = contacts.size();\n for (int contactIndex = 0; contactIndex < contactCount; ++contactIndex) {\n Contact cItem = (Contact)contacts.elementAt(contactIndex);\n if (cItem.isVisibleInContactList()) {\n addNode(group, cItem);\n }\n }\n group.setExpandFlag(isExpanded);\n if (showOffline || (0 < group.getSubnodesCount())) {\n addNode(root, group);\n }\n }\n Vector cItems = getContactItems();\n int cCount = cItems.size();\n for (int contactIndex = 0; contactIndex < cCount; ++contactIndex) {\n Contact cItem = (Contact)cItems.elementAt(contactIndex);\n if ((Group.NOT_IN_GROUP == cItem.getGroupId()) && cItem.isVisibleInContactList()) {\n addNode(root, cItem);\n }\n }\n\n setCurrentNode(currentNode);\n root.setExpandFlag(true);\n updateMetrics();\n treeBuilt = true;\n }", "private TreeItem<File> buildTree(model.Node node, TreeItem<File> parent) throws IOException {\n // set the root of the tree\n TreeItem<File> root = new TreeItem<>(node.getDir().getFile());\n // show all subdirectories and photos by default\n root.setExpanded(true);\n // set all photos under the directory as the child TreeItem of this directory\n for (model.Photo photo : node.getDir().getPhotos()) {\n root.getChildren().add(new TreeItem<>(photo.getFile()));\n if (!model.PhotoManager.getPhotos().contains(photo)) {\n model.PhotoManager.addPhoto(photo);\n }\n }\n // set all subdirectories of this directory as the child TreeItem\n for (Object child : node.getChildren()) {\n model.Node subDir = (model.Node) child;\n buildTree(subDir, root);\n }\n if (parent == null) {\n return root;\n } else {\n parent.getChildren().add(root);\n }\n return null;\n }", "public Node buildTree(int arr[][], int start, int end, int level, int height){\n\t\tif(start>end) return nil;\n\t\tint mid = start+(end-start)/2;\n\t\tNode root; \n\t\tif(level==height-1){\n\t\t\troot = new Node(arr[mid][0],arr[mid][1],\"Red\");\n\t\t}else{\n\t\t\troot = new Node(arr[mid][0],arr[mid][1],\"Black\");\t\t\n\t\t}\n\t\troot.left = buildTree(arr,start,mid-1,level+1,height);\n\t\troot.left.parent=root;\n\t\troot.right = buildTree(arr,mid+1,end,level+1,height);\n\t\troot.right.parent=root;\n\t\treturn root;\n\t}", "private TreeNode createTree() {\n // Map<String, String> map = new HashMap<>();\n // map.put(\"dd\", \"qq\");\n // 叶子节点\n TreeNode G = new TreeNode(\"G\");\n TreeNode D = new TreeNode(\"D\");\n TreeNode E = new TreeNode(\"E\", G, null);\n TreeNode B = new TreeNode(\"B\", D, E);\n TreeNode H = new TreeNode(\"H\");\n TreeNode I = new TreeNode(\"I\");\n TreeNode F = new TreeNode(\"F\", H, I);\n TreeNode C = new TreeNode(\"C\", null, F);\n // 构造根节点\n TreeNode root = new TreeNode(\"A\", B, C);\n return root;\n }", "public TreeNode build(LinkedList<String> l){\n String s = l.removeFirst();\n //Strings use equals() to compare value, \n //the \"==\" compares the adress that variable points to\n if(s.equals(\"null\")){\n return null;\n }\n else{\n //Integer.parseInt(String s) returns int, \n //Integer.valueOf(String s) returns Integer\n TreeNode node = new TreeNode(Integer.parseInt(s));\n node.left = build(l);\n node.right = build(l);\n return node;\n }\n }", "List<TreeNodeDTO> genTree(boolean addNodeSize, boolean addRootNode, List<Long> disabledKeys);", "public TreeNode buildTree(int[] inorder, int[] postorder) {\n return buildTreeRecursive(inorder, 0, inorder.length, postorder, 0, postorder.length);\n }", "private static Node getTree()\r\n {\r\n Node node1 = new Node( 1 );\r\n Node node2 = new Node( 2 );\r\n Node node3 = new Node( 3 );\r\n Node node4 = new Node( 4 );\r\n Node node5 = new Node( 5 );\r\n Node node6 = new Node( 6 );\r\n Node node7 = new Node( 7 );\r\n\r\n node1.left = node2;\r\n node1.right = node3;\r\n\r\n node2.left = node4;\r\n node2.right = node5;\r\n\r\n node3.left = node6;\r\n node3.right = node7;\r\n return node1;\r\n }", "public TreeNode buildTree(int[] preorder, int[] inorder) {\n return buildTreeHelper(preorder, 0, preorder.length - 1, inorder, 0, inorder.length - 1);\n }", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "node FullTreeGen(int maxdepth){\n\t\tint i;\n\t\tbyte a;\n\t\tnode t, p;\n\t\tif(maxdepth == 0) // to the limit then choose a terminal\n\t\t{\n\t\t\ti = IRandom(0, gltcard - 1);\n\t\t\tt = new node(glterminal[i].name, VOIDVALUE);\n\t\t\treturn t;\n\t\t} \n\t\telse // choosing from function\n\t\t{\n\t\t\ti = IRandom(0, glfcard - 1);\n\t\t\tt = new node(glfunction[i].name, VOIDVALUE);\n\t\t\tt.children = FullTreeGen(maxdepth - 1);\n\t\t\tp = t.children;\n\t\t\tfor(a = 1; a < glfunction[i].arity; a++) {\n\t\t\t\tp.sibling = FullTreeGen(maxdepth - 1);\n\t\t\t\tp = p.sibling;\n\t\t\t}\n\t\t\tp.sibling = null;\n\t\t\treturn t;\n\t\t}\n\t}", "public String buildTreeFromMessage(){\n parseMsg();\n if(printOCCTable)printTable();\n constructTree();\n reconstructTree();\n if(printHuffTree)\n printTree();\n return printBFSTree();\n }", "public CS232LinkedBinaryTree<Integer, Character> buildHuffTree() {\n\n\t\twhile (huffBuilder.size() > 1) {// Until one tree is left...\n\n\t\t\t// Make references to the important trees\n\t\t\tCS232LinkedBinaryTree<Integer, Character> newTree = new CS232LinkedBinaryTree<Integer, Character>();\n\t\t\tCS232LinkedBinaryTree<Integer, Character> firstSubTree = huffBuilder.remove();\n\t\t\tCS232LinkedBinaryTree<Integer, Character> secondSubTree = huffBuilder.remove();\n\n\t\t\t// Create the new root on the new joined tree. Use the character of higher priority.\n\t\t\tCharacter newTreeRootValue = this.getPriorityCharacter(firstSubTree.root.value, secondSubTree.root.value);\n\t\t\tnewTree.add(firstSubTree.root.key + secondSubTree.root.key, newTreeRootValue);\n\n\t\t\t// Join the new root's right side with the first tree\n\t\t\tnewTree.root.right = firstSubTree.root;\n\t\t\tfirstSubTree.root.parent = newTree.root;\n\n\t\t\t// Join the new root's left side with the second tree\n\t\t\tnewTree.root.left = secondSubTree.root;\n\t\t\tsecondSubTree.root.parent = newTree.root;\n\n\t\t\t// put the newly created tree back into the priority queue\n\t\t\thuffBuilder.add(newTree); \n\t\t}\n\t\t/*\n\t\t * At the end of the whole process, we have one final mega-tree. return\n\t\t * it and finally empty the queue!\n\t\t */\n\t\treturn huffBuilder.remove();\n\t}", "public void createBinaryTree()\r\n\t{\n\t\t\r\n\t\tNode node = new Node(1);\r\n\t\tnode.left = new Node(2);\r\n\t\tnode.right = new Node(3);\r\n\t\tnode.left.left = new Node(4);\r\n\t\tnode.left.right = new Node(5);\r\n\t\tnode.left.right.right = new Node(10);\r\n\t\tnode.left.left.left = new Node(8);\r\n\t\tnode.left.left.left.right = new Node(15);\r\n\t\tnode.left.left.left.right.left = new Node(17);\r\n\t\tnode.left.left.left.right.left.left = new Node(18);\r\n\t\tnode.left.left.left.right.right = new Node(16);\r\n\t\tnode.left.left.right = new Node(9);\r\n\t\tnode.right.left = new Node(6);\r\n\t\tnode.right.left.left = new Node(13);\r\n\t\tnode.right.left.left.left = new Node(14);\r\n\t\tnode.right.right = new Node(7);\r\n\t\tnode.right.right.right = new Node(11);\r\n\t\tnode.right.right.right.right = new Node(12);\r\n\t\troot = node;\r\n\t\t\r\n\t}", "public static TreeNode buildTreeNode06() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.left = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(4);\n\t\troot.right.left.right = new TreeNode(5);\n\t\t\n\t\treturn root;\n\t}", "private TreeNode buildTree(int[] preorder, int[] inorder, int[] preIndex, int[] inIndex, int target) {\n if (inIndex[0] >= inorder.length || inorder[inIndex[0]] == target) {\n return null;\n }\n TreeNode root = new TreeNode(preorder[preIndex[0]]);\n //preorder, advance the index by 1 sice we already finish the root;\n preIndex[0]++;\n root.left = buildTree(preorder, inorder, preIndex, inIndex, root.val);\n //after finishing left subtree, we can advance the index by 1\n inIndex[0]++;\n root.right = buildTree(preorder, inorder, preIndex, inIndex, target);\n return root;\n }", "public TreeNode buildTree(int[] preorder, int[] inorder) {\n if (preorder.length == 0 || inorder.length == 0) {\n return null;\n }\n TreeNode root = new TreeNode(preorder[0]);\n if (preorder.length == 1) {\n return root;\n }\n int rootIndex = findRootIndex(inorder, preorder[0]);\n if (rootIndex > 0) {\n root.left = buildTree(\n Arrays.copyOfRange(preorder, 1, rootIndex + 1),\n Arrays.copyOfRange(inorder, 0, rootIndex));\n }\n if (rootIndex < preorder.length) {\n root.right = buildTree(\n Arrays.copyOfRange(preorder, rootIndex + 1, preorder.length),\n Arrays.copyOfRange(inorder, rootIndex + 1, inorder.length));\n }\n return root;\n }", "public static Node[] initTree(int[] arr){\n int i;\n Node[] tree = new Node[n];\n Node node;\n for(i = 0; i < n; i++){\n node = new Node();\n node.data = arr[i];\n tree[i] = node;\n }\n tree[0].data = arr[0];\n tree[1].data = arr[1];\n tree[2].data = arr[2];\n tree[3].data = arr[3];\n tree[4].data = arr[4];\n tree[5].data = arr[5];\n tree[6].data = arr[6];\n\n tree[0].parent = null;\n tree[0].left = tree[1];\n tree[0].right = tree[2];\n\n tree[1].parent = tree[0];\n tree[1].left = null;\n tree[1].right = tree[3];\n\n tree[2].parent = tree[0];\n tree[2].left = tree[4];\n tree[2].right = null;\n \n tree[3].parent = tree[1];\n tree[3].left = null;\n tree[3].right = null;\n\n tree[4].parent = tree[2];\n tree[4].left = tree[5];\n tree[4].right = tree[6];\n\n tree[5].parent = tree[4];\n tree[5].left = null;\n tree[5].right = null;\n\n tree[6].parent = tree[4];\n tree[6].left = null;\n tree[6].right = null;\n\n root = tree[0];\n return tree; \n }", "public static RootNode buildTree() {\n\t\t//1\n\t\tfinal RootNode root = new RootNode();\n\t\t\n\t\t//2\n\t\tEdgeNode a = attachEdgenode(root, \"a\");\n\t\tEdgeNode daa = attachEdgenode(root, \"daa\");\n\t\t\n\t\t//3\n\t\tExplicitNode e = Builder.buildExplicit();\n\t\te.setPreviousNode(a);\n\t\ta.addChildNode(e);\n\t\t\n\t\tattachLeafNode(daa, \"2\");\n\t\t\n\t\t//4\n\t\tEdgeNode a_e = attachEdgenode(e, \"a\");\n\t\tEdgeNode daa_e = attachEdgenode(e, \"daa\");\t\t\n\t\t\n\t\t//5\n\t\tattachLeafNode(a_e, \"3\");\n\t\tattachLeafNode(daa_e, \"1\");\n\t\treturn root;\n\t}", "public static TreeNode buildTreeNode07() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.left = new TreeNode(2);\n\t\troot.left.left = new TreeNode(4);\n\t\troot.left.right = new TreeNode(5);\n\t\troot.left.left.left = new TreeNode(8);\n\t\troot.left.left.right = new TreeNode(9);\n\t\troot.left.right.left = new TreeNode(10);\n\t\troot.left.right.right = new TreeNode(11);\n\t\t\n\t\troot.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(6);\n\t\troot.right.right = new TreeNode(7);\n\t\troot.right.left.left = new TreeNode(12);\n\t\troot.right.left.right = new TreeNode(13);\n\t\troot.right.right.left = new TreeNode(14);\n\t\troot.right.right.right = new TreeNode(15);\n\t\t\n\t\treturn root;\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "private CategoryView buildComplicatedExpectedTree() {\n\n CategoryView root = new CategoryView(\"ROOT\");\n CategoryView a = new CategoryView(\"a\");\n CategoryView b = new CategoryView(\"b\");\n CategoryView c = new CategoryView(\"c\");\n CategoryView d = new CategoryView(\"d\");\n CategoryView e = new CategoryView(\"e\");\n\n root.addChild(a);\n root.addChild(e);\n root.addChild(new CategoryView(\"f\"));\n root.addChild(new CategoryView(\"g\"));\n root.addChild(new CategoryView(\"z\"));\n a.addChild(b);\n b.addChild(c);\n a.addChild(c);\n c.addChild(d);\n d.addChild(e);\n c.addChild(e);\n\n root.addChild(new CategoryView(\"1\") {{\n addChild(new CategoryView(\"2\") {{\n addChild(new CategoryView(\"3\"));\n }});\n }});\n root.addChild(new CategoryView(\"x\") {{\n addChild(new CategoryView(\"y\"));\n }});\n\n return root;\n }", "void createBST(Node rootnode){ \n \n //Insert data into new bst, and then pass next nodes so they can be inserted. \n tree.insertNode(tree.ROOT, rootnode.data);\n \n if(rootnode.left != null){\n createBST(rootnode.left);\n }\n \n if(rootnode.right != null){\n createBST(rootnode.right);\n } \n }", "public void tree(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-30);\n double r2 = angle + Math.toRadians(30);\n double r3 = angle + Math.toRadians(0);\n\n //length modifications of the different branches\n double l1 = length/1.3 + (l1I*5);\n double l2 = length/1.3 + (l2I*5);\n double l3 = length/1.3 + (l3I*5);\n\n //x and y points of the end of the different branches\n int ax = (int)(x - Math.sin(r1)*l1)+(int)(l1I);\n int ay = (int)(y - Math.cos(r1)*l1)+(int)(l1I);\n int bx = (int)(x - Math.sin(r2)*l2)+(int)(l2I);\n int by = (int)(y - Math.cos(r2)*l2)+(int)(l2I);\n int cx = (int)(x - Math.sin(r3)*l3)+(int)(l3I);\n int cy = (int)(y - Math.cos(r3)*l3)+(int)(l3I);\n\n if(n == 0){\n return;\n }\n\n\n increment();\n Color fluidC = new Color(colorR,colorG,colorB);\n //bbg.setColor(new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random()*255)));\n bbg.setColor(fluidC);\n\n\n //draw different branches\n bbg.drawLine(x,y,ax,ay);\n bbg.drawLine(x,y,bx,by);\n bbg.drawLine(x,y,cx,cy);\n\n //call recursively to draw fractal\n tree(bbg,n-1,(int)l1, ax,ay,r1);\n tree(bbg, n - 1, (int)l2, bx,by,r2);\n tree(bbg, n - 1, (int)l3, cx,cy,r3);\n\n\n }", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "private static void fillTree(Branch side, Scanner scanner, BinaryNode<String> parent) {\r\n\t\t//If the scanner has a next line, take in the line and see if it is \"NULL\". If it is NULL, do nothing (Base case). Else, set the left or right child\r\n\t\t//to a BinaryNode containing the next string taken in by the scanner depending on the side the method was called with. \r\n\t\t//Then execute two recursive calls to fill out the rest of that side of the tree..\r\n\t\tif(scanner.hasNext()) {\r\n\t\t\tBinaryNode <String> entry = new BinaryNode<String>(scanner.nextLine());\r\n\t\t\t//Base case: If the line is \"NULL\", do nothing\r\n\t\t\tif(entry.getData().equals(\"NULL\")) {}\r\n\t\t\telse {\r\n\t\t\t\t//If the side is LEFT, set the left node to the entry\r\n\t\t\t\tif(side == Branch.LEFT) \r\n\t\t\t\t\tparent.setLeftChild(entry);\r\n\t\t\t\t//If the side is RIGHT, set the right node to the entry\r\n\t\t\t\telse if(side == Branch.RIGHT) \r\n\t\t\t\t\tparent.setRightChild(entry);\r\n\t\t\t\t//Call the method for the left and right sides again to fill out the rest of that side of the tree\r\n\t\t\t\tfillTree(Branch.LEFT, scanner, entry);\r\n\t\t\t\tfillTree(Branch.RIGHT, scanner, entry);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static TreeNode generateBinaryTree1() {\n // Nodes\n TreeNode root = new TreeNode(5);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootRight = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(20);\n TreeNode rootLeftRight = new TreeNode(1);\n // Edges\n root.left = rootLeft;\n root.right = rootRight;\n rootLeft.left = rootLeftLeft;\n rootLeft.right = rootLeftRight;\n\n // Return root\n return root;\n }", "void buildTree(){\n while(second.hasNext()){\n String s = second.next();\n String[] arr = s.split(SPLIT);\n //descending sort according to num\n Arrays.sort(arr, (String s1, String s2)->{\n int a = this.keyToNum.getOrDefault(s1, 0);\n int b = this.keyToNum.getOrDefault(s2, 0);\n if (a <= b)\n return 1;\n else\n return -1;\n });\n\n //current node\n TreeNode curr = root;\n for (String item: arr){\n if (!keyToNum.containsKey(item))\n continue;\n if(!curr.containChild(item)){\n TreeNode node = curr.addChild(item);\n //change the current node\n curr = node;\n //add new node in table\n TableEntry e = table.get(keyToIdx.get(item));\n e.addNode(node);\n }else{\n curr = curr.getChild(item);\n curr.setNum(curr.getNum()+1);\n }\n }\n }\n /*\n this.root.print();\n for(TableEntry e: table){\n Iterator<TreeNode> it = e.getIterator();\n while(it.hasNext()){\n System.out.print(it.next().getItem()+\" \");\n }\n System.out.println();\n }\n */\n }", "private static Node buildSmallerTree() {\n\t\tNode root = createNode(10);\n\t\troot.leftChild = createNode(25);\n\t\troot.rightChild = createNode(25);\n\t\troot.leftChild.leftChild = createNode(13);\n\t\troot.rightChild.rightChild = createNode(7);\n\t\troot.leftChild.rightChild = createNode(27);\n\t\t\n\t\treturn root;\n\t}", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n int[] arrayNode = new int[n + 1];\n for (int i = 1; i <= n; i++) {\n arrayNode[i] = scan.nextInt();\n }\n\n Color[] arrayColor = new Color[n + 1];\n for (int i = 1; i <= n; i++) {\n if (scan.nextInt() == 0) {\n arrayColor[i] = Color.RED;\n } else {\n arrayColor[i] = Color.GREEN;\n }\n }\n\n List<Integer>[] adjacentsList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n adjacentsList[i] = new ArrayList<Integer>();\n }\n\n for (int i = 0; i < n - 1; i++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n adjacentsList[x].add(y);\n adjacentsList[y].add(x);\n }\n\n scan.close();\n\n List<Integer>[] childrenList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n childrenList[i] = new ArrayList<Integer>();\n }\n\n int[] depths = new int[n + 1];\n boolean[] visited = new boolean[n + 1];\n\n Queue<Integer> queue = new LinkedList<Integer>();\n depths[1] = 0;\n queue.offer(1);\n while (!queue.isEmpty()) {\n int head = queue.poll();\n\n if (visited[head]) {\n continue;\n }\n visited[head] = true;\n\n for (int adjacent : adjacentsList[head]) {\n if (!visited[adjacent]) {\n childrenList[head].add(adjacent);\n depths[adjacent] = depths[head] + 1;\n queue.offer(adjacent);\n }\n }\n }\n\n Tree[] nodes = new Tree[n + 1];\n for (int i = 1; i <= n; i++) {\n if (childrenList[i].isEmpty()) {\n nodes[i] = new TreeLeaf(arrayNode[i], arrayColor[i], depths[i]);\n } else {\n nodes[i] = new TreeNode(arrayNode[i], arrayColor[i], depths[i]);\n }\n }\n for (int i = 1; i <= n; i++) {\n for (int child : childrenList[i]) {\n ((TreeNode) nodes[i]).addChild(nodes[child]);\n }\n }\n return nodes[1];\n }", "private MoveTree generateTree() {\n\n\t\tArrayList<MoveTree> leaves = new ArrayList<>();\n\n\t\tMoveTree tree = new MoveTree(Main.getSWController().getGame().getCurrentGameState());\n\t\tleaves.add(tree);\n\n\t\tfinal Flag flag = new Flag(), finished = new Flag();\n\n\t\tTimer timer = new Timer(true);\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (flag) {\n\t\t\t\t\tif (!finished.value)\n\t\t\t\t\t\tflag.value = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}, 9000);\n\n\t\twhile (true) {\n\t\t\tArrayList<MoveTree> newLeaves = new ArrayList<>();\n\t\t\tfor (MoveTree leaf : leaves) {\n\t\t\t\tGameState state = leaf.getState();\n\t\t\t\tPlayer currentPlayer = state.getPlayer();\n\n\t\t\t\tfor (Card handcard : currentPlayer.getHand()) {\n\t\t\t\t\tBuildCapability capability = Main.getSWController().getPlayerController().canBuild(currentPlayer, handcard, state);\n\t\t\t\t\tswitch (capability) {\n\t\t\t\t\tcase FREE:\n\t\t\t\t\tcase OWN_RESOURCE:\n\t\t\t\t\t\tMove move = new Move(handcard, Action.BUILD);\n\t\t\t\t\t\tMoveTree newTree = new MoveTree(move, doMove(move, currentPlayer, state));\n\t\t\t\t\t\tnewLeaves.add(newTree);\n\t\t\t\t\t\tleaf.addChild(newTree);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TRADE:\n\t\t\t\t\t\tTradeOption trade = Main.getSWController().getPlayerController().getTradeOptions(currentPlayer, handcard.getRequired(), state).get(0);\n\t\t\t\t\t\tMove tradeMove = new Move(handcard, Action.BUILD);\n\t\t\t\t\t\ttradeMove.setTradeOption(trade);\n\t\t\t\t\t\tMoveTree newTree2 = new MoveTree(tradeMove, doMove(tradeMove, currentPlayer, state));\n\t\t\t\t\t\tnewLeaves.add(newTree2);\n\t\t\t\t\t\tleaf.addChild(newTree2);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (currentPlayer.getBoard().nextSlot() != -1) {\n\t\t\t\t\t\tArrayList<Resource> slotRequirements = new ArrayList<>(Arrays.asList(currentPlayer.getBoard().getNextSlotRequirement()));\n\t\t\t\t\t\tcapability = Main.getSWController().getPlayerController().hasResources(currentPlayer, slotRequirements, state);\n\t\t\t\t\t\tswitch (capability) {\n\t\t\t\t\t\tcase OWN_RESOURCE:\n\t\t\t\t\t\t\tMove move = new Move(handcard, Action.PLACE_SLOT);\n\t\t\t\t\t\t\tMoveTree newTree = new MoveTree(move, doMove(move, currentPlayer, state));\n\t\t\t\t\t\t\tnewLeaves.add(newTree);\n\t\t\t\t\t\t\tleaf.addChild(newTree);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TRADE:\n\t\t\t\t\t\t\tTradeOption trade = Main.getSWController().getPlayerController().getTradeOptions(currentPlayer, slotRequirements, state).get(0);\n\t\t\t\t\t\t\tMove tradeMove = new Move(handcard, Action.PLACE_SLOT);\n\t\t\t\t\t\t\ttradeMove.setTradeOption(trade);\n\t\t\t\t\t\t\tMoveTree newTree2 = new MoveTree(tradeMove, doMove(tradeMove, currentPlayer, state));\n\t\t\t\t\t\t\tnewLeaves.add(newTree2);\n\t\t\t\t\t\t\tleaf.addChild(newTree2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tMove sellmove = new Move(handcard, Action.SELL);\n\t\t\t\t\tMoveTree selltree = new MoveTree(sellmove, doMove(sellmove, currentPlayer, state));\n\t\t\t\t\tnewLeaves.add(selltree);\n\t\t\t\t\tleaf.addChild(selltree);\n \n\t\t\t\t\tif (!currentPlayer.isOlympiaUsed() && !Main.getSWController().getCardController().hasCard(currentPlayer, handcard.getInternalName())) {\n\t\t\t\t\t\tMove olympiamove = new Move(handcard, Action.OLYMPIA);\n\t\t\t\t\t\tMoveTree olympiatree = new MoveTree(olympiamove, doMove(olympiamove, currentPlayer, state));\n\t\t\t\t\t\tnewLeaves.add(olympiatree);\n\t\t\t\t\t\tleaf.addChild(olympiatree);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsynchronized (flag) {\n\t\t\t\t\tif (flag.value) {\n\t\t\t\t\t\tfor (MoveTree child : leaves)\n\t\t\t\t\t\t\tchild.getChildren().clear();\n\t\t\t\t\t\treturn tree;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean breakAfterwards = false;\n\n\t\t\tfor (MoveTree newLeaf : newLeaves) {\n\t\t\t\tfor (Player player : newLeaf.getState().getPlayers()) {\n\t\t\t\t\tif (player.isMausoleum()) {\n\t\t\t\t\t\tCard card = getHalikarnassusCard(player, newLeaf.getState().getTrash(), newLeaf.getState());\n\t\t\t\t\t\tif (card == null)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tnewLeaf.getState().getTrash().remove(card);\n\t\t\t\t\t\tplayer.getBoard().addCard(card);\n\t\t\t\t\t\tif (card.getEffects() != null)\n\t\t\t\t\t\t\tfor (Effect effect : card.getEffects())\n\t\t\t\t\t\t\t\tif (effect.getType() == EffectType.WHEN_PLAYED)\n\t\t\t\t\t\t\t\t\teffect.run(player, Main.getSWController().getGame());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tnewLeaf.getState().setCurrentPlayer((newLeaf.getState().getCurrentPlayer() + 1) % newLeaf.getState().getPlayers().size());\n\n\t\t\t\tif (newLeaf.getState().getCurrentPlayer() == newLeaf.getState().getFirstPlayer()) {\n\t\t\t\t\tif (newLeaf.getState().getRound() < GameController.NUM_ROUNDS)\n\t\t\t\t\t\tMain.getSWController().getGameController().nextRound(Main.getSWController().getGame(), newLeaf.getState());\n\t\t\t\t\telse // stop look-ahead at the end of age\n\t\t\t\t\t\tbreakAfterwards = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tleaves.clear();\n\t\t\tleaves.addAll(newLeaves);\n\n\t\t\tif (breakAfterwards)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfinished.value = true;\n\n\t\treturn tree;\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "public TreeNode buildTree(int[] A, int[] B) {\n HashMap<Integer, Integer> order = new HashMap<>();\n for (int i = 0; i < B.length; i++) {\n order.put(B[i], i);\n }\n\n // build Binary Tree from Pre-order list with order of nodes\n TreeNode root = new TreeNode(A[0]);\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerLast(root);\n\n /*\n for (int i = 1; i < A.length; i++) {\n if (order.get(A[i]) < order.get(stack.peekLast().val)) {\n TreeNode parent = stack.peekLast();\n parent.left = new TreeNode(A[i]);\n stack.offerLast(parent.left);\n }\n else {\n TreeNode parent = stack.peekLast();\n while(!stack.isEmpty() &&\n (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = new TreeNode(A[i]);\n stack.offerLast(parent.right);\n }\n\n }\n */\n for (int i = 1; i < A.length; i++) {\n TreeNode parent = stack.peekLast();\n TreeNode node = new TreeNode(A[i]);\n if (order.get(A[i]) < order.get(parent.val)) {\n parent.left = node;\n } else {\n while (!stack.isEmpty() && (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = node;\n }\n stack.offerLast(node);\n }\n\n return root;\n }", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "public static void createTreeFromTraversals() {\n int[] preorder = {9, 2, 1, 0, 5, 3, 4, 6, 7, 8};\n int[] inorder = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n Tree tree = new Tree();\n tree.head = recur(preorder, inorder, 0, 0, inorder.length-1);\n tree.printPreOrder();\n System.out.println();\n tree.printInOrder();\n System.out.println();\n }", "private TraverseData traverseOneLevel(TraverseData data) {\n Node<T> currentNode = data.currentNode;\n Node<T> currentNewNode = data.currentNewNode;\n int nextBranch = data.index / data.base;\n\n currentNewNode.set(nextBranch, new Node<>(branchingFactor));\n for (int anotherBranch = 0; anotherBranch < branchingFactor; anotherBranch++) {\n if (anotherBranch == nextBranch) {\n continue;\n }\n currentNewNode.set(anotherBranch, currentNode.get(anotherBranch));\n }\n\n //down\n currentNode = currentNode.get(nextBranch);\n currentNewNode = currentNewNode.get(nextBranch);\n return new TraverseData(currentNode, currentNewNode, data.newRoot, data.index % data.base,\n data.base);\n }", "private static Node buildTree(int[] preorder, int[] inorder) {\n Map<Integer, Integer> inorderMap = new HashMap<>();\n IntStream.range(0, inorder.length).forEach(i -> inorderMap.put(inorder[i], i));\n\n int[] preorderIndex = new int[1];\n return buildTreeHelper(preorder, preorderIndex, 0, inorder.length - 1, inorderMap);\n }", "private Node constructInternal(List<Node> children){\r\n\r\n // Base case: root found\r\n if(children.size() == 1){\r\n return children.get(0);\r\n }\r\n\r\n // Generate parents\r\n boolean odd = children.size() % 2 != 0;\r\n for(int i = 1; i < children.size(); i += 2){\r\n Node left = children.get(i-1);\r\n Node right = children.get(i);\r\n Node parent = new Node(Utility.SHA512(left.hash + right.hash), left, right);\r\n children.add(parent);\r\n }\r\n\r\n // If the number of nodes is odd, \"inherit\" the remaining child node (no hash needed)\r\n if(odd){\r\n children.add(children.get(children.size() - 1));\r\n }\r\n return constructInternal(children);\r\n }", "node GrowthTreeGen(int maxdepth){\n\t\tint i;\n\t\tbyte a;\n\t\tnode t, p;\n\t\tif(maxdepth == 0) // to the limit then choose a terminal\n\t\t{\n\t\t\ti = IRandom(0, gltcard - 1);\n\t\t\tt = new node(glterminal[i].name, VOIDVALUE);\n\t\t\treturn t;\n\t\t} \n\t\telse // choosing from function and terminal\n\t\t {\n\t\t\ti = IRandom(0, gltermcard - 1);\n\t\t\tt = new node(glterm[i].name, VOIDVALUE);\n\t\t\tif(glterm[i].arity > 0) // if it is function\n\t\t\t{\n\t\t\t\tt.children = GrowthTreeGen(maxdepth - 1);\n\t\t\t\tp = t.children;\n\t\t\t\tfor(a = 1; a < glterm[i].arity; a++) {\n\t\t\t\t\tp.sibling = GrowthTreeGen(maxdepth - 1);\n\t\t\t\t\tp = p.sibling;\n\t\t\t\t}\n\t\t\t\tp.sibling = null;\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t}", "static TreeNode createTree(TreeNode root, int[] arr, int index) {\r\n\t\t\r\n\t\tif (index < arr.length) {\r\n\t\t\tTreeNode tmp = null;\r\n\t\t\tif (arr[index]>=0) {\r\n\t\t\t\ttmp = new TreeNode(arr[index]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttmp = null;\r\n\t\t\t}\r\n\t\t\troot= tmp;\r\n\t\t\t\r\n\t\t\tif (root != null) {\r\n\t\t\t\troot.left = createTree(tmp.left,arr,index*2+1);\r\n\t\t\t\troot.right = createTree(tmp.right,arr,index*2+2);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn root;\r\n\t}", "static TreeNode createTree(TreeNode root, int[] arr, int index) {\r\n\t\t\r\n\t\tif (index < arr.length) {\r\n\t\t\tTreeNode tmp = null;\r\n\t\t\tif (arr[index]>=0) {\r\n\t\t\t\ttmp = new TreeNode(arr[index]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttmp = null;\r\n\t\t\t}\r\n\t\t\troot= tmp;\r\n\t\t\t\r\n\t\t\tif (root != null) {\r\n\t\t\t\troot.left = createTree(tmp.left,arr,index*2+1);\r\n\t\t\t\troot.right = createTree(tmp.right,arr,index*2+2);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn root;\r\n\t}", "private void expandTree() {\n tree.expand();\n }", "boolean isRecursive();", "public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }", "@Test\r\n\tpublic void test(){\r\n\t\tTreeNode root = new TreeNode(1); \r\n TreeNode r2 = new TreeNode(2); \r\n TreeNode r3 = new TreeNode(3); \r\n TreeNode r4 = new TreeNode(4); \r\n TreeNode r5 = new TreeNode(5); \r\n TreeNode r6 = new TreeNode(6); \r\n root.left = r2; \r\n root.right = r3; \r\n r2.left = r4; \r\n r2.right = r5; \r\n r3.right = r6;\r\n System.out.println(getNodeNumRec(root));\r\n System.out.println(getNodeNum(root));\r\n System.out.println(getDepthRec(root));\r\n System.out.println(getDepth(root));\r\n System.out.println(\"前序遍历\");\r\n preorderTraversalRec(root);\r\n System.out.println(\"\");\r\n preorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"中序遍历\");\r\n inorderTraversalRec(root);\r\n System.out.println(\"\");\r\n inorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"后序遍历\");\r\n postorderTraversalRec(root);\r\n System.out.println(\"\");\r\n postorderTraversal(root);\r\n System.out.println(\"分层遍历\");\r\n levelTraversal(root);\r\n System.out.println(\"\");\r\n levelTraversalRec(root);\r\n\t}", "public void treeOrder ()\n {\n treeOrder (root, 0);\n }", "public TreeNode buildTree(int[] preorder, int[] inorder) {\n if(preorder == null || inorder == null) return null;\n Map<Integer, Integer> inorderMap = new HashMap<>();\n for(int i = 0; i < inorder.length; i++) {\n inorderMap.put(inorder[i], i);\n }\n return helper(0, 0, inorder.length - 1, preorder, inorderMap);\n }", "public Hashtree<V> build() {\n return new UnmodifiableMerkleTree<>(tree);\n }", "public TreeBuilder() {\n\t\troot = null;\n\t}" ]
[ "0.69706976", "0.6970071", "0.6894202", "0.68041414", "0.6642008", "0.6523374", "0.6479249", "0.6444082", "0.6410111", "0.6395873", "0.63924956", "0.6391415", "0.6325887", "0.6322541", "0.6315627", "0.6311462", "0.6307118", "0.6268413", "0.62631863", "0.6261661", "0.61905926", "0.6190018", "0.6187498", "0.6187461", "0.6182662", "0.6170482", "0.61674374", "0.6163535", "0.6128909", "0.6118363", "0.6111113", "0.6083759", "0.60772717", "0.6065258", "0.6038887", "0.6037562", "0.6030513", "0.6028198", "0.601159", "0.60056806", "0.60055465", "0.6000724", "0.60002244", "0.59950984", "0.59792536", "0.5973005", "0.59689224", "0.59682", "0.5958717", "0.5956482", "0.59397197", "0.5926436", "0.59261703", "0.59144294", "0.58990836", "0.5876407", "0.58718276", "0.58670866", "0.586169", "0.5861169", "0.5828815", "0.5824665", "0.58133453", "0.58055335", "0.5801088", "0.5795246", "0.5788689", "0.578817", "0.57845384", "0.57842076", "0.57840705", "0.57733625", "0.5770929", "0.57681495", "0.5766761", "0.57540935", "0.57480335", "0.5738974", "0.57186925", "0.57068384", "0.5705096", "0.5686281", "0.5685066", "0.5668494", "0.5667882", "0.56670505", "0.5664609", "0.5662865", "0.56612444", "0.5660881", "0.56585175", "0.56585175", "0.5654177", "0.56513953", "0.56430066", "0.56420285", "0.5635161", "0.5626956", "0.5621637", "0.5617734" ]
0.5702548
81
The recursive toString function
private String toString(Node<VirtualDataSet> node, int indentDepth) { String indent = createIndent(indentDepth); if (node == null) return null; if (indentDepth < 0) throw new IllegalArgumentException("indentDepth cannot be a negative number."); if (node.children == null) { Attribute classAttribute = node.data.getAttribute(node.data.getNumberOfAttributes() - 1); return indent + classAttribute.getName() + " = " + classAttribute.getValues()[0] + System.lineSeparator(); } int statementNo = 0; StringBuffer buffer = new StringBuffer(); for (int i = 0; i < node.children.length; i++) { buffer.append(indent + ((statementNo++ == 0) ? "if (" : "else if (") + node.children[i].data.getCondition() + ") {" + System.lineSeparator()); buffer.append(toString(node.children[i], indentDepth + 2)); buffer.append(indent + "}" + System.lineSeparator()); } return buffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "public String toString(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tTList<T> root = this.getRoot();\n\t\tif (root == this) \n\t\t\tsb.append(\"*\");\n\t\tif (root.visited())\n\t\t\tsb.append(\"-\");\n\t\tsb.append(root.getValue());\n\t\twhile (root.hasNext()) {\n\t\t\tsb.append(\" -> \");\n\t\t\troot = root.getNext();\n\t\t\tif (root == this) \n\t\t\t\tsb.append(\"*\");\n\t\t\tif (root.visited())\n\t\t\t\tsb.append(\"-\");\n\t\t\tsb.append(root.getValue());\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\n\t\tif (label == null && numChildren <= 0)\n\t\t\treturn \"()\";\n\t\tStringBuffer ret = new StringBuffer(label.toString());\n\t\tif (numChildren > 0) {\n\t\t\tret.append(\"(\"+children[0].toString());\n\t\t\tfor (int i = 1; i < numChildren; i++) {\n\t\t\t\tret.append(\" \"+children[i].toString());\n\t\t\t}\n\t\t\tret.append(\")\");\n\t\t}\n\t\t//\telse\n\t\t//\t ret.append(\":\"+label.hashCode());\n\t\treturn ret.toString();\n\t}", "public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }", "private String toStringHelper(Node<T> node, int curDepth) {\n if (node.data != null) {\n return node.data.toString();\n }\n if (node.children == null) {\n return \"_\";\n }\n\n StringBuilder outString = new StringBuilder();\n for (int i = 0; i < branchingFactor; i++) {\n if (node.get(i) == null) {\n outString.append(\"_\");\n //break;\n } else {\n if (curDepth == 0) {\n outString.append(node.get(i).toString());\n\n } else {\n outString.append(toStringHelper(node.get(i), curDepth - 1));\n }\n }\n\n if (i + 1 != branchingFactor) {\n outString.append(\", \");\n }\n }\n return \"(\" + outString + \")\";\n }", "public String toString() {\n return toString(root) + \" \";//call helper method for in-order traversal representation\n }", "public String toString()\r\n/* 112: */ {\r\n/* 113:199 */ String s = \"\";\r\n/* 114:200 */ for (N node : getNodes())\r\n/* 115: */ {\r\n/* 116:201 */ s = s + \"\\n{ \" + node + \" \";\r\n/* 117:202 */ for (N suc : getSuccessors(node)) {\r\n/* 118:203 */ s = s + \"\\n ( \" + getEdge(node, suc) + \" \" + suc + \" )\";\r\n/* 119: */ }\r\n/* 120:205 */ s = s + \"\\n} \";\r\n/* 121: */ }\r\n/* 122:207 */ return s;\r\n/* 123: */ }", "public String toString() {\n\n // **** ****\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"\\n n: \" + this.n);\n sb.append(\"\\nparents: \" + Arrays.toString(this.parents));\n\n // **** ****\n return sb.toString();\n }", "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() {\n if (subTrees.isEmpty()) return rootToString();\n StringBuilder result = new StringBuilder(rootToString() + \"(\" + subTrees.get(0).toString());\n for (int i = 1; i < subTrees.size(); i++) result.append(\",\").append(subTrees.get(i).toString());\n return result + \")\";\n }", "public String toStringEx(int depth) {\n\t\treturn toString(0, depth);\n\t}", "@Override\r\n public String toString() {\r\n Queue<List<Node>> queue = new LinkedList<List<Node>>();\r\n queue.add(Arrays.asList(root));\r\n StringBuilder sb = new StringBuilder();\r\n while (!queue.isEmpty()) {\r\n Queue<List<Node>> nextQueue = new LinkedList<List<Node>>();\r\n while (!queue.isEmpty()) {\r\n List<Node> nodes = queue.remove();\r\n sb.append('{');\r\n Iterator<Node> it = nodes.iterator();\r\n while (it.hasNext()) {\r\n Node node = it.next();\r\n sb.append(node.toString());\r\n if (it.hasNext())\r\n sb.append(\", \");\r\n if (node instanceof BPTree.InternalNode)\r\n nextQueue.add(((InternalNode) node).children);\r\n }\r\n sb.append('}');\r\n if (!queue.isEmpty())\r\n sb.append(\", \");\r\n else {\r\n sb.append('\\n');\r\n }\r\n }\r\n queue = nextQueue;\r\n }\r\n return sb.toString();\r\n }", "@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n traverseNode(sb, \"\", \"\", root, false);\n return sb.toString();\n }", "public String toString() { \r\n\t\tString Sresult = \"(\" + lChild.toString() + \" / \" + rChild.toString() + \")\";\r\n\t\treturn Sresult; \r\n\t}", "public String toString()\r\n/* 736: */ {\r\n/* 737:804 */ return toStringBuilder().toString();\r\n/* 738: */ }", "public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}", "@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }", "public String toString() {\n\t\t// Anmerkung: StringBuffer wäre die bessere Lösung.\n\t\tString text = \"\";\n\t\tListNode<E> p = head;\n\t\twhile (p != null) {\n\t\t\ttext += p.toString() + \" \";\n\t\t\tp = p.getTail();\n\t\t}\n\t\treturn \"( \" + text + \") \";\n\t}", "public String toString()\n { \t\n \t//initialize String variable to return \n \tString listString = \"\";\n \t//create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //concatenate String of all nodes in list\n while(localNode != null)\n {\n listString += localNode.toString();\n localNode = localNode.getNext();\n }\n \n //return the string to the method\n return listString;\n }", "@Override\n\tpublic String toString() {\n\t\t//Invert the Stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size(); i++) {\n\t\t\treturnString += iteratorNode.data.toString();\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}", "public String toString(Node<E> current, int i) {\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int j = 0; j < i; j++) {\n\t\t\ts.append(\"---\");\n\t\t}\n\t\tif (current == null) {\n\t\t\ts.append(\"null\");\n\t\t\treturn s.toString();\n\t\t}\n\t\ts.append(current.data.toString());\n\t\ts.append(\"\\n\");\n\t\ts.append(toString(current.left, i + 1));\n\t\ts.append(\"\\n\");\n\t\ts.append(toString(current.right, i + 1));\n\t\ts.append(\"\\n\");\n\t\treturn s.toString();\n\t}", "public String toString()\n\t{\n\t\tString output;\n\t\tif (value == null)\n\t\t\toutput = \"Null\";\n\t\telse\n\t\t\toutput = value.toString() + frequency;\n\t\tif (isLeaf())\n\t\t\treturn output;\n\t\t//don't need to check cases if only right or left is null\n\t\t//don't need to print out frequency\n\t\telse\n\t\t\treturn output + \"(\" + left.toString() + \",\" + right.toString() + \")\";\n\t}", "@Test\n public void testToString() {\n System.out.println(\"toString\");\n ArrayList<Integer> arr1 = new ArrayList<>();\n arr1.add(12);\n ArrayList<Integer> arr2 = new ArrayList<>();\n arr2.add(10);\n ArrayListRecursive instance = new ArrayListRecursive(arr1, arr2);\n String expResult = \"ArrayListRecursive{list1=[12], list2=[10]}\";\n String result = instance.toString();\n assertEquals(expResult, result);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}", "public String toString() {\n return tree.toString();\n }", "private String toString2(BinaryNode<E> t) {\n if (t == null) return \"\";\n StringBuilder sb = new StringBuilder();\n sb.append(toString2(t.left));\n sb.append(t.element.toString() + \" \");\n sb.append(toString2(t.right));\n return sb.toString();\n }", "public String toString() {\r\n\t\treturn print(this.root,0);\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}", "public @Override String toString() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object before node n\n for (Node n = sentinel.succ; n != sentinel; n= n.succ) {\n if (n != sentinel.succ)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }", "public static void main(String a[]) {\n TreeNode root = new TreeNode(1,\n new TreeNode(2,\n null,\n new TreeNode(4, null, null)),\n new TreeNode(3, null, null));\n StringBuffer sb = new StringBuffer();\n tree2str(root, sb);\n System.out.println(sb.toString());\n }", "public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}", "public String toString() ;", "public String toString()\r\n {\n \tString result = \"\";\r\n \tNode n = this.top;\r\n \twhile (n != null)\r\n \t{\r\n \t\tresult = result + \" \" + n.getItem().toString();\r\n \t\tn = n.getNext();\r\n \t}\r\n \treturn result.trim();\r\n }", "public String toString() {\r\n String result = \"\";\r\n result += \"My Genealogy contains \" + size() + \" members:\\n\";\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n // i below is used to check for exponentiation, and create newlines for readability\r\n if (((i+1) & -(i+1)) == (i+1)) {\r\n result += \"\\n\";\r\n }\r\n\r\n result += tree[i] + \" \";\r\n }\r\n\r\n return result;\r\n }", "public String toString() {\r\n StringBuilder sb = new StringBuilder(\"(\");\r\n Node<E> walk = head;\r\n while (walk != null) {\r\n sb.append(walk.getItem());\r\n if (walk != tail)\r\n sb.append(\", \");\r\n walk = walk.getNext();\r\n }\r\n sb.append(\")\");\r\n return sb.toString();\r\n }", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "@Override\n public String toString() {\n return printOptimalParens(1, n);\n }", "private String _toString(IntTreeNode root) {\r\n if (root == null) {\r\n return \"\";\r\n } else {\r\n String leftToString = _toString(root.left);\r\n String rightToString = _toString(root.right);\r\n return leftToString + rightToString + \" \" + root.data;\r\n } \r\n }", "public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }", "public String toString() {\n\t\t//|| (this.equals(new StatementParse(\"sequence\", 0)))\n\t\tif (this.equals(Parser.FAIL)) {\n\t\t\treturn \"\";\n\t\t}\n String result = \"\";\n result += \"(\";\n result += this.name;\n for (Parse child: this.children) {\n \tresult += \" \" + child.toString();\n }\n result += \")\";\n return result;\t\n }", "public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }", "public String toString(){\n String result = \"\";\n LinearNode<T> trav = front;\n while (trav != null){\n result += trav.getElement();\n trav = trav.getNext();\n }\n return result;\n }", "protected String toString(Node<T> node) {\n\t\tif (node == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn node.value.toString() + \" \" \n\t\t\t\t+ toString(node.left) + \" \"\n\t\t\t\t+ toString(node.right);\n\t}", "@Override\n public String toString(){\n String result = \"\";\n Node n = first;\n while(n != null){\n result += n.value + \" \";\n n = n.next;\n }\n return result;\n }", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "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 String result = \"\";\n ListNode current = front;\n while(current != null){\n result = result + current.toString() + \"\\n\";\n current = current.getNext();\n }\n return result;\n }", "@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tfor(int i = 0; i < top; i++) {\n\t\t\tresult = result + stack[i].toString() + \"\\n\";\t//shouldn't it start at max --> 0 since its a stack\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (TrieNode n : nodes) {\n\t\t\tstr += n.toString();\n\t\t}\n\t\treturn str;\n\t}", "public String toString() {\n if (size == 0) {\n return \"Empty tree\";\n }\n\n\n StringBuilder sb = new StringBuilder();\n Node<T> right = root.getRight();\n Node<T> left = root.getLeft();\n\n if (right != null) {\n right.buildBranch(true, \"\", sb);\n }\n\n sb.append(root.getData() + \"\\n\");\n\n if (left != null)\n left.buildBranch(false, \"\", sb);\n\n return sb.toString();\n }" ]
[ "0.78740716", "0.75162905", "0.7503305", "0.7469396", "0.74071217", "0.7300983", "0.7205829", "0.71729463", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.71487147", "0.7147991", "0.71380204", "0.7115157", "0.71066463", "0.7093267", "0.70811635", "0.7074309", "0.7066002", "0.7047791", "0.70187294", "0.701437", "0.69586074", "0.6939492", "0.6927276", "0.6908028", "0.6904249", "0.69001645", "0.6891808", "0.6870956", "0.6856821", "0.6850185", "0.6849356", "0.68289506", "0.68143606", "0.6813709", "0.68083024", "0.6793008", "0.6792397", "0.6791895", "0.67904973", "0.67902035", "0.6776041", "0.67758536", "0.6771784", "0.67474014", "0.6740358", "0.6739702", "0.673954", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.67391896", "0.673333", "0.6707777", "0.6702839", "0.67012185" ]
0.0
-1
Creates or finds a DataWarehouseUserActivityName from its string representation.
@JsonCreator public static DataWarehouseUserActivityName fromString(String name) { return fromString(name, DataWarehouseUserActivityName.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonCreator\n public static UserEngagementTracking fromString(String name) {\n return fromString(name, UserEngagementTracking.class);\n }", "public Builder setCreateUser(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createUser_ = value;\n onChanged();\n return this;\n }", "public static String createUser(String a, String b)\n\t{\n\t\tString aa = a.substring(0, 3);\n\t\t//gets the first three characters of string a\n\t\tString bb = b.substring(b.length()-3);\n\t\treturn new String(aa+bb);\n\t}", "public java.lang.String getCreateUser() {\n java.lang.Object ref = createUser_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createUser_ = s;\n return s;\n }\n }", "public java.lang.String getCreateUser() {\n java.lang.Object ref = createUser_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createUser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String activity_name () throws BaseException;", "@JsonCreator\n public static CreateMode fromString(String name) {\n return fromString(name, CreateMode.class);\n }", "public void setActivityStr(String str){\r\n this.activityStr = str; \r\n }", "@Override\n\tpublic String DBcreateUser(String userJson) {\n\t\tUser newUser = (User) jsonToUserPOJO(userJson);\n\t\tString id = userRepository.create(newUser);\n\t\treturn id;\n\t}", "public void setCreateUser(String createUser) {\r\n this.createUser = createUser == null ? null : createUser.trim();\r\n }", "public void setCreateUser(String createUser) {\r\n this.createUser = createUser == null ? null : createUser.trim();\r\n }", "public ActivityType createActivity(String id, String value) {\n\t\tActivityType activity = mappingFactory.createActivityType();\n\t\tactivity.setId(id);\n\t\tactivity.setValue(value);\n\t\treturn activity;\n\t}", "private void createActivity(Identity user) {\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(\"title \" + System.currentTimeMillis());\n activity.setUserId(user.getId());\n try {\n activityManager.saveActivityNoReturn(user, activity);\n tearDownActivityList.add(activity);\n } catch (Exception e) {\n LOG.error(\"can not save activity.\", e);\n }\n }", "public void setCreatedUserName(String createdUserName) {\n this.createdUserName = createdUserName;\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser == null ? null : createUser.trim();\n }", "public ActivityLog logUserActivity(User user, Activity activity, \n\t\t\tString value) throws PersuasionAPIException {\n\n\t\tActivityLog activityLog = null;\n\t\ttry {\n\t\t\t//Create the composite Activity Log object\n\t\t\tActivityLogId activityLogId = new ActivityLogId();\n\t\t\tactivityLogId.setUser(user);\n\t\t\tactivityLogId.setActivity(activity);\n\n\t\t\ttry {\n\t\t\t\tlog.debug(\"Searching for user an existing activity log entry for userId \" \n\t\t\t\t\t\t+ user.getUserId() + \" and activityName \" + activity.getActivityName());\n\t\t\t\tactivityLog = activityLogDAO.findById(activityLogId);\n\t\t\t\tlog.debug(\"Found existing user activity log entry. Incrementing the counter\");\n\t\t\t\tactivityLog.setCount(activityLog.getCount()+1); //Increment the counter\n\t\t\t} catch(PersuasionAPIException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch(Exception e) {\n\t\t\t\tlog.debug(\"Existing user activity log entry not found. Creating a new entry\");\n\t\t\t\tactivityLog = new ActivityLog();\n\t\t\t\tactivityLog.setId(activityLogId);\n\t\t\t\tactivityLog.setCount(1);\n\t\t\t}\n\n\t\t\tactivityLog.setValue(value);\n\t\t\t//TODO: Modify this to use DB timestamp\n\t\t\tactivityLog.setLogTime(new Date());\n\n\t\t\t//Create or update corresponding activity log entry\n\t\t\tactivityLogDAO.merge(activityLog);\n\t\t} catch(PersuasionAPIException e) {\n\t\t\tthrow e;\n\t\t} catch(Exception e) {\n\t\t\tlog.error(\"Caught exception while logging user activity.\"\n\t\t\t\t\t+ \" User ID: \" + user.getUserId()\n\t\t\t\t\t+ \" . Activity Name: \" + activity.getActivityName()\n\t\t\t\t\t+ \" Exception type: \" + e.getClass().getName()\n\t\t\t\t\t+ \" Exception message: \" + e.getMessage());\n\t\t\tlog.debug(StringHelper.stackTraceToString(e));\n\t\t\tthrow new PersuasionAPIException(InternalErrorCodes.GENERATED_EXCEPTION, \n\t\t\t\t\t\"Failed to log the user activity\", e);\n\t\t}\n\n\t\ttry {\n\t\t\t//Post the update to the JMS Queue\n\t\t\tMap<String, String> activityLogUpdate = new HashMap<String, String>();\n\t\t\tactivityLogUpdate.put(Constants.USER_ID, user.getUserId());\n\t\t\tactivityLogUpdate.put(Constants.ACTIVITY_NAME, activity.getActivityName().toString());\n\n\t\t\tString logDate = StringHelper.dateToString(activityLog.getLogTime());\n\t\t\tactivityLogUpdate.put(Constants.TIMESTAMP, logDate);\n\n\t\t\tjmsMessageSender.sendJMSMessage(jmsQueue, activityLogUpdate);\n\t\t} catch(Exception e) {\n\t\t\tlog.error(\"Caught exception while posting user activity to JMS.\"\n\t\t\t\t\t+ \" User ID: \" + user.getUserId()\n\t\t\t\t\t+ \" . Activity Name: \" + activity.getActivityName()\n\t\t\t\t\t+ \" Exception type: \" + e.getClass().getName()\n\t\t\t\t\t+ \" Exception message: \" + e.getMessage());\n\t\t\tlog.debug(StringHelper.stackTraceToString(e));\n\t\t\tthrow new PersuasionAPIException(InternalErrorCodes.GENERATED_EXCEPTION, \n\t\t\t\t\t\"Failed to post the logged user activity to JMS\", e);\n\t\t}\n\t\treturn activityLog;\n\t}", "public MetaUser createMetaUser(String sName) throws IOException;", "public void setCreateUserFlow(String createUserFlow) {\r\n\t\tthis.createUserFlow = createUserFlow;\r\n\t}", "public void setCreateUserFlow(String createUserFlow) {\r\n\t\tthis.createUserFlow = createUserFlow;\r\n\t}", "public void setCreateUserFlow(String createUserFlow) {\r\n\t\tthis.createUserFlow = createUserFlow;\r\n\t}", "public void setCreateUserFlow(String createUserFlow) {\r\n\t\tthis.createUserFlow = createUserFlow;\r\n\t}", "private UsernameReservation createUsernameReservation(final String username) {\n final String lowerCaseUsername = username.toLowerCase();\n if (usernameReservations.containsKey(lowerCaseUsername)) {\n return usernameReservations.get(lowerCaseUsername);\n } else {\n return ((SignupProvider) contentProvider)\n .createUsernameReservation(lowerCaseUsername);\n }\n }", "boolean addUserActivityToDB(UserActivity userActivity);", "public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}", "public void setCreateUser(String createUser)\r\n\t{\r\n\t\tthis.createUser = createUser;\r\n\t}", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userName_ = value;\n onChanged();\n return this;\n }", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public static String parseUuidOrDefault(String s, String defaultStr) {\n Matcher m = UUID_PATTERN.matcher(s.toLowerCase());\n if (m.matches()) {\n return m.group(1);\n }\n return defaultStr;\n }", "public void setCreateUser (String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "void create(SportActivity activity);", "@JsonCreator\n public static RestoreDetailsName fromString(String name) {\n return fromString(name, RestoreDetailsName.class);\n }", "public void setActivityName(Integer activityName) {\n this.activityName = activityName;\n }", "String createUserRequest(String username, UserRequestType type);", "public String determineTaskName(String userCommand) {\n\t\tif (userCommand == null || userCommand.equals(\"\")) {\n\t\t\tlogger.log(Level.WARNING, Global.MESSAGE_ILLEGAL_ARGUMENTS);\n\t\t\treturn null;\n\t\t}\n\n\t\tString userCommandWithoutCommandType = removeCommandType(userCommand);\n\n\t\ttry {\n\t\t\treturn getQuotedSubstring(userCommandWithoutCommandType);\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.INFO, MESSAGE_NO_TASKNAME);\n\t\t\treturn null;\n\t\t}\n\t}", "public void setCreateUsername(String createUsername) {\r\n\t\tthis.createUsername = createUsername;\r\n\t}", "public Builder setTaskNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n taskName_ = value;\n onChanged();\n return this;\n }", "protected ExoSocialActivity makeActivity(Identity owner, String activityTitle) {\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(activityTitle);\n activity.setUserId(owner.getId());\n activityManager.saveActivityNoReturn(rootIdentity, activity);\n tearDownActivityList.add(activity);\n \n return activity;\n }", "private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }", "OfBizUser getCaseInsensitive(long directoryId, String userName);", "UserActivity findUserActivityByActivityId(int activityId) throws DataNotFoundException;", "@Override\n public String generateLayoutName(String objectName){\n Scanner in = new Scanner(objectName);\n String out = \"\";\n String x = in.next();\n int z = x.length();\n for(int y = 0; y < z; y++){\n if(Character.isUpperCase(x.charAt(y))){\n out = out+\"_\"+(Character.toLowerCase(x.charAt(y)));\n\n }else{\n out = out+x.charAt(y);\n }\n }\n return \"activity\"+out;\n }", "private void loadUserName() {\n\t\tAsyncTaskHelper.create(new AsyncMethods<String>() {\n\n\t\t\t@Override\n\t\t\tpublic String doInBackground() {\n\t\t\t\tUser user = new User();\n\t\t\t\tuser.setId(savedGoal.getGoal().getUserId());\n\t\t\t\treturn ClientUserManagement.getUsernameByUserId(user);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDone(String value, long ms) {\n\t\t\t\tmGoalOwner.setText(value);\n\t\t\t}\n\t\t});\n\n\t}", "@JsonCreator\n public static TestMigrationState fromString(String name) {\n return fromString(name, TestMigrationState.class);\n }", "public static UserRole fromString(String str) {\n\t\tfor (UserRole role : values()) {\n\t\t\tif (role.name.equalsIgnoreCase(str)) {\n\t\t\t\treturn role;\n\t\t\t}\n\t\t}\n\t\treturn null; // not found\n\t}", "public void setCreateUser(String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateUser(String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "@Override\n\tpublic Object stringsToClass(String[] data) {\n\t\tActivity novaAtividade = new Activity();\n\t\tnovaAtividade.setId(data[0]);\n\t\t\n\t\tDateTimeFormatter formatter = new DateTimeFormatterBuilder().appendPattern(\"yyyy\")\n .parseDefaulting(ChronoField.MONTH_OF_YEAR, 1)\n .parseDefaulting(ChronoField.DAY_OF_MONTH, 1)\n .toFormatter();\n\t\tLocalDateTime dateTime = null;\n\t\ttry {\n\t\t\tdateTime = LocalDateTime.parse(data[1], formatter);\n } catch (DateTimeParseException e) {\n \treturn null;\n }\n\t\t\n\t\t\n\t\tnovaAtividade.setDate(dateTime);\n\t\tnovaAtividade.setUserIdentifier(data[2]);\n\t\tnovaAtividade.setPc(data[3]);\n\t\t\n\t\t//novaAtividade.set\n\t\tif(activityType == Activity.type.HTTP)\n\t\t{\n\t\t\tnovaAtividade.setUrl(data[4]);\n\t\t}else {\n\t\t\tif(data[4].equals(\"Connect\"))\n\t\t\t{\n\t\t\t\tnovaAtividade.setActive(true);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tif(data[4].equals(\"Disconnect\")){\n\t\t\t\t\tnovaAtividade.setActive(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn novaAtividade;\n\t}", "public static String createUsername() {\r\n\t\tboolean complete = false;\r\n\t\tString username = \"\";\r\n\t\t\r\n\t\twhile(complete == false) {\r\n\t\t\tSystem.out.println(\"Please type a username (no spaces):\");\r\n\t\t\tusername = scan.nextLine();\r\n\t\t\t//us.checkExit(username);\r\n\t\t\t\r\n\t\t\tif(us.checkUniqueUsername(username) == false) {\r\n\t\t\t\tSystem.out.println(\"Username is taken, try again, partner.\");\r\n\t\t\t\tcontinue;\r\n\t\t\t} else if(username.contains(\" \")) {\r\n\t\t\t\tSystem.out.println(\"Invalid username - contains space(s)\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tcomplete = true;\r\n\t\t}//While1\r\n\t\t\r\n\t\treturn username;\r\n\t}", "<U extends T> U create(String name, Class<U> type) throws InvalidUserDataException;", "public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }", "private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }", "private void setNewNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n newName_ = value.toStringUtf8();\n }", "public void setCreatedByUser(String createdByUser);", "public static void createUsername(Login newEmp) throws FileNotFoundException, IOException {\n\t\tString employeeUsername = \"\";\n\t\tdo {\n\t\t\temployeeUsername = JOptionPane.showInputDialog(\"Please enter a username.\");\n\t\t\tif (!newEmp.setUsername(employeeUsername)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Wrong employee name, please try again\");\n\t\t\t}\n\t\t} while (!newEmp.setUsername(employeeUsername));\n\t\t/*\n\t\t Text file is stored in a source folder.\n\t\t */\n\t\tFileOutputStream fstream = new FileOutputStream(\"./src/Phase5/username.txt\", true);\n\t\tDataOutputStream outputFile = new DataOutputStream(fstream);\n\t\toutputFile.writeUTF(employeeUsername + \", \");\n\t\toutputFile.close();\n\t}", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "private String createDisplayName(User user, String listName) {\n assert ((user != null) && (user.getUsername() != null));\n String name = StringUtils.isNotBlank(user.getName()) ? user.getName() : user.getUsername();\n if (StringUtils.isNotBlank(user.getEmail()) && NAME_AND_EMAIL.equals(listName)) {\n name = name + \" <\" + user.getEmail() + \">\";\n } else if (NAME_AND_USERNAME.equals(listName)) {\n name = name + \" (\" + user.getUsername() + \")\";\n }\n assert (name != null);\n return name;\n }", "public static CreateUser parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n CreateUser object = new CreateUser();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n if (reader.getAttributeValue(\n \"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0,\n fullTypeName.indexOf(\":\"));\n }\n\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\n \":\") + 1);\n\n if (!\"CreateUser\".equals(type)) {\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext()\n .getNamespaceURI(nsPrefix);\n\n return (CreateUser) ExtensionMapper.getTypeObject(nsUri,\n type, reader);\n }\n }\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n reader.next();\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"value\").equals(\n reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setValue(null);\n reader.next();\n\n reader.next();\n } else {\n object.setValue(LoginMessageRequest.Factory.parse(\n reader));\n\n reader.next();\n }\n } // End of if for expected property start element\n\n else {\n }\n\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n if (reader.isStartElement()) {\n // 2 - A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" + reader.getName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public IPermissionActivity getPermissionActivity(String ownerFname, String activityFname);", "protected Identifier toIdentifier(String stringForm, MetadataBuildingContext buildingContext) {\n\t\treturn buildingContext.getMetadataCollector()\n\t\t\t\t.getDatabase()\n\t\t\t\t.getJdbcEnvironment()\n\t\t\t\t.getIdentifierHelper()\n\t\t\t\t.toIdentifier( addUnderscores(stringForm) );\n\t}", "public void setCreatedByName(java.lang.String createdByName) {\n this.createdByName = createdByName;\n }", "@Test\n\tpublic void testCreateAdminAccountWithSpacesInUsername() {\n\t\tString username = \"This is a bad username\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Username cannot contain spaces.\", error);\n\t}", "public void onClickcreateUserSignup(View view){\n\n String newName = ((EditText)findViewById(R.id.createUserUsername)).getText().toString();\n if(!newName.equals(\"\")) {\n Account.getInstance().setName(newName);\n\n SharedPreferences settings = getSharedPreferences(Utils.ACCOUNT_PREFS, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"accountName\", newName);\n editor.commit();\n\n startActivity(new Intent(this, MainActivity.class));\n }\n }", "@Test\n\tpublic void testCreate(){\n\t\t\n\t\tString jsonStr = \"{'companyName':'Lejia', 'companyNameLocal':'Lejia', 'companyAddress':'Guangdong', 'txtEmail':'[email protected]', 'telephone':'17721217320', 'contactPerson':'Molly'}\";\n\t\tcreateUser.createUserMain(jsonStr);\n\t\t\n\t}", "public FirstName(String entryString){\n super(entryString);\n }", "public Builder setToUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n toUid_ = value;\n \n return this;\n }", "String parseUID(long uid);", "public IPermissionActivity getPermissionActivity(long ownerId, String activityFname);", "public boolean registerToActivity(int id, String username)\n\t\t\tthrows InvalidParameterException, DatabaseUnkownFailureException;", "public void setName ( String name ) throws InvalidUserIDException {\r\n if(name == \"\") throw new InvalidUserIDException();\r\n _name= name;\r\n }", "void selectActivityName(int activity_number, Model model);", "private String removeTaskName(String userCommand) {\n\t\ttry {\n\t\t\treturn removeQuotedSubstring(userCommand);\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.INFO, MESSAGE_NO_TASKNAME);\n\t\t\treturn userCommand;\n\t\t}\n\t}", "public Builder setUserID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public void onGetName(String user,String name);", "public final void setActivityName(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String activityname)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.ActivityName.toString(), activityname);\n\t}", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "public void makeName(String str) {\n this.name = str + iL++;\n }", "public Builder setUserNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n userName_ = value;\n onChanged();\n return this;\n }", "public Builder setUserNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n userName_ = value;\n onChanged();\n return this;\n }", "public Builder setUserNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n userName_ = value;\n onChanged();\n return this;\n }", "public void setCreatePerson(String createPerson) {\n this.createPerson = createPerson;\n }", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "protected InstructionTransferObject createInstructionDto(AdminComponentTransferObject compdto, String instructionString) {\r\n\t\t\t\r\n\t\tInstructionTransferObject instruction = null;\r\n\t\tif (instructionString != null && instructionString.length() > 0) {\r\n\t\t\tinstruction = new InstructionTransferObject();\r\n\t\t\tinstruction.setLongName(compdto.getLongName());\r\n\t\t\tinstruction.setPreferredDefinition(instructionString);\r\n\t\t\tinstruction.setContext(compdto.getContext());\r\n\t\t\tinstruction.setAslName(\"DRAFT NEW\");\r\n\t\t\tinstruction.setVersion(new Float(1.0));\r\n\t\t\tinstruction.setCreatedBy(compdto.getCreatedBy());\r\n\t\t\tinstruction.setDisplayOrder(1);\r\n\t\t}\r\n\t\t\r\n\t\treturn instruction;\r\n\t}", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public Name createFullQualifiedTypeAsName(AST ast,\r\n\t\t\tString fullQualifiedUmlTypeName, String sourceDirectoryPackageName) {\r\n\t\tString typeName = packageHelper.getFullPackageName(\r\n\t\t\t\tfullQualifiedUmlTypeName, sourceDirectoryPackageName);\r\n\t\tName name = ast.newName(typeName);\r\n\r\n\t\treturn name;\r\n\t}", "void setName( String username, String name ) throws UserNotFoundException;", "public Builder setUserName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }" ]
[ "0.50973463", "0.48828927", "0.4799113", "0.47871295", "0.46914876", "0.4582765", "0.45472717", "0.45286638", "0.45133027", "0.4486379", "0.4486379", "0.4463761", "0.4459727", "0.44401577", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44149777", "0.44048774", "0.4375098", "0.4375098", "0.4375098", "0.4375098", "0.43692377", "0.4352977", "0.43397996", "0.43394995", "0.433459", "0.43250272", "0.43229944", "0.4311912", "0.43035918", "0.43035918", "0.4292146", "0.42898285", "0.42896494", "0.4283318", "0.4252997", "0.4250044", "0.4243617", "0.4240788", "0.42386708", "0.4237539", "0.42297933", "0.4227693", "0.4219581", "0.42122468", "0.421012", "0.42080367", "0.42080367", "0.42059255", "0.42051703", "0.42049134", "0.42020434", "0.4187707", "0.416624", "0.41537917", "0.4150705", "0.4147256", "0.4147256", "0.41454342", "0.41447195", "0.41438434", "0.41410446", "0.41403982", "0.4135033", "0.41329482", "0.4131385", "0.4101256", "0.4100574", "0.4100242", "0.40914923", "0.40913403", "0.40850243", "0.40839252", "0.408342", "0.40806442", "0.40776297", "0.40774295", "0.4075575", "0.4069484", "0.4066824", "0.4066824", "0.4066824", "0.40643427", "0.40641728", "0.40565467", "0.40554094", "0.40554094", "0.40554094", "0.4054195", "0.40522268", "0.4051882" ]
0.71652585
0
Gets known DataWarehouseUserActivityName values.
public static Collection<DataWarehouseUserActivityName> values() { return values(DataWarehouseUserActivityName.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getActivityName() {\n return activityName;\n }", "public String getUserNames() {\n return sp.getString(USER_NAMES, null);\n }", "String activity_name () throws BaseException;", "@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.getUser(_dataset.getUserId()).getScreenName();\n\t\t} catch (PortalException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SystemException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\treturn \"ERROR\";\n\t\t}\n\t}", "public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}", "private String getPlayerName() {\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.get(USER_NAME).toString();\n return name;\n }", "java.lang.String getXUsersInfo();", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public String getHotActivityName() {\r\n return hotActivityName;\r\n }", "@Override\n\tpublic String getNames() {\n\t\treturn \"getUserTaskCount\";\n\t}", "public String getName() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getString(USERNAME_KEY, null);\n\t}", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "@Override\n\tpublic String getActivityName() {\n\t\treturn ActivityName;\n\t}", "public ObservableValue<String> call(CellDataFeatures<User, String> u) {\n\n\t\t\t\t\treturn u.getValue().getFirstName();\n\t\t\t\t}", "public String getUserName() {\n return (String) getAttributeInternal(USERNAME);\n }", "public String[] getStepActors() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] actors = new String[steps.length];\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n try {\r\n actors[i] = steps[i].getUser().getFullName();\r\n } catch (WorkflowException we) {\r\n actors[i] = \"##\";\r\n }\r\n }\r\n \r\n return actors;\r\n }", "public ArrayList<String> getUserLog(String username) {\n \t\treturn this.getUserByName(username).getActivities();\n \t}", "private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }", "public String getUser_name() {\n return user_name;\n }", "public static String[] getlistofUser() {\n\t\tString[] names = new String[workers.size()];\n\t\tfor (int i = 0; i < names.length; i++)\n\t\t\tnames[i] = workers.get(i).getUser();\n\t\treturn names;\n\t}", "private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }", "public String getEventUserName() {\r\n\t\treturn eventUserName;\r\n\t}", "public String[] getUsers(){\n try {\n names = credentials.keys();\n }catch (java.util.prefs.BackingStoreException e1){\n System.out.println(e1);\n }\n return names;\n }", "public String getUserName() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"USERNAME\", null);\n\t}", "String getCurrentUserDisplayName() throws Exception;", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "@Override\n public List<String> getUserColumnLabels() {\n // per-user and global have the same fields, they just differ in aggregation.\n return columns;\n }", "public String getUserName() {\n\t\treturn phoneText.getText().toString();\n\t}", "public String getUserLoginName() {\n return userLoginName;\n }", "protected String getName(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"TYPE\", sharedPref.getString(\"accountType\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_NAME, null);\n }", "@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }", "public ObservableValue<String> call(CellDataFeatures<User, String> u) {\n\n\t\t\t\t\treturn u.getValue().getLastName();\n\t\t\t\t}", "public ObservableValue<String> call(CellDataFeatures<User, String> u) {\n\n\t\t\t\t\treturn u.getValue().getUsername();\n\t\t\t\t}", "public String getName() {\n return (String) getObject(\"username\");\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@AutoEscape\n\tpublic String getUser_name();", "public static String onGetLocalUserName(Context context){\n return PreferencesUtils.getString(context, Config.KEY_OF_USER_NAME, \"\");\n }", "String getUserName();", "String getUserName();", "private String getActivityName(Transition transition) {\n\t\tString result = \"\";\n\t\t// get associated log event type\n\t\tLogEvent le = transition.getLogEvent();\n\n\t\t// check for invisible tasks\n\t\tif (le != null) {\n\t\t\tresult = le.getModelElementName();\n\t\t} else {\n\t\t\tresult = transition.getIdentifier();\n\t\t}\n\t\treturn result;\n\t}", "public String getActivityName() {\n return getNameFromType(this.getType());\n }", "@Override\n public String getUserName() {\n return name;\n }", "public String getAuditUserName() {\n return auditUserName;\n }", "public static String getUser() {\n return annotation != null ? annotation.user() : \"Unknown\";\n }", "private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}", "private String getUsername(AuthenticationContext context) {\n String username = null;\n for (Integer stepMap : context.getSequenceConfig().getStepMap().keySet())\n if (context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser() != null\n && context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedAutenticator()\n .getApplicationAuthenticator() instanceof LocalApplicationAuthenticator) {\n username = String.valueOf(context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser());\n break;\n }\n return username;\n }", "public String getEventUserFlow() {\r\n\t\treturn eventUserFlow;\r\n\t}", "private void loadUserName() {\n\t\tAsyncTaskHelper.create(new AsyncMethods<String>() {\n\n\t\t\t@Override\n\t\t\tpublic String doInBackground() {\n\t\t\t\tUser user = new User();\n\t\t\t\tuser.setId(savedGoal.getGoal().getUserId());\n\t\t\t\treturn ClientUserManagement.getUsernameByUserId(user);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDone(String value, long ms) {\n\t\t\t\tmGoalOwner.setText(value);\n\t\t\t}\n\t\t});\n\n\t}", "public String showUser(){\n String dataUser = \"\";\n for(int i = 0; i<MAX_USER; i++){\n if(user[i] != null){\n dataUser += user[i].showDataUser();\n }\n }\n return dataUser;\n }", "@DISPID(8)\r\n\t// = 0x8. The runtime will prefer the VTID if present\r\n\t@VTID(14)\r\n\tjava.lang.String username();", "public String getDataFlowName() {\n return dataFlowName;\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn _changesetEntry.getUserName();\n\t}", "public static String[] names() {\n return ListableValuesHelper.names(LogicalFragmentBenchmarked.values());\n }", "private String getUserName() {\n EditText nameEditText = (EditText) findViewById(R.id.name_edit_text);\n return nameEditText.getText().toString().trim();\n }", "public String showNameUser(){\n String nameUsertoSong = \"\";\n for(int i = 0; i<MAX_USER; i++){\n if(user[i] != null){\n nameUsertoSong += \"[\"+(i+1)+\"]\"+user[i].getUserName()+\"\\n\";\n }\n }\n return nameUsertoSong;\n }", "public String getFriendlyUsername(Context ctx) {\n User user = DBHandler.getInstance(ctx).getUser(getPartnerId());\n String name = getState().toString();\n if (user == null || getState() != State.Open) {\n if (getState() != State.Open) {\n if(getState() == State.Close) {\n name = name + \" - \" + AndroidUtils.getFormattedTime(getTime());\n } else {\n name = ctx.getString(R.string.todays_match);\n }\n }\n } else {\n name = user.getFullName();\n }\n return name;\n }", "public String getUsernameFieldName() {\n return getStringProperty(USERNAME_FIELD_NAME_KEY);\n }", "public String[] getUserField()\n {\n return this.userField;\n }", "public String[] getUserField()\n {\n return this.userField;\n }", "public String[] getUserField()\n {\n return this.userField;\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _esfTournament.getUserName();\n\t}", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "com.google.protobuf.ByteString\n getUserNameBytes();", "com.google.protobuf.ByteString\n getUserNameBytes();", "com.google.protobuf.ByteString\n getUserNameBytes();", "com.google.protobuf.ByteString\n getUserNameBytes();", "static String getUserName() {\n return System.getProperty(\"user.name\");\n }", "public String getName() {\n return user.getName();\n }", "public String getUserName() {\n return sessionData.getUserName();\n }", "Integer getNumberOfUserActivity() {\n return daoInterface.getNumberOfUserActivity();\n }", "public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}", "public String[] getStepActivities() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] activities = new String[steps.length];\r\n State resolvedState = null;\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n if (steps[i].getResolvedState() != null) {\r\n resolvedState = processModel.getState(steps[i].getResolvedState());\r\n activities[i] = resolvedState.getLabel(currentRole, getLanguage());\r\n } else\r\n activities[i] = \"\";\r\n }\r\n \r\n return activities;\r\n }", "public final String[] getNameFields() {\n switch (type) {\n case command:\n if (containsKey(COMMAND_NAME)) {\n return new String[]{COMMAND_NAME};\n }\n break;\n case contact:\n if (containsKey(CONTACT_NAME)) {\n return new String[]{CONTACT_NAME};\n }\n break;\n case contactgroup:\n if (containsKey(CONTACTGROUP_NAME)) {\n return new String[]{CONTACTGROUP_NAME};\n }\n break;\n case host:\n if (containsKey(HOST_NAME)) {\n return new String[]{HOST_NAME};\n }\n break;\n case hostextinfo:\n if (containsKey(HOST_NAME)) {\n return new String[]{HOST_NAME};\n } else if (containsKey(HOSTGROUP_NAME)) {\n return new String[]{HOSTGROUP_NAME};\n }\n break;\n case hostgroup:\n if (containsKey(HOSTGROUP_NAME)) {\n return new String[]{HOSTGROUP_NAME};\n }\n break;\n case service:\n if (containsKey(HOST_NAME) && containsKey(SERVICE_DESCRIPTION)) {\n return new String[]{HOST_NAME, SERVICE_DESCRIPTION};\n } else if (containsKey(HOSTGROUP_NAME)) {\n if (containsKey(SERVICE_DESCRIPTION)) {\n return new String[]{HOSTGROUP_NAME, SERVICE_DESCRIPTION};\n }\n return new String[]{HOSTGROUP_NAME};\n }\n break;\n case servicegroup:\n if (containsKey(SERVICEGROUP_NAME)) {\n return new String[]{SERVICEGROUP_NAME};\n }\n break;\n case timeperiod:\n if (containsKey(TIMEPERIOD_NAME)) {\n return new String[]{TIMEPERIOD_NAME};\n }\n break;\n }\n if (is(REGISTER, \"0\") && containsKey(NAME)) {\n return new String[]{NAME};\n } else {\n String uuid = UUID.randomUUID().toString();\n owner.em.err(\"Cannot find name for \" + this + \"; forcing name to: \" + uuid);\n put(REGISTER, \"0\");\n put(NAME, uuid);\n return new String[]{NAME};\n }\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}", "public String getuserName() {\r\n return (String)getNamedWhereClauseParam(\"userName\");\r\n }", "public String getACTIVITY_ID() {\n return ACTIVITY_ID;\n }", "public String getGoogleUserFirstName(){\n return (String) attributes.get(GOOGLE_USER_FIRST_NAME);\n }", "public final String getDataName() {\n if (dataName == null) {\n return this.getClass().getName();\n }\n return dataName;\n }", "io.dstore.values.StringValue getCampaignName();", "public List<String> getActiveSetNames()\n {\n List<String> names = New.list(myActiveSetConfig.getSetNames());\n names.remove(USER_ACTIVATED_SET_NAME);\n return names;\n }", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "@Override\r\n\tpublic String getUserName() {\n\t\treturn null;\r\n\t}", "public String[] getConditionAccessTimestampNames();", "public String getUserNameExample()\n {\n return null;\n }", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }", "public String getName() {\n return getActivityInfo().name;\n }", "public List<String> getAllUserNames()\n\t{\n\t\treturn userDao.findUserNames();\n\t}", "public static String getCurrentUsername() {\n WorkflowUserManager workflowUserManager = (WorkflowUserManager) appContext.getBean(\"workflowUserManager\");\n String username = workflowUserManager.getCurrentUsername();\n return username;\n }", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public final String mo69547a() {\n return \"user\";\n }", "public Object[] getColumnNames(){\r\n if (ufeRunner == null || renders == null || htmlObjLang == null) {\r\n return null;\r\n }\r\n String[] columnNames = {\"Name\", \"Value\"};\r\n return columnNames;\r\n }", "public Object userName() {\n return this.userName;\n }", "public String getUserName();", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\r\n @VTID(21)\r\n java.lang.String[] getNamesU();", "public Map<String, String> getCampaignIdsAndNamesForUser(String username)\n\t\tthrows DataAccessException;" ]
[ "0.58526194", "0.5574383", "0.55444586", "0.5480423", "0.5412232", "0.54108584", "0.5361124", "0.53587973", "0.5298389", "0.52578175", "0.5254545", "0.51867026", "0.51641494", "0.51398057", "0.51357985", "0.5132434", "0.5121714", "0.5097639", "0.5087824", "0.5063023", "0.5061643", "0.50571597", "0.50531965", "0.5037043", "0.5027608", "0.5011152", "0.5011152", "0.5011152", "0.49912557", "0.49892148", "0.49863973", "0.4972383", "0.49692705", "0.49567208", "0.49334797", "0.49212223", "0.49120817", "0.49120817", "0.4909465", "0.49053633", "0.4902199", "0.4902199", "0.48951778", "0.48891336", "0.48826274", "0.48798025", "0.48749667", "0.4857693", "0.48545796", "0.485435", "0.48455006", "0.48451698", "0.4837314", "0.4834202", "0.48313895", "0.48303097", "0.48216394", "0.48212203", "0.4817482", "0.48174667", "0.48163477", "0.48163477", "0.48163477", "0.48112184", "0.48095343", "0.48063964", "0.48063964", "0.48063964", "0.48063964", "0.48014852", "0.47943014", "0.47813264", "0.4777444", "0.4773469", "0.47710058", "0.47701958", "0.4743435", "0.4740026", "0.47317997", "0.47301587", "0.47118124", "0.47117385", "0.47060737", "0.47022805", "0.47022805", "0.47015324", "0.4696011", "0.4695792", "0.4693664", "0.46885365", "0.46883982", "0.4686722", "0.46848074", "0.46798792", "0.46793", "0.467117", "0.46710896", "0.46710527", "0.467035", "0.46685642" ]
0.7696737
0
since pareha rag size tanan
public void drawChart() { ArrayList<Entry> confuse = new ArrayList<>(); ArrayList<Entry> attention = new ArrayList<>(); ArrayList<Entry> engagement = new ArrayList<>(); ArrayList<Entry> joy = new ArrayList<>(); ArrayList<Entry> valence = new ArrayList<>(); // point = "Brow Furrow: \n"; String dum = null, dum2 = null; for (int i = 0; i < size; i++) { //point += ("" + Emotion.getBrowFurrow(i).getL() + " seconds reading of " + Emotion.getBrowFurrow(i).getR() + "\n"); dum2 = Emotion.getBrowFurrow(i).getL().toString(); dum = Emotion.getBrowFurrow(i).getR().toString(); confuse.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getAttention(i).getL().toString(); dum = Emotion.getAttention(i).getR().toString(); attention.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getEngagement(i).getL().toString(); dum = Emotion.getEngagement(i).getR().toString(); engagement.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getJoy(i).getL().toString(); dum = Emotion.getJoy(i).getR().toString(); joy.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getValence(i).getL().toString(); dum = Emotion.getValence(i).getR().toString(); valence.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); } LineDataSet data1 = new LineDataSet(confuse,"Confuse"); LineDataSet data2 = new LineDataSet(attention,"Attention"); LineDataSet data3 = new LineDataSet(engagement,"Engagement"); LineDataSet data4 = new LineDataSet(joy,"Engagement"); LineDataSet data5 = new LineDataSet(valence,"Valence"); data1.setColor(Color.BLUE); data1.setDrawCircles(false); data2.setColor(Color.YELLOW); data2.setDrawCircles(false); data3.setColor(Color.GRAY); data3.setDrawCircles(false); data4.setColor(Color.MAGENTA); data4.setDrawCircles(false); data5.setColor(Color.GREEN); data5.setDrawCircles(false); dataSets.add(data1); dataSets.add(data2); dataSets.add(data3); dataSets.add(data4); dataSets.add(data5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getPlaneSize();", "public int getLargeur() {\n return getWidth();\n }", "int getTribeSize();", "double getSize();", "public double getWidth() {\n return this.size * 2.0; \n }", "public int getWidth()\n {\n return larghezza;\n }", "public float getSizeX(){return sx;}", "int getAreaSize();", "public int getHeight()\n {\n return altezza;\n }", "public int grHeight() { return height; }", "public float getPointSize()\n {\n return myPointSize;\n }", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "public int getHauteur() {\n return getHeight();\n }", "public void leerPlanesDietas();", "public abstract float getSquareSize();", "public double adjustSize(double sizePoint){\n return sizePoint*facteurSize;\n }", "protected abstract void narisi(Graphics2D g, double wPlatno, double hPlatno);", "int height();", "@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }", "public abstract int getXSize();", "int getHeight() {return height;}", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public int height();", "public int height();", "public int height();", "public int height();", "int getCurrentSize();", "private void setFacteurSize() {\n if(dimensionsCuisine.getX()>dimensionsCuisine.getY()){\n facteurSize = 640/dimensionsCuisine.getX();\n } else {\n facteurSize = 460/dimensionsCuisine.getY();\n }\n }", "public double getSize() \n {\n return size;\n }", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(320, 204);\r\n\t}", "public int getH() { return height; }", "public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }", "public long estimateSize() {\n/* 1558 */ return this.est;\n/* */ }", "public double getPerimiter(){return (2*height +2*width);}", "godot.wire.Wire.Vector3 getSize();", "public long estimateSize() {\n/* 1668 */ return this.est;\n/* */ }", "private void calcContentSize() {\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "public int getWidthvetana() \r\n\t{\r\n\t\treturn widthvetana;\r\n\t}", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(706, 307);\r\n\t}", "godot.wire.Wire.Vector2 getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public long estimateSize() {\n/* 1338 */ return this.est;\n/* */ }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void balayer()\r\n {\r\n int tot=0;\r\n for (int i=0;i<LONGUEUR;i++ )\r\n {\r\n for (int j=0; j<LARGEUR; j++ )\r\n {\r\n tot=0;\r\n Haut = lignesHor[i][j];\r\n Droite = lignesVert[i+1][j];\r\n Bas = lignesHor[i][j+1];\r\n Gauche = lignesVert[i][j];\r\n\r\n if (Haut)\r\n {\r\n tot++;\r\n Vision[i][j][1]=1;\r\n }\r\n\r\n if (Droite)\r\n {\r\n tot++;\r\n Vision[i][j][2]=1;\r\n }\r\n\r\n if (Bas)\r\n {\r\n tot++;\r\n Vision[i][j][3]=1;\r\n }\r\n\r\n\r\n if (Gauche)\r\n {\r\n tot++;\r\n Vision[i][j][4]=1;\r\n }\r\n\r\n Vision[i][j][0]=Vision[i][j][1]+Vision[i][j][2]+Vision[i][j][3]+Vision[i][j][4];\r\n }\r\n }\r\n }", "@Override\n protected Point getInitialSize() {\n return new Point(930, 614);\n }", "public float getSize()\n {\n return size;\n }", "int getSize()\n {\n\t return size;\n }", "int getTileSize();", "public abstract int getYSize();", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "void mo33732Px();", "private int calcSize(int size)\n {\n return (((size - 1) / 9) + 1) * 9;\n }", "protected Point getInitialSize() {\n\t\t return new Point(700, 500);\n\t }", "@Override\n protected Point getInitialSize() {\n return new Point(450, 504);\n }", "public Point getSize();", "public int Size(){\n \treturn size;\n\t}", "public float sizeMultiplier();", "public static float alturaDaCena() {\n\t\treturn tamanho().height;\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(645, 393);\n\t}", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "Length getHeight();", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "long getWidth();", "@Override\n\tpublic int getMinSizeZ()\n\t{\n\t\treturn 50;\n\t}", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "@Override\n\tpublic void resize(int w, int h) {\n\t\tthis.leveys = w;\n\t\tthis.korkeus = h;\n\t\tthis.batch = new SpriteBatch();\n\t\tthis.ylaPalkinKorkeus = (int) (0.0931 * leveys);\n\n//\t\tskaala = Math.min((float) (w - 50) / 640,\n//\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tskaala = Math.min((float) (w - 50) / 590,\n\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 354f);\n\n\t\t//System.out.println(\"(w - 50) / 640 = \" + w + \" - 50) / 640 = \" + (float) (w - 50) / 640);\n\t\t//System.out.println(\"(h - 50 - ylaPalkinKorkeus) / 370f) = \" + h + \"- 50 - \" + ylaPalkinKorkeus + \") / 370f = \" + (float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tSystem.out.println(\"Fontin skaala: \" + skaala);\n\t\tfont2.setScale(skaala);\n\t\t//font2.setScale(skaala*0.2f);\n\t\t// leveysSkaala = w / 640;\n\t\t// korkeusSkaala = h / 480;\n\n\t}", "int getSize ();", "public float getSizeY(){return sy;}", "long getSize();", "long getThumbSizeX();", "public abstract long getSize();", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(590, 459);\n\t}", "public double drawLength() { return drawLength; }", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 270);\n\t}", "public abstract double getBaseHeight();", "public void settings() { size(1200, 800); }", "@Override\n public int calculerSurface() {\n return (int)(Math.PI * carre(rayon));\n }", "public int length(){\n return pilha.size();\n }", "long getThumbSizeY();", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public int asignacionMemoriaFlotanteDim(float value, int size){\n int i = 0;\n while(i<size){\n memoriaFlotante[flotanteActual] = value;\n flotanteActual++;\n i++;\n }\n return inicioMem + tamMem + flotanteActual - size;\n }", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(450, 300);\r\n\t}", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }" ]
[ "0.64567083", "0.64132077", "0.63958156", "0.6322813", "0.62208956", "0.60539407", "0.6005934", "0.59754527", "0.5951764", "0.59431404", "0.59298503", "0.59256214", "0.5925209", "0.590721", "0.5905925", "0.5883403", "0.5876994", "0.5857384", "0.5844973", "0.58435214", "0.5831227", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.5831075", "0.58273304", "0.58273304", "0.58273304", "0.58273304", "0.58187723", "0.58179957", "0.58036035", "0.5800459", "0.5799042", "0.5797445", "0.5794781", "0.57829696", "0.57758325", "0.5773163", "0.5757483", "0.57571554", "0.5744562", "0.57428825", "0.57410395", "0.57397807", "0.57393783", "0.57393783", "0.57393783", "0.57393783", "0.57368714", "0.5729823", "0.57198805", "0.5718992", "0.5715979", "0.5712983", "0.5712048", "0.5711561", "0.5710651", "0.5706906", "0.5703197", "0.5698578", "0.5698481", "0.56949747", "0.56827146", "0.5674199", "0.56713706", "0.56707096", "0.5669816", "0.5668325", "0.5665139", "0.56651336", "0.5661618", "0.5658992", "0.5657794", "0.56571627", "0.5656717", "0.5655104", "0.5648296", "0.5647454", "0.564471", "0.5641694", "0.5637438", "0.5632273", "0.5625687", "0.5619233", "0.56179047", "0.561577", "0.56152266", "0.5614314", "0.5606588", "0.5602954", "0.5602644" ]
0.0
-1
literally just display menu here doing storage just to show off toString with our piano object
public static void main(String[] args) { Integer in = new Integer(4000); System.out.println(in.SIZE); Storage storage = new Storage(); storage.makePianos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(menuTitle);\n\t\tfor(int i=1; i<menuArr.length; i++)\n\t\t{\n\t\t\tSystem.out.printf(\"%d.%s \", i, menuArr[i]);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"¼±Åà : \");\n\t\tint num = scan.nextInt();\n\t\tdata.number = num;\n\t\t\n\t}", "public static String showMenu() {\n System.out.println(\"-------------------\");\n System.out.println(\"(1) - ADD A CARD\");\n System.out.println(\"(2) - REMOVE A CARD\");\n System.out.println(\"(3) - UPDATE A CARD\");\n System.out.println(\"(4) - SHOW THE COLLECTION\");\n System.out.println(\"(5) - SEARCH\");\n System.out.println(\"-------------------\");\n System.out.println(\"(C) - CHANGING PLAYER\");\n System.out.println(\"(A) - ADD TO DECK \");\n System.out.println(\"(X) - SHOW DECK\");\n System.out.println(\"-------------------\");\n\n return keyboardChoice.nextLine();\n }", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "private void displayPlayerMenu () {\n System.out.println();\n System.out.println(\"Player Selection Menu:\");\n System.out.println(\n \"Timid player...........\" + TIMID);\n System.out.println(\n \"Greedy player..........\" + GREEDY);\n System.out.println(\n \"Clever player..........\" + CLEVER);\n System.out.println(\n \"Interactive player.....\" + INTERACTIVE);\n }", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public void readTheMenu();", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"AVAILABLE ORDERS\");\n\t\tSystem.out.println(\"================\");\n\t\tSystem.out\n\t\t\t\t.println(\"HELP - shows information on \" +\n\t\t\t\t\t\t\"available orders\");\n\t\tSystem.out\n\t\t\t\t.println(\"DIR - displays the content \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t .println(\"DIRGALL - displays the content\" +\n\t\t\t\t \" of current directory\");\n System.out\n\t\t .println(\" and all its internal\" +\n\t\t\t\t \" subdirectories\"); \t\t\n\t\tSystem.out\n\t\t\t\t.println(\"CD dir - changes the current \" +\n\t\t\t\t\t\t\"directory to its subdirectory [dir]\");\n\t\tSystem.out\n\t\t\t\t.println(\"CD .. - changes the current \" +\n\t\t\t\t\t\t\"directory to its father directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"WHERE - shows the path and name \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"FIND text - shows all the images \" +\n\t\t\t\t\t\t\"whose name includes [text]\");\n\t\tSystem.out\n\t\t\t\t.println(\"DEL text - information and delete \" +\n\t\t\t\t\t\t\"a picture named [text] of current \" +\n\t\t\t\t\t\t\"directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"MOVE text - move an image named \" +\n\t\t\t\t\t\t\"[text] to another directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMG time - displays a carousel \" +\n\t\t\t\t\t\t\"with the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" each image is displayed\" +\n\t\t\t\t\t\t\" [time] seconds\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMGALL time - displays a carousel with\" +\n\t\t\t\t\t\t\" the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" and in all its internal\" +\n\t\t\t\t\t\t\" subdirectories; each image is\");\n\t\tSystem.out.println(\" displayed [time] \" +\n\t\t\t\t\"seconds\");\n\t\tSystem.out.println(\"BIGIMG - displays the bigest image int the current\" +\n\t\t\t\t\"directory\");\n\t\tSystem.out.println(\"END - ends of program \" +\n\t\t\t\t\"execution\");\n\t}", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "public static String BuildMenu()\n {\n StringBuilder sb = new StringBuilder();\n sb.append(Common.Stars(50));\n sb.append(\"\\n\");\n sb.append(\"What would you like to do today?\\n\");\n sb.append(Common.Dashes(50));\n sb.append(\"\\n\");\n sb.append(\"* 1) List Vehicles [Enter 1] *\\n\");\n sb.append(\"* 2) Add A Vehicle [Enter 2] *\\n\");\n sb.append(\"* 3) Remove A Vehicle [Enter 3] *\\n\");\n sb.append(Common.Dashes(50));\n sb.append(\"\\n\");\n sb.append(Common.Stars(50));\n sb.append(\"\\n\");\n return sb.toString();\n }", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "public static void printMenu()\r\n\t{\r\n\t\tSystem.out.println(\"A) Add Scene\");\r\n\t\tSystem.out.println(\"R) Remove Scene\");\r\n\t\tSystem.out.println(\"S) Show Current Scene\");\r\n\t\tSystem.out.println(\"P) Print Adventure Tree\");\r\n\t\tSystem.out.println(\"B) Go Back A Scene\");\r\n\t\tSystem.out.println(\"F) Go Forward A Scene \");\r\n\t\tSystem.out.println(\"G) Play Game\");\r\n\t\tSystem.out.println(\"N) Print Path To Cursor\");\r\n\t\tSystem.out.println(\"M) Move Scene\");\r\n\t\tSystem.out.println(\"Q) Quit\");\r\n\t\tSystem.out.println();\r\n\t}", "public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\n\t}", "void printPlaylistMenu(){\n\t\tSystem.out.println(\"\\n\\nPlaylist Menu:\");\n\t\tSystem.out.println(\"1. Delete Song: delete <song id>\");\n\t\tSystem.out.println(\"2. Insert Song: insert <song id>\");\n\t\tSystem.out.println(\"3. Search and Insert Song: insert_search title/artist <string of words to be searched>\");\n\t\tSystem.out.println(\"4. Print Playlist: print\");\n\t\tSystem.out.println(\"5. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Main Menu: main\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "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}", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public String choiceMenu() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Move (W/A/S/D)\");\n\t\tSystem.out.println(\"Check Hero Info (I)\");\n\t\tSystem.out.println(\"Check Inventory (E)\");\n\t\tSystem.out.println(\"Check Map (M)\");\n\t\tSystem.out.println(\"End Turn (T)\");\n\t\tSystem.out.println(\"Quit (Q)\");\n\t\t\n\t\tString s = parseString().toUpperCase();\n\t\tboolean isValidString = false;\n\t\twhile(!isValidString) {\n\t\t\tif(s.equals(\"W\") || s.equals(\"A\") || s.equals(\"S\") || s.equals(\"D\") || s.equals(\"I\") \n\t\t\t\t\t|| s.equals(\"E\") || s.equals(\"M\") || s.equals(\"T\") || s.equals(\"Q\")) {\n\t\t\t\tisValidString = true;\t\n\t\t\t} else {\n\t\t\t\tprintErrorParse();\n\t\t\t\ts = parseString().toUpperCase();\n\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "static void gameMenuDisplayText() {\n System.out.println(\"\\n\" +\n \" _______________________________________________________\\n\" +\n \" | ▄▄▌ ▐ ▄▄▄▄ ▄▄▌ ▄▄ ▌ ▄ ▄▄▄ |\\n\" +\n \" | ██ █▌▐▀▄ ▀██ ▐█ ▌ ██ ▐███▀▄ ▀ |\\n\" +\n \" | ██ ▐█▐▐▐▀▀ ██ ██ ▄▄▄█▀▄▐█ ▌▐▌▐█▐▀▀ ▄ |\\n\" +\n \" | ▐█▌██▐█▐█▄▄▐█▌▐▐███▐█▌ ▐██ ██▌▐█▐█▄▄▌ |\\n\" +\n \" | ▀▀▀▀ ▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀█▄▀▀▀ █ ▀▀▀▀▀▀ |\\n\" +\n \" | |\\n\" +\n \" | Welcome to Stranger Game, the Java Console Game! |\\n\" +\n \" | Please select an option from the choices below: |\\n\" +\n \" | |\\n\" +\n \" | Play the Game [Command: Play] |\\n\" +\n \" | Exit this Program [Command: Quit] |\\n\" +\n \" |_____________________________________________________|\\n\");\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "@Override\n public String[] displayMenu() {\n\n PersonalMatchDAO personalMatchDAO = new PersonalMatchDAO();\n personalMatchDAO.listAllPersonalMatches();\n\n String[] str = {selection};\n return str;\n\n }", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "public abstract void displayMenu();", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "void printMainMenu(){\n\t\tSystem.out.println(\"\\n\\nMarketo Music\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"1. Create Playlist: create <playlist name>\");\n\t\tSystem.out.println(\"2. Edit Playlist: edit <playlist id>\");\n\t\tSystem.out.println(\"3. Print Song: song <song id>\");\n\t\tSystem.out.println(\"4. Print Playlist: playlist <playlist id>\");\n\t\tSystem.out.println(\"5. Print All Songs or Playlists: print song/playlist\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"8. Quit: quit\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "public void menu(){\n menuMusic.loop(pitch, volume);\n }", "private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }", "public void viewMenu() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tmm.clear();\n\n\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\n\t\t\t\n\t\t\tCollections.sort(mm); \n\t\t\tfor (AlacarteMenu item : mm) {\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getMenuName(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuType());\n\t\t\t}\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public static void printMenu(){\n System.out.print(\"1. List all writing groups\\n\" +\n \"2. List all the data for one writing group\\n\"+\n \"3. List all publishers\\n\"+\n \"4. List all the data for one publisher\\n\"+\n \"5. List all books\\n\"+\n \"6. List all the data for one book\\n\"+\n \"7. Insert new book\\n\"+\n \"8. Insert new publisher\\n\"+\n \"9. Remove a book\\n\"+\n \"10. Quit\\n\\n\");\n }", "public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\n }\n }", "public void menu(){\n int numero;\n \n //x.setVisible(true);\n //while(opc>=3){\n r = d.readString(\"Que tipo de conversion deseas hacer?\\n\"\n + \"1)Convertir de F a C\\n\"\n + \"2)Convertir de C a F\\n\"\n + \"3)Salir\"); \n opc=Character.getNumericValue(r.charAt(0));\n //}\n }", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "@Override\n \tpublic void menu()\n \t{\n \t\tint random = PublicFunctions.getRandomNumberPiece();\n \n \t\twhile(true)\n \t\t{\t\t\t\n \t\t\tbuilder.setLength(0);\n \t\t\t\n \t\t\t//Print out the status\n \t\t\tif(random == 8)\n \t\t\t{\n \t\t\t\tbuilder.append(\"The new piece is mystery piece\").append(\"\\n\");\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tbuilder.append(\"The new piece is \").append(random).append(\"\\n\");\n \t\t\t}\n \t\t\tbuilder.append(board.toString());\n \t\t\tSystem.out.println(builder);\n \t\t\t\n \n \t\t\t//Prompt starts here\n \t\t\tSystem.out.println(\"Where do you want to place the piece?\");\n \t\t\t\n \t\t\tString position = scanner.nextLine();\n \t\t\t\n \t\t\tif(position.equalsIgnoreCase(\"exit\"))\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Exiting...\");\n \t\t\t\t//dump stats here\n \t\t\t\tSystem.exit(0);\n \t\t\t}\n \t\t\telse if(position.equalsIgnoreCase(\"help\"))\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Help here!\");\n \t\t\t}\n \t\t\telse if(PublicFunctions.isValidPosition(position))\n \t\t\t{\n \t\t\t\tif(!board.insert(Integer.parseInt(position), random))\n \t\t\t\t{\n \t\t\t\t\tSystem.out.println(\"You lose\");\n \t\t\t\t\t//dump statistics here\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"Inserting piece...\");\n \n \t\t\t\t//Generate random number for next interation\n \t\t\t\trandom = PublicFunctions.getRandomNumberPiece();\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Invalid Entry\");\n \t\t\t}\n \t\t}\n \t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(background);\n\t\tprogram.add(topMatte);\n\t\tprogram.add(bottomMatte);\n\t\tprogram.add(stackLabel);\n\t\t\n\t\tprogram.add(basePurp);\n\t\tprogram.add(currPurp);\n\t\tbasePurp.sendToFront();\n\t\tfor (int i = 0; i < callStack; i++) {\n\t\t\tprogram.add(stackBricks[i]);\n\t\t}\n\n\t\tprogram.add(player.getImage());\n\t\tplayer.move(0, 0);\n\n\t\tAudioPlayer.getInstance().playSound(\"sounds\", \"LevelMusic.mp3\", true);\n\t\tif (portalLeft != null) {\n\t\t\tprogram.add(portalLeft.getImage());\n\t\t}\n\t\tif (portalRight != null) {\n\t\t\tprogram.add(portalRight.getImage());\n\t\t\tprogram.add(portalLabel);\n\t\t}\n\t\tif (next == null || next.payloadRetrieved) {\n\t\t\tprogram.add(payload.getImage());\n\t\t}\n\n\t\tArrayList<Payload> collectedPayload = player.getPayloads();\n\n\t\tprogram.add(psuedocode);\n\n\t\tfor (int i = 0; i < collectedPayload.size(); i++) {\n\t\t\tprogram.add(collectedPayload.get(i).getImage());\n\t\t\tpsuedocode.addRtnLong();\n\t\t}\n\t}", "public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}", "private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "public String seenPokemonMenu() {\n String rv = \"\";\n Iterator<PokemonSpecies> it = this.pokedex.iterator();\n while (it.hasNext()) {\n PokemonSpecies currentSpecies = it.next();\n rv += String.format(\"%s\\n\", currentSpecies.getSpeciesName());\n }\n return rv;\n }", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "public void showMenu(){\n\t\tSystem.out.println(\"******************************************************\");\n\t\tSystem.out.println(\"************Welcome to the holding program************\");\n\t\tSystem.out.println(\"******************************************************\");\n\t\tint option = -1;\n\t\twhile(option != 0){\n\t\t\tSystem.out.println(\"******************************************************\");\n\t\t\tSystem.out.println(\"***************Please, select an option***************\");\n\t\t\tSystem.out.println(\"******************************************************\");\n\t\t\tSystem.out.println(\"0. To exit of the program\");\n\t\t\tSystem.out.println(\"1. To add a public service company\");\n\t\t\tSystem.out.println(\"2. To add an university company\");\n\t\t\tSystem.out.println(\"3. To add a high school company\");\n\t\t\tSystem.out.println(\"4. To add a technological company\");\n\t\t\tSystem.out.println(\"5. To add a food company\");\n\t\t\tSystem.out.println(\"6. To add a medicine company\");\n\t\t\tSystem.out.println(\"7. Show the information of the holding\");\n\t\t\tSystem.out.println(\"8. Register a poll\");\n\t\t\tSystem.out.println(\"9. To add a employee\");\n\t\t\tSystem.out.println(\"10. Find the extension of a employee\");\n\t\t\tSystem.out.println(\"11. Find the mails of all the employees that are occupied a position\");\n\t\t\tSystem.out.println(\"12. To add a product\");\n\t\t\toption = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tswitch(option){\n\t\t\t\tcase 0:\n\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\tpublicService();\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tuniversity();\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\thighSchool();\n\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\ttechnological();\n\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\tfood();\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\tmedicine();\n\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\tSystem.out.println(theHolding.wholeInformation());\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\tregisterPoll();\n\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\taddEmployee();\n\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\textensionEmployee();\n\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\tmailsPosition();\n\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\taddProduct();\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Select a correct option\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public String toString() {\r\n\r\n\tString out = \"\";\r\n\r\n\tfor (int i = 0; i < this.getNumberChoices(); i++) {\r\n\t MenuChoice thisChoice = this.getChoices().get(i);\r\n\t out += thisChoice.getIndex() + \") \" + thisChoice.getValue() + \"\\n\";\r\n\t}\r\n\r\n\treturn out;\r\n }", "public static void menu(){\n System.out.println(\"-Ingrese el número correspondiente-\");\n System.out.println(\"------------ Opciones -------------\");\n System.out.println(\"------------ 1. Sumar -------------\");\n System.out.println(\"------------ 2. Restar ------------\");\n System.out.println(\"------------ 3. Multiplicar -------\");\n System.out.println(\"------------ 4. Dividir -----------\");\n }", "public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "private static void printMenu() {\n\t\tchar select, select1;\n\t\tBinaryTree tree = null, upDated = null;\n\t\tString data;\n\t\tString haku;\n\t\t\n\t\ttree = new BinaryTree(\"juurisolmu\");\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti1\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti2\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehti3\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l1\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l12\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l123\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"l1234\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuu\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuuu\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuuuu\"));\n\t\ttree.findWithPreOrder(new BinaryTree(\"lehtipuuuuuuuuuuu\"));\n\t\tdo {\n\n\t\t\tSystem.out.println(\"\\n\\t\\t\\t1. Luo juurisolmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t2. Päivitä uusi solmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t3. Käy puu läpi esijärjestyksessä.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t4. Etsi solmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t5. Poista solmu.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t6. Jaoittelu haku.\");\n\t\t\tSystem.out.println(\"\\t\\t\\t7. lopetus \");\n\t\t\tSystem.out.print(\"\\n\\n\"); // tehdään tyhjiä rivejä\n\t\t\tselect = Lue.merkki();\n\t\t\tswitch (select) {\n\t\t\tcase '1':\n\t\t\t\tSystem.out.println(\"Anna juuren sisältö (merkkijono)\");\n\t\t\t\tdata = new String(Lue.rivi());\n\t\t\t\ttree = new BinaryTree(data);\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\tif (tree == null)\n\t\t\t\t\tSystem.out.println(\"Et ole muodostanut juurisolmua.\");\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Anna solmun sisältö (merkkijono)\");\n\t\t\t\t\tBinaryTree newTree = new BinaryTree(new String(Lue.rivi()));\n\t\t\t\t\ttree.findWithPreOrder(newTree);\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '3':\n\t\t\t\ttree.preOrder();\n\t\t\t\tchar h = Lue.merkki(); // pysäytetään kontrolli\n\t\t\t\tbreak;\n\t\t\tcase '4':\n\t\t\t\tSystem.out.println(\"Anna haettavan solmun sisältö (merkkijono)\");\n\t\t\t\thaku = Lue.rivi();\n\t\t\t\ttree.setNotFound();\n\t\t\t\tif (tree.findOrder(haku)) {\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ei löydy.\");\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase '5':\n\t\t\t\tSystem.out.println(\"Anna poistettavan solmun sisältö (merkkijono)\");\n\t\t\t\tString poisto = Lue.rivi();\n\t\t\t\tupDated = tree.findOrderDelete(poisto);\n\t\t\t\tif (upDated != null) {\n\t\t\t\t\tSystem.out.println(\"Solu poistettu.\");\n\t\t\t\t\tif (upDated.getRoot().left() != null) {\n\t\t\t\t\t\ttree.findWithPreOrder(upDated.getRoot().left());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (upDated.getRoot().right() != null) {\n\t\t\t\t\t\ttree.findWithPreOrder(upDated.getRoot().right());\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Solua ei löydy.\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase '6':\n\t\t\t\tSystem.out.println(\"Anna haettavan solmun sisältö (merkkijono)\");\n\t\t\t\thaku = Lue.rivi();\n\t\t\t\ttree.setNotFound();\n\t\t\t\tif (tree.searchWithPreOrder(haku)) {\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ei löydy.\");\n\t\t\t\t\tSystem.out.println(tree.getFound());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '7':\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (select != '7');\n\t}", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "private String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "public String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(this.name + \"\\n\");\n\t\tfor (int i = 0; i < menu.size(); ++i) {\n\t\t\tbuilder.append(menu.get(i).toString() + \"\\n\");\n\t\t}\n\t\tbuilder.append(\"**end**\");\n\t\treturn builder.toString();\n\t}", "private void mainMenu() {\r\n System.out.println(\"Please choose an option: \");\r\n System.out.println(\"1. New Player\");\r\n System.out.println(\"2. New VIP Player\");\r\n System.out.println(\"3. Quit\");\r\n }", "private static void displayCartMenu() {\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please make your choice, by entering the assigned number\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" 1: Remove an item from the cart\");\r\n\t\tSystem.out.println(\" 2: Modify the number of a certain item in the cart\");\r\n\t\tSystem.out.println(\" 3: Checkout cart\");\r\n\t\tSystem.out.println(\" 0: Quit to main manu\");\r\n\t\tint value = getValidUserInput(scanner, 4);\r\n\t\tswitch (value) {\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\" Going back to main menu\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tremoveItemFromCart();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tmodifyItemNumberInCart();\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcheckoutCart();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"\\nPlease select which type of argument to generate by entering the associated number.\\n\");\n\t\tfor(int i = 0; i < type.length; i++) {\n\t\t\tSystem.out.println((i+1)+\". \"+type[i]);\n\t\t}\n\t\tSystem.out.println(\"8. Quit\");\n\t}", "private static int displayMenu() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\tSystem.out.println(\"Enter a selection from the following menu:\");\r\n\t\tSystem.out.println(ADD_NEW_REGISTRANT + \". Enter a new registrant\\n\" \r\n\t\t\t\t+ FIND_REGISTRANT\t\t\t\t + \". Find registrant by registration number\\n\" \r\n\t\t\t\t+ LIST_REGISTRANTS \t\t\t\t + \". Display list of registrants\\n\"\r\n\t\t\t\t+ DELETE_REGISTRANT \t\t\t + \". Delete a registrant\\n\" \r\n\t\t\t\t+ ADD_NEW_PROPERTY \t\t\t\t + \". Register a new property\\n\"\r\n\t\t\t\t+ DELETE_PROPERTY \t\t\t\t + \". Delete property\\n\" \r\n\t\t\t\t+ CHANGE_PROPERTY_REGISTRANT \t + \". Change a property's registrant\\n\" \r\n\t\t\t\t+ LIST_PROPERTY_BY_REGNUM\t\t + \". Display all properties with the same registration number\\n\" \r\n\t\t\t\t+ LIST_ALL_PROPERTIES\t\t\t + \". Display all registered properties\\n\" \r\n\t\t\t\t+ LOAD_LAND_REGISTRY_FROM_BACKUP + \". Load land registry from backup\\n\" \r\n\t\t\t\t+ SAVE_LAND_REGISTRY_TO_BACKUP\t + \". Save land registry to backup\\n\" \r\n\t\t\t\t+ EXIT \t\t\t\t\t\t\t + \". Exit program\\n\");\r\n\t\tint ch = scan.nextInt();\r\n\t\tscan.nextLine(); // 'eat' the next line in the buffer\r\n\t\treturn ch;\r\n\t}", "private String handleMenu (String text, Event event) {\n\t\tString result = \"\";\n\t\tif(menu == null) {\n\t\t\tMatcher m = Pattern.compile(\"text|url|jpeg\", Pattern.CASE_INSENSITIVE).matcher(text);\n\t\t\tif (m.find()) {\n\t\t\t\tswitch (m.group().toLowerCase()) {\n\t\t\t \t\tcase \"text\": {\n\t menu = Menu.TEXT;\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\tcase \"url\": {\n\t\t\t \t\t\tmenu = Menu.URL;\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\tcase \"jpeg\": {\n\t\t\t \t\t\tmenu = Menu.JPEG;\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t\t}\n\t\t\t\tresult = \"OK! Show me the menu now!\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresult = \"I don't understand\";\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tswitch (menu) {\n \t\tcase TEXT:\n result = inputToFood.readFromText(\"\"+event.getSource().getUserId(), text);\n menu = null;\n \t\t\tcategories = Categories.MAIN_MENU;\n \t\t\tbreak;\n \t\tcase URL:\n \t\t\tresult = inputToFood.readFromJSON(text);\n \t\t\tresult = inputToFood.readFromText(\"\"+event.getSource().getUserId(), result);\n \t\t\tmenu = null;\n \t\t\tcategories = Categories.MAIN_MENU;\n \t\t\tbreak;\n \t\tcase JPEG:\n \t\t\tmenu = null;\n \t\t\tcategories = Categories.MAIN_MENU;\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tresult = \"I don't understand\";\n \t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\t\n\t}", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\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 }", "private void printEditMenu(){\n System.out.println(\"fh - Flip horizontal \\n fv - Flip vertical \\n sl - Slide left \\n sr - Slide right \\n su - Slide up \\n sd - Slide down \\n nr - Slide number right. Currently=\" + numberRight + \"\\n nl - Slide number left. Currently=\" + numberLeft + \"\\n nd - Slide number down. Currently=\" + numberDown + \"\\n nu - Slide number up. Currently=\" + numberUp + \"\\n r - Repeat last operation (Default slide left) \\n q - Quit (Return to main menu)\");\n }", "private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT * 2 / 3, \"CS61B The Game\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 + 2, \"New Game (N)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Load Game (L)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 - 2 , \"Quit (Q)\");\n StdDraw.show();\n }", "public int showMenu() {\n\t\tSystem.out.print(\"\\n--- 학생 관리 프로그램 ---\\n\");\n\t\tSystem.out.println(\"1. 학생 정보 등록\");\n\t\tSystem.out.println(\"2. 전체 학생 정보\");\n\t\tSystem.out.println(\"3. 학생 정보 출력(1명)\");\n\t\tSystem.out.println(\"4. 학생 정보 수정\");\n\t\tSystem.out.println(\"5. 학생 정보 삭제\");\n\t\tSystem.out.print(\"선택 > \");\n\t\tint itemp = sc.nextInt();\n\t\treturn itemp;\n\t}", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "private static void createPrinterMenuLogic() {\n\n\t\tmenuHandler.clrscr();\n\n\t\t// Printer name\n\t\tString printerName = menuHandler.inputString(\"Please input the printer name (cannot be empty)\");\n\n\t\t// Printer paper format\n\t\tSystem.out.println(\"Select printer paper format capabilities\");\n\t\tint maxChoice = menuHandler.printerFormatMenu();\n\t\tint formatChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t// Printer toner\n\t\tSystem.out.println(\"Select printer toner capabilities\");\n\t\tmaxChoice = menuHandler.printerTonerMenu();\n\t\tint tonerChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t// Parse user choices and create printer capabilities object\n\t\tBoolean[] bools = parsePrinterCapabilities(formatChoice, tonerChoice);\n\t\tPrinterCapability printerCapability = objectHandler.createPrinterCapability(bools[canPrintA4], bools[canPrintA3], bools[canPrintBlack], bools[canPrintColor]);\n\n\t\t// Ask user about pricing and create printer pricing object\n\t\tPrinterPricing printerPricing = createPrinterPricing(bools);\n\n\t\t// Ask user about capacity and create printer capacity object\n\t\tPrinterCapacity printerCapacity = createPrinterCapacity(bools);\n\n\t\tprinters.put(\"Printer\" + printers.size(), objectHandler.createPrinter(printerName, printerCapability, printerPricing, printerCapacity, objectHandler.createPrinterStatus()));\n\t}", "public synchronized StringBuffer Print_Text_OptionSet_Menu(String Text){\n\t\tint i=0;\n\t\tStringBuffer Menu= new StringBuffer(\"\\n\\t\\t\"+Text.toUpperCase(Locale.getDefault())\n +\" OPTIONSET MENU\\n\"\n\t\t\t\t+ \"\\tPLEASE ENTER YOUR CHOICE AS THE INSTRUCTION BELOW:\");\n for (OptionSet Temp : opset) {\n Menu.append(\"\\n\\t\\t-Enter \").append(i+1)\n .append(\" for \").append(Temp.getName()).append(\" .\");\n }\n\t\treturn Menu;\n\t}", "public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "public void PrintMenu() throws IOException {\r\n\t\t//loop the menu until the user chooses to quit\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"Welcome to the EnigmaMachine command interface!\");\r\n\t\t\tSystem.out.println(\"Enter 1 to add the plugs\");\r\n\t\t\tSystem.out.println(\"Enter 2 to add the rotors\");\r\n\t\t\tSystem.out.println(\"Enter 3 to add the reflector\");\r\n\t\t\tSystem.out.println(\"Enter 4 to enter the message\");\r\n\t\t\tSystem.out.println(\"Enter 5 to quit the menu and start the machine\");\r\n\t\t\t\r\n\t\t\tint option = this.readIntegerFromCmd();\r\n\t\t\t//jump to different method according to the input of the user\r\n\t\t\tif (option == 1) {\r\n\t\t\t\tthis.addPlug();\r\n\t\t\t}else if (option == 2) {\r\n\t\t\t\tthis.addRotors();\r\n\t\t\t}else if (option == 3) {\r\n\t\t\t\tthis.addReflector();\r\n\t\t\t}else if (option == 4) {\r\n\t\t\t\tthis.addMessage();\r\n\t\t\t}else if (option == 5) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void addChoice(){\n System.out.println(\"Chocolate cake size: \");\n //print out choice\n choice.addChoice();\n }", "private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "private void displayPowers()\n {\n //Fetch powers\n currentPowerset = power.getPowerSet();\n //Clear output\n txtPowerDisplay.setText(\"\");\n powerString = \"\";\n //For each item in the list, fetch its name and append with a next line\n for (int i = 0; i < currentPowerset.size(); i++)\n {\n powerString += currentPowerset.get(i);\n powerString += \"\\n\";\n }\n //Display the generated string to the user\n txtPowerDisplay.setText(powerString);\n }", "public String promptMenu() {\n String selection;\n promptMenu: do {\n selection = promptString(\n \"\\n======== FLOORING PROGRAM MAIN MENU ========\\n\" + \n \"DISPLAY - Display Orders\\n\" + \n \"ADD - Add an Order\\n\" + \n \"EDIT - Edit an Order\\n\" + \n \"REMOVE - Remove an Order\\n\" + \n \"EXPORT - Export all data to file\\n\" + \n \"EXIT - Exit\\n\" +\n \"What would you like to do?\"\n );\n \n switch(selection.toLowerCase()) {\n case \"display\":\n case \"add\":\n case \"edit\":\n case \"remove\":\n case \"export\":\n case \"exit\":\n break promptMenu;\n default:\n continue;\n }\n } while(true);\n \n return selection;\n }", "private void afficheMenu() {\n\t\tSystem.out.println(\"------------------------------ Bien venu -----------------------------\");\n\t\tSystem.out.println(\"--------------------------- \"+this.getName()+\" ------------------------\\n\");\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(40);\n\t\t\tSystem.out.println(\"A- Afficher l'état de l'hôtel. \");\n\t\t\tThread.sleep(50);\n\t\t\tSystem.out.println(\"B- Afficher Le nombre de chambres réservées.\");\n\t\t\tThread.sleep(60);\n\t\t\tSystem.out.println(\"C- Afficher Le nombre de chambres libres.\");\n\t\t\tThread.sleep(70);\n\t\t\tSystem.out.println(\"D- Afficher Le numéro de la première chambre vide.\");\n\t\t\tThread.sleep(80);\n\t\t\tSystem.out.println(\"E- Afficher La numéro de la dernière chambre vide.\");\n\t\t\tThread.sleep(90);\n\t\t\tSystem.out.println(\"F- Reserver une chambre.\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"G- Libérer une chambre.\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"O- Voire toutes les options possibles?\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"H- Aide?\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"-------------------------------------------------------------------------\");\n\t\t}catch(Exception err) {\n\t\t\tSystem.out.println(\"Error d'affichage!\");\n\t\t}\n\t\n\t}", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "private static void printMainMenu() {\n\t\tprintln(\"Main Menu:\");\n\t\tprintln(\"\\tI: Import Movie <Title>\");\n\t\tprintln(\"\\tD: Delete Movie <Title>\");\n\t\tprintln(\"\\tS: Sort Movies\");\n\t\tprintln(\"\\tA: Sort Actors\");\n\t\tprintln(\"\\tQ: Quit\");\n\t}", "public static void displayMenu() {\n while (true) {\n m.display();\n int i = m.choice();\n m.execute1(i);\n }\n }" ]
[ "0.6958735", "0.69485605", "0.68931943", "0.6849618", "0.6816318", "0.6746802", "0.67061174", "0.66734225", "0.6654473", "0.6650877", "0.6641318", "0.6630319", "0.6611155", "0.66068876", "0.65922356", "0.6576602", "0.6546254", "0.65294886", "0.6512187", "0.6486349", "0.64759076", "0.6461277", "0.6436111", "0.64263916", "0.64238966", "0.64212567", "0.64186513", "0.6417164", "0.6416884", "0.64161134", "0.6411724", "0.64093333", "0.6384767", "0.638133", "0.6356827", "0.6352299", "0.6350871", "0.6339079", "0.63349736", "0.63335687", "0.6332803", "0.6325223", "0.6322675", "0.6319468", "0.62964976", "0.62606263", "0.6257328", "0.6257287", "0.62558717", "0.62475806", "0.6223581", "0.6218612", "0.62105167", "0.6200165", "0.61946505", "0.6178121", "0.6162776", "0.6161241", "0.61551934", "0.6152866", "0.6151141", "0.6132643", "0.61106557", "0.6099167", "0.6096823", "0.6091617", "0.6090829", "0.60691255", "0.6066016", "0.6056131", "0.6050832", "0.6050272", "0.6049648", "0.60418975", "0.60369956", "0.6029617", "0.60281867", "0.6027959", "0.6004388", "0.5999272", "0.5985525", "0.59775436", "0.5972016", "0.59711826", "0.5951992", "0.59519464", "0.5951639", "0.59427947", "0.59421897", "0.5940844", "0.5939697", "0.5935295", "0.59352297", "0.592976", "0.59274435", "0.59267265", "0.59263647", "0.59247154", "0.59235567", "0.5922516", "0.5922171" ]
0.0
-1
called by internal mechanisms, do not call yourself.
public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getTaskDao() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected void onFirstUse() {}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\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 protected void prot() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\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 \tpublic void process() {\n \t\t\r\n \t}", "@Override\n protected void init() {\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "public void smell() {\n\t\t\n\t}", "public static void SelfCallForLoading() {\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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\tprotected void postRun() {\n\n\t}", "public final void mo91715d() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n\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\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {}", "private void init() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "protected void additionalProcessing() {\n\t}", "private void assignment() {\n\n\t\t\t}", "private final void i() {\n }", "protected void initialize() {}", "protected void initialize() {}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n void init() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void init() {\n\n }", "@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\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\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\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.6371722", "0.6260732", "0.6228073", "0.616492", "0.6125714", "0.6042472", "0.5979736", "0.5976913", "0.5956299", "0.5942653", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.590189", "0.5893604", "0.5893604", "0.58852583", "0.58852583", "0.58635277", "0.5862591", "0.58231324", "0.5817122", "0.5810591", "0.57913315", "0.5780044", "0.5756838", "0.57432634", "0.57432634", "0.5742655", "0.57168347", "0.5712824", "0.5711848", "0.5705701", "0.57002705", "0.57002705", "0.5696676", "0.56963664", "0.56953907", "0.5685475", "0.56828934", "0.5681618", "0.5681618", "0.567689", "0.56753176", "0.56713015", "0.56713015", "0.5670039", "0.5664569", "0.56607634", "0.5648674", "0.56479615", "0.56372625", "0.56206506", "0.56196487", "0.5611562", "0.56115466", "0.56115437", "0.56107473", "0.5609358", "0.5605373", "0.5605222", "0.56039697", "0.56038797", "0.56038797", "0.56032103", "0.55948544", "0.55919206", "0.5588513", "0.55879956", "0.55879956", "0.55874985", "0.5587093", "0.5587093", "0.55782324", "0.55782324", "0.55782324", "0.55770504", "0.5576767", "0.5576767", "0.5576767", "0.5576767", "0.5576767", "0.5575634", "0.5571351", "0.5571351", "0.5563423", "0.5563423", "0.55601794", "0.5559437", "0.5543968", "0.55424577", "0.5542376", "0.55416346", "0.554032", "0.5539361", "0.5539361", "0.55289656", "0.5528763" ]
0.0
-1
Notnull value; ensure this value is available before it is saved to the database.
public void setUuid(String uuid) { this.uuid = uuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Object getEditableValue() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean getHasValue() {\n\t\treturn true;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "public boolean allowsNull() {\n return this.allowsNullValue;\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\n public void setValue(@Nullable Object newValue) {\n throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, \"null\");\n }", "@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getPkVal() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object setPossibleValue() {\n\t\treturn null;\n\t}", "public String NullSave()\n {\n return \"null\";\n }", "NullValue createNullValue();", "NullValue createNullValue();", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "public boolean getValueLanguageIdNull() {\n return valueLanguageIdNull_;\n }", "public Object getValue() {\n\t\tif (present || isRequired()) {\t\t\t\n\t\t\treturn editorBinder.populateBackingObject();\n\t\t}\n\t\treturn null;\n\t}", "public Object getNullOldValueProperty() {\r\n return nullOldValueProperty;\r\n }", "public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}", "public boolean getValueLanguageIdNull() {\n return valueLanguageIdNull_;\n }", "public Value restrictToNotAbsent() {\n checkNotUnknown();\n if (isNotAbsent())\n return this;\n Value r = new Value(this);\n r.flags &= ~ABSENT;\n if (r.var != null && (r.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) == 0)\n r.var = null;\n return canonicalize(r);\n }", "@Override\n public void setNull() {\n\n }", "@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "@Override\n\tpublic boolean hasMissingValue() {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public boolean hasValue() { return false; }", "public M csmiSexNull(){if(this.get(\"csmiSexNot\")==null)this.put(\"csmiSexNot\", \"\");this.put(\"csmiSex\", null);return this;}", "private Optional() {\r\n\t\tthis.value = null;\r\n\t}", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "public String value() {\n\t\treturn null;\r\n\t}", "public Value restrictToNotNullNotUndef() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybeNull() && !isMaybeUndef())\n return this;\n Value r = new Value(this);\n r.flags &= ~(NULL | UNDEF);\n return canonicalize(r);\n }", "public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}", "public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}", "public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}", "public M csmiBirthdayNull(){if(this.get(\"csmiBirthdayNot\")==null)this.put(\"csmiBirthdayNot\", \"\");this.put(\"csmiBirthday\", null);return this;}", "public boolean hasValue() {\n return value_ != null;\n }", "void setNilValue();", "@Required\n @NotNull\n String getValue();", "@Required\n @Updatable\n public String getValue() {\n return value;\n }", "public boolean isNullable() {\n return true;\n }", "protected T createNewValueOnFlush() {\n \t\treturn null;\n \t}", "public static Value makeNull() {\n return theNull;\n }", "boolean getValueLanguageIdNull();", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "@java.lang.Override\n public boolean hasVal() {\n return val_ != null;\n }", "private String getNullValueText() {\n return getNull();\n }", "private void ensureEntityValue(IEntity entity) {\n entity.setPrimaryKey(entity.getPrimaryKey());\n }", "public final boolean getInputAllowNull() {\n\t\treturn wInputAllowNull;\n\t}", "public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}", "public M csrtIdNull(){if(this.get(\"csrtIdNot\")==null)this.put(\"csrtIdNot\", \"\");this.put(\"csrtId\", null);return this;}", "public boolean getSearchValueNull() {\n return searchValueNull_;\n }", "public boolean isNonNull() {\n return true;\n }", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "public boolean getSearchValueNull() {\n return searchValueNull_;\n }", "@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n /* When doing a force put, we can safely ignore the null-valued attributes. */\n return;\n }", "public boolean isPresent() {\r\n\t\treturn value != null;\r\n\t}", "public boolean isNullable() {\n return _isNullable;\n }", "public boolean isNullable() {\n return _isNullable;\n }", "@Override\n public final boolean hasSpecialDefenseValueAttribute() {\n return true;\n }", "public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "public String isValid() {\n\t\treturn null;\n\t}", "public boolean isNull(){\n return false;\n }", "@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "T getNullValue();", "public boolean isNullable() {\r\n return isNullable;\r\n }", "public boolean isValue() {\n return false;\n }", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "public boolean getValueCharacteristicIdNull() {\n return valueCharacteristicIdNull_;\n }", "public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}", "public boolean getValueCharacteristicIdNull() {\n return valueCharacteristicIdNull_;\n }", "boolean getNullable();", "public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}", "protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }", "public boolean isNull() {\n return originalValue == null;\n }", "public void setVoid_Inventory_ID (int Void_Inventory_ID)\n{\nif (Void_Inventory_ID <= 0) set_Value (\"Void_Inventory_ID\", null);\n else \nset_Value (\"Void_Inventory_ID\", new Integer(Void_Inventory_ID));\n}", "public void setValue(Object value) {\n\t\tthis.present = isRequired() || value != null;\t\t\n\t\teditorBinder.setBackingObject(value);\n\t\teditorBinder.initEditors();\n\t}", "public boolean isUndefinedAllowed() {\n return _allowUndefined;\n }", "@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n if (getLocalSaveBehavior() == DynamoDBMapperConfig.SaveBehavior.UPDATE_SKIP_NULL_ATTRIBUTES\n || getLocalSaveBehavior() == DynamoDBMapperConfig.SaveBehavior.APPEND_SET) {\n return;\n } else {\n /* Delete attributes that are set as null in the object. */\n getAttributeValueUpdates()\n .put(attributeName,\n new AttributeValueUpdate()\n .withAction(\"DELETE\"));\n }\n }", "@Override\n\tpublic void flagNull() {\n\t\t\n\t}", "Object setValue(Object value) throws NullPointerException;", "private V isertNullKey(K key, V value) {\n return value;\n }", "public static boolean isNull_fields_allowed() {\n return null_fields_allowed;\n }", "public String getNullAttribute();", "public void setNotPersisted(boolean value) {\n this.notPersisted = value;\n }", "public boolean isNotPersisted() {\n return notPersisted;\n }", "public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}", "public M csseRemarkNull(){if(this.get(\"csseRemarkNot\")==null)this.put(\"csseRemarkNot\", \"\");this.put(\"csseRemark\", null);return this;}", "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}", "public void makeApprovedIfNull() {\n int x = getHifiveRating();\n if (x == 0) {\n setHifiveRating(HIFIVERATING_approved);\n }\n }" ]
[ "0.66556793", "0.6542114", "0.6502737", "0.6341432", "0.6341432", "0.6341432", "0.6329059", "0.6326043", "0.6299003", "0.6299003", "0.6299003", "0.6223568", "0.616573", "0.6132559", "0.6114203", "0.6091565", "0.60907304", "0.60907304", "0.6054326", "0.6054326", "0.6021421", "0.6014544", "0.60117507", "0.59968305", "0.5996219", "0.59817773", "0.59817386", "0.59649515", "0.5948286", "0.5864573", "0.5844664", "0.58375615", "0.5804424", "0.57997423", "0.57969654", "0.5785753", "0.5767101", "0.5764055", "0.5741734", "0.5717889", "0.5687183", "0.5687183", "0.5661709", "0.56594825", "0.5637228", "0.56313705", "0.56312263", "0.5631106", "0.5623011", "0.56208247", "0.561944", "0.56180876", "0.56044513", "0.5603783", "0.55940855", "0.55869305", "0.558453", "0.5576841", "0.5566509", "0.5564836", "0.5559648", "0.55512226", "0.5545294", "0.5538483", "0.5532356", "0.55199647", "0.55199647", "0.55178285", "0.5508506", "0.55079097", "0.5492711", "0.5486705", "0.54467356", "0.543955", "0.5438722", "0.5434101", "0.54319954", "0.54231", "0.5418839", "0.54156435", "0.5404492", "0.5401636", "0.53989136", "0.5398761", "0.53986824", "0.53962743", "0.5395583", "0.53897285", "0.5388671", "0.5387686", "0.53860945", "0.5380917", "0.53771603", "0.53729326", "0.5365201", "0.53606206", "0.536033", "0.5358956", "0.5353072", "0.5329719", "0.5326891" ]
0.0
-1
Notnull value; ensure this value is available before it is saved to the database.
public void setCustomerId(String customerId) { this.customerId = customerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Object getEditableValue() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean getHasValue() {\n\t\treturn true;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "public boolean allowsNull() {\n return this.allowsNullValue;\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\n public void setValue(@Nullable Object newValue) {\n throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, \"null\");\n }", "@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getPkVal() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object setPossibleValue() {\n\t\treturn null;\n\t}", "public String NullSave()\n {\n return \"null\";\n }", "NullValue createNullValue();", "NullValue createNullValue();", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "public boolean getValueLanguageIdNull() {\n return valueLanguageIdNull_;\n }", "public Object getValue() {\n\t\tif (present || isRequired()) {\t\t\t\n\t\t\treturn editorBinder.populateBackingObject();\n\t\t}\n\t\treturn null;\n\t}", "public Object getNullOldValueProperty() {\r\n return nullOldValueProperty;\r\n }", "public boolean getValueLanguageIdNull() {\n return valueLanguageIdNull_;\n }", "public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}", "public Value restrictToNotAbsent() {\n checkNotUnknown();\n if (isNotAbsent())\n return this;\n Value r = new Value(this);\n r.flags &= ~ABSENT;\n if (r.var != null && (r.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) == 0)\n r.var = null;\n return canonicalize(r);\n }", "@Override\n public void setNull() {\n\n }", "@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "@Override\n\tpublic boolean hasMissingValue() {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public boolean hasValue() { return false; }", "public M csmiSexNull(){if(this.get(\"csmiSexNot\")==null)this.put(\"csmiSexNot\", \"\");this.put(\"csmiSex\", null);return this;}", "private Optional() {\r\n\t\tthis.value = null;\r\n\t}", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "public String value() {\n\t\treturn null;\r\n\t}", "public Value restrictToNotNullNotUndef() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybeNull() && !isMaybeUndef())\n return this;\n Value r = new Value(this);\n r.flags &= ~(NULL | UNDEF);\n return canonicalize(r);\n }", "public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}", "public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}", "public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}", "public M csmiBirthdayNull(){if(this.get(\"csmiBirthdayNot\")==null)this.put(\"csmiBirthdayNot\", \"\");this.put(\"csmiBirthday\", null);return this;}", "public boolean hasValue() {\n return value_ != null;\n }", "void setNilValue();", "public boolean isNullable() {\n return true;\n }", "@Required\n @NotNull\n String getValue();", "@Required\n @Updatable\n public String getValue() {\n return value;\n }", "protected T createNewValueOnFlush() {\n \t\treturn null;\n \t}", "public static Value makeNull() {\n return theNull;\n }", "boolean getValueLanguageIdNull();", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "@java.lang.Override\n public boolean hasVal() {\n return val_ != null;\n }", "private String getNullValueText() {\n return getNull();\n }", "private void ensureEntityValue(IEntity entity) {\n entity.setPrimaryKey(entity.getPrimaryKey());\n }", "public final boolean getInputAllowNull() {\n\t\treturn wInputAllowNull;\n\t}", "public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}", "public M csrtIdNull(){if(this.get(\"csrtIdNot\")==null)this.put(\"csrtIdNot\", \"\");this.put(\"csrtId\", null);return this;}", "public boolean getSearchValueNull() {\n return searchValueNull_;\n }", "public boolean isNonNull() {\n return true;\n }", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "public boolean getSearchValueNull() {\n return searchValueNull_;\n }", "@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n /* When doing a force put, we can safely ignore the null-valued attributes. */\n return;\n }", "public boolean isPresent() {\r\n\t\treturn value != null;\r\n\t}", "public boolean isNullable() {\n return _isNullable;\n }", "public boolean isNullable() {\n return _isNullable;\n }", "@Override\n public final boolean hasSpecialDefenseValueAttribute() {\n return true;\n }", "public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "public String isValid() {\n\t\treturn null;\n\t}", "public boolean isNull(){\n return false;\n }", "@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}", "public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}", "T getNullValue();", "public boolean isNullable() {\r\n return isNullable;\r\n }", "public boolean isValue() {\n return false;\n }", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "public boolean getValueCharacteristicIdNull() {\n return valueCharacteristicIdNull_;\n }", "public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}", "public boolean getValueCharacteristicIdNull() {\n return valueCharacteristicIdNull_;\n }", "boolean getNullable();", "public boolean isNull() {\n return originalValue == null;\n }", "public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}", "protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }", "public void setVoid_Inventory_ID (int Void_Inventory_ID)\n{\nif (Void_Inventory_ID <= 0) set_Value (\"Void_Inventory_ID\", null);\n else \nset_Value (\"Void_Inventory_ID\", new Integer(Void_Inventory_ID));\n}", "public void setValue(Object value) {\n\t\tthis.present = isRequired() || value != null;\t\t\n\t\teditorBinder.setBackingObject(value);\n\t\teditorBinder.initEditors();\n\t}", "public boolean isUndefinedAllowed() {\n return _allowUndefined;\n }", "@Override\n\tpublic void flagNull() {\n\t\t\n\t}", "@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n if (getLocalSaveBehavior() == DynamoDBMapperConfig.SaveBehavior.UPDATE_SKIP_NULL_ATTRIBUTES\n || getLocalSaveBehavior() == DynamoDBMapperConfig.SaveBehavior.APPEND_SET) {\n return;\n } else {\n /* Delete attributes that are set as null in the object. */\n getAttributeValueUpdates()\n .put(attributeName,\n new AttributeValueUpdate()\n .withAction(\"DELETE\"));\n }\n }", "Object setValue(Object value) throws NullPointerException;", "private V isertNullKey(K key, V value) {\n return value;\n }", "public static boolean isNull_fields_allowed() {\n return null_fields_allowed;\n }", "public String getNullAttribute();", "public void setNotPersisted(boolean value) {\n this.notPersisted = value;\n }", "public boolean isNotPersisted() {\n return notPersisted;\n }", "public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}", "public M csseRemarkNull(){if(this.get(\"csseRemarkNot\")==null)this.put(\"csseRemarkNot\", \"\");this.put(\"csseRemark\", null);return this;}", "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}", "public void makeApprovedIfNull() {\n int x = getHifiveRating();\n if (x == 0) {\n setHifiveRating(HIFIVERATING_approved);\n }\n }" ]
[ "0.6657088", "0.65434194", "0.65045696", "0.6344035", "0.6344035", "0.6344035", "0.6330284", "0.63284796", "0.6301632", "0.6301632", "0.6301632", "0.6223393", "0.61681986", "0.61340857", "0.6115494", "0.6091742", "0.6091615", "0.6091615", "0.60564023", "0.60564023", "0.60233754", "0.60157734", "0.6012855", "0.5998154", "0.59976655", "0.59837097", "0.59823936", "0.5967175", "0.59484833", "0.5867359", "0.5847258", "0.58397806", "0.58049494", "0.5801038", "0.5799019", "0.5788277", "0.5769115", "0.5765049", "0.5742795", "0.57187927", "0.5688946", "0.5688946", "0.56631565", "0.56613016", "0.5638704", "0.56329435", "0.5632892", "0.5632741", "0.56233495", "0.56220865", "0.5620967", "0.56189567", "0.56053084", "0.56052285", "0.55957156", "0.5586794", "0.55852467", "0.55774933", "0.55673796", "0.55667377", "0.55615294", "0.55500865", "0.55471796", "0.5538109", "0.55348486", "0.5521783", "0.5521783", "0.5518738", "0.551031", "0.5508774", "0.54938126", "0.5488906", "0.54472697", "0.54410124", "0.5440721", "0.5435876", "0.5434558", "0.5424719", "0.5421169", "0.54159325", "0.5406801", "0.54032606", "0.5400394", "0.5400246", "0.5399798", "0.5396713", "0.5395513", "0.53918743", "0.5388577", "0.5387868", "0.53857595", "0.53817266", "0.53790104", "0.5374662", "0.5367028", "0.53627807", "0.53613055", "0.53596115", "0.53549045", "0.53299", "0.53262687" ]
0.0
-1
Toone relationship, resolved on first access.
public Customer getCustomer() { String __key = this.customerId; if (customer__resolvedKey == null || customer__resolvedKey != __key) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } CustomerDao targetDao = daoSession.getCustomerDao(); Customer customerNew = targetDao.load(__key); synchronized (this) { customer = customerNew; customer__resolvedKey = __key; } } return customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void oneToOneNoBind() {\n\t\tSystem.out.println(\"============oneToOneNoBind=========\");\n\t\tUser u = new User();\n\t\tAddress a = new Address();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", a.all(), from(), u.table(), \",\",\n\t\t\t\ta.table(), \" where \", oneToOne(), u.ID(), \"=\", a.UID(), bind());\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tAddress address = user.getChildNode(Address.class);\n\t\t\tSystem.out.println(\"\\t\" + address.getAddressName());\n\t\t\tUser user2 = address.getParentNode(User.class);\n\t\t\tAssert.assertTrue(user == user2);\n\t\t}\n\t}", "@Override\n\t\tpublic Relationship getSingleRelationship(RelationshipType type, Direction dir) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tprotected Model fetchOne(int id) {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "private void checkMappedByOneToOne(DeployBeanPropertyAssocOne<?> prop) {\n String mappedBy = prop.getMappedBy();\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedOneToOne(prop, mappedBy, targetDesc);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyWithoutType(tableJoin, true, tableJoin.getTable());\n }\n\n if (mappedAssocOne.isPrimaryKeyJoin()) {\n // bi-directional PrimaryKeyJoin ...\n mappedAssocOne.setPrimaryKeyJoin(false);\n prop.setPrimaryKeyExport();\n addPrimaryKeyJoin(prop);\n }\n }", "Relationship createRelationship();", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "public T caseRelationshipDefinition(RelationshipDefinition object) {\n\t\treturn null;\n\t}", "@OneToOne(mappedBy = \"persona\")\n\tpublic Usuario getUsuario() {\n\t\treturn usuario;\n\t}", "@Test\n\tpublic void oneToOneWithBind() {\n\t\tSystem.out.println(\"============oneToOneWithBind=========\");\n\t\tUser u = new User();\n\t\tAddress a = new Address();\n\t\tu.configMapping(oneToOne(), u.ID(), a.UID(), bind(u.ADDRESS(), a.USER()));\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", a.all(), from(), u.table(), \",\",\n\t\t\t\ta.table(), \" where \", u.ID(), \"=\", a.UID());\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tAddress address = user.getAddress();\n\t\t\tSystem.out.println(\"\\t\" + address.getAddressName());\n\t\t\tUser user2 = address.getUser();\n\t\t\tAssert.assertTrue(user == user2);\n\t\t}\n\t}", "Optional<DomainRelationshipDTO> findOne(UUID id);", "@OneToOne(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)\n @JoinColumn(name = \"N_ID_DIRECCION\", nullable = false)\n public Direccion getDireccion() {\n return direccion;\n }", "@OneToOne(mappedBy = \"persona\")\n\tpublic Proveedor getProveedor() {\n\t\treturn proveedor;\n\t}", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "@Override\n\tpublic Pedido findOne(Long arg0) {\n\t\treturn null;\n\t}", "public boolean isReferrerAsOne() {\n return _referrerAsOne;\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "public Optional<E> one() {\n return Optional.ofNullable(queryOne());\n }", "public T caseAssocRelationshipDefinition(AssocRelationshipDefinition object) {\n\t\treturn null;\n\t}", "public final void mT__102() throws RecognitionException {\n try {\n int _type = T__102;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:72:8: ( 'association-one-to-one' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:72:10: 'association-one-to-one'\n {\n match(\"association-one-to-one\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n\tpublic void activateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.activateEntityRelationship(id);\n\t}", "@OneToOne(fetch = FetchType.EAGER)\n/* */ @PrimaryKeyJoinColumn\n/* 56 */ public VfeWorkflowsAdp getVfeWorkflowsAdp() { return this.vfeWorkflowsAdp; }", "@OneToOne\n @JoinColumn(name = \"ID_HOCSINH\")\n public HocSinh getHocSinh() {\n return hocSinh;\n }", "@Override\n\tpublic Object selectOne() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object selectOne() {\n\t\treturn null;\n\t}", "public void relate(HNode id, Object o);", "public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}", "public T caseRelationshipNavigation(RelationshipNavigation object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Personnes findOne(Long id) {\n\t\treturn null;\n\t}", "public static com.matisse.reflect.MtRelationship getGestionaRelationship(com.matisse.MtDatabase db) {\n return (com.matisse.reflect.MtRelationship)db.getCachedObject(gestionaCID);\n }", "@Override\n public SideDishEntity findOne(Long id) throws IllegalArgumentException {\n return null;\n }", "protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }", "public T caseRegularRelationshipDefinition(RegularRelationshipDefinition object) {\n\t\treturn null;\n\t}", "Corretor findOne(Long id);", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@ManyToOne\r\n\tpublic User getUser() {\r\n\t\treturn user;\r\n\t}", "@Override\n\tpublic Editore getOneById(int id) {\n\t\treturn null;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Fund findOne(Long id) {\n log.debug(\"Request to get Fund : {}\", id);\n Fund fund = fundRepository.findOneWithEagerRelationships(id);\n return fund;\n }", "public Relationship() {\r\n\t}", "@Override\r\n\tpublic OrderInfo selectOne() {\n\t\treturn null;\r\n\t}", "Optional<HousingAssociation> findOne(Long id);", "RelationalDependency createRelationalDependency();", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}", "@Override\n\tpublic Setting queryone() {\n\t\treturn SettingMapper.queryone();\n\t}", "@Override\n\tpublic Person findOne(Integer id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T queryJoinFirstObj(QueryBuilder mQueryBuilder) {\n\t\tmQueryBuilder.limitIndex = 1;\n\t\tmQueryBuilder.offsetIndex = 0;\n\t\tList<T> list = queryJoinObjs(mQueryBuilder);\n\t\tif (list.size() > 0) {\n\t\t\treturn list.get(0);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "public void onRelationshipChanged();", "public boolean isBizOneToOne() {\n return _bizOneToOne;\n }", "protected Object readResolve() {\n\t\ttry {\n\t\t\treturn fromLotus(resurrectAgent(), Agent.SCHEMA, getAncestorDatabase());\n\t\t} catch (NotesException e) {\n\t\t\tDominoUtils.handleException(e);\n\t\t\treturn this;\n\t\t}\n\t}", "public Jode single() {\n return single(false);\n }", "public Related() {\n }", "@Override\n\tpublic Entity SelectFirstOrDefault() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Users findOne(Users t) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Employee findOne(Long arg0) {\n\t\treturn null;\r\n\t}", "Relation createRelation();", "PIMBankObject getDomainObjectRef();", "@Override\n public LineEntity findOne(Long id) throws IllegalArgumentException {\n return null;\n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "@Override\n\tpublic HelloEntity findOne() {\n\t\tLong id = 1L;\n\t\tHelloEntity entity = entityManager.find(HelloEntity.class, id);\n\t\tSystem.out.println(\"findOne: \" + entity.getName());\n\t\treturn null;\n\t}", "public Object caseForeignKey(ForeignKey object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Optional<Producto> getOne(Producto entity) throws Exception {\n\t\treturn null;\r\n\t}", "public Project getProjectRelatedByProjectId() throws TorqueException\n {\n if (aProjectRelatedByProjectId == null && (this.projectId != 0))\n {\n aProjectRelatedByProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.projectId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.projectId);\n obj.addNewslettersRelatedByProjectId(this);\n */\n }\n return aProjectRelatedByProjectId;\n }", "@Cache(usage = NONSTRICT_READ_WRITE)\n @JoinColumn(name = \"assigned_to_userid\")\n @ManyToOne(cascade = PERSIST, fetch = LAZY)\n public TdUserAuth getAssignedToUser() {\n return assignedToUser;\n }", "@ManyToOne(fetch=FetchType.LAZY)\n\t@JoinColumn(name=\"Kunde_ID\", nullable=false)\n\tpublic Person getPerson1() {\n\t\treturn this.person1;\n\t}", "public A first() {\n return first;\n }", "@Override\r\n public BaseVO refer(BaseVO baseVO) {\n return null;\r\n }", "Relationship(final String id, final String type, final String target) {\r\n this.id = id;\r\n this.type = type;\r\n this.target = target;\r\n }", "public OBOProperty getDefaultRelationship() {\n return DEFAULT_REL; // genotype influences phenotype\n }", "@Cache(usage = NONSTRICT_READ_WRITE)\n @JoinColumn(name = \"user_id\")\n @ManyToOne(cascade = PERSIST, fetch = LAZY)\n public TdUserAuth getUser() {\n return user;\n }", "public AllOne() {\n \n }", "boolean isFirstJoinKit();", "public T caseIdentPrimary(IdentPrimary object)\n {\n return null;\n }", "public Project getProjectRelatedByRelProjectId() throws TorqueException\n {\n if (aProjectRelatedByRelProjectId == null && (this.relProjectId != 0))\n {\n aProjectRelatedByRelProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.relProjectId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.relProjectId);\n obj.addNewslettersRelatedByRelProjectId(this);\n */\n }\n return aProjectRelatedByRelProjectId;\n }", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "@Override\n @Transactional(readOnly = true)\n public ProductDTO findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOneWithEagerRelationships(id);\n return productMapper.toDto(product);\n }", "public void setRelatedTo(java.lang.String value);", "@Override\n\tpublic Editore getOneByName(String name) {\n\t\treturn null;\n\t}", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public abstract P toEntity();", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "public User user(User user) {\n return null;\n }", "@Override\n @Transactional(readOnly = true)\n public JourneyDTO findOne(Long id) {\n log.debug(\"Request to get Journey : {}\", id);\n Journey journey = journeyRepository.findOne(id);\n return journeyMapper.toDto(journey);\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "public CodeableConcept relationship() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_RELATIONSHIP);\n }", "Column referencedColumn();", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "EReference getRelationReference();", "public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}", "@Override\n public TransferRelation getTransferRelation() {\n return null;\n }", "@Override\r\n\tpublic Employee getOne(Long arg0) {\n\t\treturn null;\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<Avistamiento> findOne(Long id) {\n log.debug(\"Request to get Avistamiento : {}\", id);\n return avistamientoRepository.findOneWithEagerRelationships(id);\n }", "@Override\n\tpublic OrderEntity findOneById(Long id) {\n\t\treturn oder.getById(id);\n\t}", "public Jode first() {\n return children().first();\n }", "@Generated\n public Anexo getAnexo() {\n Long __key = this.anexoId;\n if (anexo__resolvedKey == null || !anexo__resolvedKey.equals(__key)) {\n __throwIfDetached();\n AnexoDao targetDao = daoSession.getAnexoDao();\n Anexo anexoNew = targetDao.load(__key);\n synchronized (this) {\n anexo = anexoNew;\n \tanexo__resolvedKey = __key;\n }\n }\n return anexo;\n }", "@Override\n\tpublic void orphan(DBSet db, boolean asPack) \n\t{\n\t\tdb.getAddressPersonMap().removeItem(this.recipient.getAddress());\n\t\tdb.getPersonAddressMap().removeItem(this.key, this.recipient.getAddress());\n\n\t\t//UPDATE REFERENCE OF CREATOR\n\t\t// not needthis.creator.setLastReference(this.reference, db);\t\t\n\t\t//UPDATE REFERENCE OF RECIPIENT\n\t\tthis.recipient.removeReference(db);\n\t}", "@Test(description = \"export interface with one single relationship\")\n public void exportWithOneRelationship()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestRelationship\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n data.create();\n\n inter.checkExport(inter.export());\n }", "public Long getRelateId() {\n return relateId;\n }", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "@Nullable\n public DBObject findOne() {\n return findOne(new BasicDBObject());\n }", "@Override\n\tpublic Account getSingleAccount() {\n\t\treturn null;\n\t}" ]
[ "0.58623207", "0.585731", "0.57357323", "0.5697646", "0.5671136", "0.5648345", "0.5610017", "0.5598566", "0.5568895", "0.5493019", "0.5484362", "0.5479117", "0.54718906", "0.5466727", "0.5384641", "0.53737485", "0.5369779", "0.5315032", "0.52853525", "0.5250344", "0.52415144", "0.5232094", "0.5209133", "0.519885", "0.519885", "0.51835203", "0.5142683", "0.5142554", "0.5125408", "0.5125227", "0.51121217", "0.5099931", "0.50336635", "0.50283325", "0.5020467", "0.50137866", "0.49981454", "0.49863753", "0.49795318", "0.49790236", "0.49783164", "0.4972365", "0.4966692", "0.49598625", "0.49494112", "0.49377623", "0.49355438", "0.49307498", "0.49290922", "0.491209", "0.49094936", "0.49071968", "0.49066916", "0.49058968", "0.48987454", "0.48954362", "0.48862728", "0.48837292", "0.4881652", "0.48799875", "0.48580945", "0.48535237", "0.48509318", "0.4850757", "0.4841243", "0.48368293", "0.4834796", "0.483008", "0.4818631", "0.4816851", "0.4816385", "0.48132032", "0.48105347", "0.48100957", "0.48078045", "0.4801875", "0.48015946", "0.47939143", "0.47836703", "0.4777571", "0.47743553", "0.47716275", "0.47703654", "0.47696543", "0.47692776", "0.47677213", "0.47673643", "0.47634917", "0.4761799", "0.47584653", "0.47528654", "0.4748671", "0.47462052", "0.47460383", "0.4745361", "0.47421172", "0.47415435", "0.47313306", "0.47299948", "0.4729982", "0.47283566" ]
0.0
-1
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<TaskOrder> getLineItems() { if (lineItems == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } TaskOrderDao targetDao = daoSession.getTaskOrderDao(); List<TaskOrder> lineItemsNew = targetDao._queryTask_LineItems(uuid); synchronized (this) { if(lineItems == null) { lineItems = lineItemsNew; } } } return lineItems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirectional(DeployBeanPropertyAssocMany<?> oneToMany) {\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(oneToMany);\n Class<?> owningType = oneToMany.getOwningType();\n if (!oneToMany.getCascadeInfo().isSave()) {\n // The property MUST have persist cascading so that inserts work.\n Class<?> targetType = oneToMany.getTargetType();\n String msg = \"Error on \" + oneToMany + \". @OneToMany MUST have \";\n msg += \"Cascade.PERSIST or Cascade.ALL because this is a unidirectional \";\n msg += \"relationship. That is, there is no property of type \" + owningType + \" on \" + targetType;\n throw new PersistenceException(msg);\n }\n\n // mark this property as unidirectional\n oneToMany.setUnidirectional();\n // specify table and table alias...\n BeanTable beanTable = beanTable(owningType);\n // define the TableJoin\n DeployTableJoin oneToManyJoin = oneToMany.getTableJoin();\n if (!oneToManyJoin.hasJoinColumns()) {\n throw new RuntimeException(\"No join columns found to satisfy the relationship \" + oneToMany);\n }\n createUnidirectional(targetDesc, owningType, beanTable, oneToManyJoin);\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "@Test\r\n public void testManyToOneAfterClosed(){\r\n EntityManager em = factory.createEntityManager();\r\n // create MyTestObject1 and a 2 with a reference from 1 to 2.\r\n MyTestObject4 o4 = new MyTestObject4();\r\n o4.setName4(\"04\");\r\n em.persist(o4);\r\n MyTestObject2 o2 = new MyTestObject2(\"ob2\", 123);\r\n o2.setMyTestObject4(o4);\r\n em.persist(o2);\r\n MyTestObject o1 = new MyTestObject();\r\n o1.setMyTestObject2(o2);\r\n em.persist(o1);\r\n em.getTransaction().commit();\r\n // close em\r\n em.close();\r\n\r\n // clean out the caches\r\n clearCaches();\r\n\r\n em = factory.createEntityManager();\r\n // get all MyTestObject2's to get them in 2nd level cache\r\n Query query = em.createQuery(\"select o from MyTestObject2 o\");\r\n List<MyTestObject2> resultList = query.getResultList();\r\n for (MyTestObject2 myTestObject2 : resultList) {\r\n System.out.println(myTestObject2);\r\n }\r\n // close em\r\n em.close();\r\n\r\n em = factory.createEntityManager();\r\n // now get 1's and touch the referenced 2's, ie: getMyTestObject2();\r\n query = em.createQuery(\"select o from MyTestObject o\");\r\n List<MyTestObject> resultList2 = query.getResultList();\r\n for (MyTestObject myTestObject : resultList2) {\r\n System.out.println(myTestObject.getMyTestObject2().getMyTestObject4());\r\n }\r\n em.close();\r\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "@Override\n\tpublic void activateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.activateEntityRelationship(id);\n\t}", "private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }", "Relationship createRelationship();", "@Override\n \tpublic void setIsPartOf(Reference isPartOf) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.isPartOf == isPartOf)\n \t\t\treturn;\n \t\t// remove from inverse relationship\n \t\tif (this.isPartOf != null) {\n \t\t\tthis.isPartOf.getContains().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.isPartOf = isPartOf;\n \t\tif (isPartOf == null)\n \t\t\treturn;\n \t\t// set inverse relationship\n \t\tisPartOf.getContains().add(this);\n \t}", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "@Override\n public void cascadePersist(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager, URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n roles.stream().forEach((role) -> {\n role.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n rdfEntityManager.persist(this, overrideContext);\n }", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "@Override\n public void storeToGraph(Set<GraphContext> graphContext) {\n\n graphContext.forEach(entry -> {\n try {\n LineageEntity fromEntity = entry.getFromVertex();\n LineageEntity toEntity = entry.getToVertex();\n\n upsertToGraph(fromEntity, toEntity, entry.getRelationshipType(), entry.getRelationshipGuid());\n } catch (Exception e) {\n log.error(VERTICES_AND_RELATIONSHIP_CREATION_EXCEPTION, e);\n }\n });\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public void setRelatedTo(java.lang.String value);", "@Override\n \t\t\t\tpublic void doAttachTo() {\n \n \t\t\t\t}", "@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\n }", "RelationalDependency createRelationalDependency();", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "void unsetFurtherRelations();", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "public void relate(HNode id, Object o);", "public void setRelationship( String relationship ) {\n this.relationship = relationship;\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }", "private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "@Test\n public void manyToOne_setJobExecution() {\n BatchStepExecution many = new BatchStepExecution();\n\n // init\n BatchJobExecution one = new BatchJobExecution();\n one.setId(ValueGenerator.getUniqueLong());\n many.setJobExecution(one);\n\n // make sure it is propagated properly\n assertThat(many.getJobExecution()).isEqualTo(one);\n\n // now set it to back to null\n many.setJobExecution(null);\n\n // make sure null is propagated properly\n assertThat(many.getJobExecution()).isNull();\n }", "public RelationshipManager createRelationshipManager() throws ServiceException {\r\n initialize(); \r\n return new RelationshipManager(multiDomainMetaService, multiDomainService);\r\n\t}", "public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "@Override\n public void updateBys() { updateLabelLists(getRTParent().getEntityTagTypes()); fillCommonRelationshipsMenu(); }", "protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "@Override\n\tpublic void deactivateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.deactivateEntityRelationship(id);\n\t}", "@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}", "public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}", "public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}", "public Long getRelateId() {\n return relateId;\n }", "@Test public void springProxies() {\n\t\tlong initialCount = targetRepo.count();\n\t\tContact contact = new Contact();\n\t\tcontact.setFirstname(\"Mickey\");\n\t\tcontact.setLastname(\"Mouse\");\n\t\ttargetRepo.save(contact);\n\t\tAssert.assertEquals(\n\t\t\tinitialCount+1,\n\t\t\ttargetRepo.count()\n\t\t);\n\t}", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "public interface Impl extends PersistenceFieldElement.Impl\n\t{\n\t\t/** Get the update action for this relationship element.\n\t\t * @return the update action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getUpdateAction ();\n\n\t\t/** Set the update action for this relationship element.\n\t\t * @param action - an integer indicating the update action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpdateAction (int action) throws ModelException;\n\n\t\t/** Get the delete action for this relationship element.\n\t\t * @return the delete action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getDeleteAction ();\n\n\t\t/** Set the delete action for this relationship element.\n\t\t * @param action - an integer indicating the delete action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setDeleteAction (int action) throws ModelException;\n\n\t\t/** Determines whether this relationship element should prefetch or not.\n\t\t * @return <code>true</code> if the relationship should prefetch, \n\t\t * <code>false</code> otherwise\n\t\t */\n\t\tpublic boolean isPrefetch ();\n\n\t\t/** Set whether this relationship element should prefetch or not.\n\t\t * @param flag - if <code>true</code>, the relationship is set to \n\t\t * prefetch; otherwise, it is not\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setPrefetch (boolean flag) throws ModelException;\n\n\t\t/** Get the lower cardinality bound for this relationship element.\n\t\t * @return the lower cardinality bound\n\t\t */\n\t\tpublic int getLowerBound ();\n\n\t\t/** Set the lower cardinality bound for this relationship element.\n\t\t * @param lowerBound - an integer indicating the lower cardinality bound\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setLowerBound (int lowerBound) throws ModelException;\n\n\t\t/** Get the upper cardinality bound for this relationship element. \n\t\t * Returns {@link java.lang.Integer#MAX_VALUE} for <code>n</code>\n\t\t * @return the upper cardinality bound\n\t\t */\n\t\tpublic int getUpperBound ();\n\n\t\t/** Set the upper cardinality bound for this relationship element.\n\t\t * @param upperBound - an integer indicating the upper cardinality bound\n\t\t * (use {@link java.lang.Integer#MAX_VALUE} for <code>n</code>)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpperBound (int upperBound) throws ModelException;\n\n\t\t/** Get the collection class (for example Set, List, Vector, etc.)\n\t\t * for this relationship element.\n\t\t * @return the collection class\n\t\t */\n\t\tpublic String getCollectionClass ();\n\n\t\t/** Set the collection class for this relationship element.\n\t\t * @param collectionClass - a string indicating the type of \n\t\t * collection (for example Set, List, Vector, etc.)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setCollectionClass (String collectionClass)\n\t\t\tthrows ModelException;\n\n\t\t/** Get the element class for this relationship element. If primitive \n\t\t * types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @return the element class\n\t\t */\n\t\tpublic String getElementClass ();\n\n\t\t/** Set the element class for this relationship element.\n\t\t * @param elementClass - a string indicating the type of elements \n\t\t * in the collection. If primitive types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setElementClass (String elementClass) throws ModelException;\n\n\t\t/** Get the relative name of the inverse relationship field for this \n\t\t * relationship element. In the case of two-way relationships, the two \n\t\t * relationship elements involved are inverses of each other. If this \n\t\t * relationship element does not participate in a two-way relationship, \n\t\t * this returns <code>null</code>. Note that it is possible to have \n\t\t * this method return a value, but because of the combination of \n\t\t * related class and lookup, there may be no corresponding \n\t\t * RelationshipElement which can be found.\n\t\t * @return the relative name of the inverse relationship element\n\t\t * @see #getInverseRelationship\n\t\t */\n\t\tpublic String getInverseRelationshipName ();\n\n\t\t/** Changes the inverse relationship element for this relationship \n\t\t * element. This method is invoked for both sides from \n\t\t * {@link RelationshipElement#setInverseRelationship} and should handle \n\t\t * the vetoable change events, property change events, and setting the \n\t\t * internal variable. \n\t\t * @param inverseRelationship - a relationship element to be used as \n\t\t * the inverse for this relationship element or <code>null</code> if \n\t\t * this relationship element does not participate in a two-way \n\t\t * relationship.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void changeInverseRelationship (\n\t\t\tRelationshipElement inverseRelationship) throws ModelException;\n\t}", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}", "public void attach(final E entity) {\n if (entity.getId() != null) return;\n entity.setId(this.getNextId());\n this.entities.add(entity);\n this.id2entity.put(entity.getId(), entity);\n }", "@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);", "EReference getRelationReference();", "private <T> Mono<T> processRelations(\n\t\t\tNeo4jPersistentEntity<?> neo4jPersistentEntity,\n\t\t\tPersistentPropertyAccessor<?> parentPropertyAccessor,\n\t\t\tboolean isParentObjectNew,\n\t\t\tNestedRelationshipProcessingStateMachine stateMachine,\n\t\t\tPropertyFilter includeProperty\n\t) {\n\n\t\tPropertyFilter.RelaxedPropertyPath startingPropertyPath = PropertyFilter.RelaxedPropertyPath.withRootType(neo4jPersistentEntity.getUnderlyingClass());\n\t\treturn processNestedRelations(neo4jPersistentEntity, parentPropertyAccessor, isParentObjectNew,\n\t\t\t\tstateMachine, includeProperty, startingPropertyPath);\n\t}", "public Relations() {\n relations = new ArrayList();\n }", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "private void attachEntity(Usuario entity) {\n }", "public boolean resolve(RelationInjectionManager injection);", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "public <A> void createUnidirectional(DeployBeanDescriptor<?> targetDesc, Class<A> targetType, BeanTable beanTable, DeployTableJoin oneToManyJoin) {\n\n // create the 'shadow' unidirectional property\n // which is put on the target descriptor\n DeployBeanPropertyAssocOne<A> unidirectional = new DeployBeanPropertyAssocOne<>(targetDesc, targetType);\n unidirectional.setUndirectionalShadow();\n unidirectional.setNullable(false);\n unidirectional.setDbRead(true);\n unidirectional.setDbInsertable(true);\n unidirectional.setDbUpdateable(false);\n unidirectional.setBeanTable(beanTable);\n unidirectional.setName(beanTable.getBaseTable());\n unidirectional.setJoinType(true);\n unidirectional.setJoinColumns(oneToManyJoin.columns(), true);\n\n targetDesc.setUnidirectional(unidirectional);\n }", "public void toEntity(){\n\n }", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "private void setupDependentEntities(final BwEvent val) throws CalFacadeException {\n if (val.getAlarms() != null) {\n for (BwAlarm alarm: val.getAlarms()) {\n alarm.setEvent(val);\n alarm.setOwnerHref(getUser().getPrincipalRef());\n }\n }\n }", "public void attach(final Object self)\n throws IllegalArgumentException, IllegalAccessException, NoSuchMethodException,\n InvocationTargetException {\n for (Class<?> currentClass = self.getClass(); currentClass != Object.class; ) {\n if (Proxy.class.isAssignableFrom(currentClass)) {\n currentClass = currentClass.getSuperclass();\n continue;\n }\n for (Field f : currentClass.getDeclaredFields()) {\n final String fieldName = f.getName();\n final Class<?> declaringClass = f.getDeclaringClass();\n\n if (OObjectEntitySerializer.isTransientField(declaringClass, fieldName)\n || OObjectEntitySerializer.isVersionField(declaringClass, fieldName)\n || OObjectEntitySerializer.isIdField(declaringClass, fieldName)) continue;\n\n Object value = OObjectEntitySerializer.getFieldValue(f, self);\n value = setValue(self, fieldName, value);\n OObjectEntitySerializer.setFieldValue(f, self, value);\n }\n currentClass = currentClass.getSuperclass();\n\n if (currentClass == null || currentClass.equals(ODocument.class))\n // POJO EXTENDS ODOCUMENT: SPECIAL CASE: AVOID TO CONSIDER\n // ODOCUMENT FIELDS\n currentClass = Object.class;\n }\n }", "public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "@Override\n public void updateRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n Iterator<Edge> edge = g.E().has(PROPERTY_KEY_RELATIONSHIP_GUID, lineageRelationship.getGuid());\n if (!edge.hasNext()) {\n log.debug(EDGE_GUID_NOT_FOUND_WHEN_UPDATE, lineageRelationship.getGuid());\n rollbackTransaction(g);\n return;\n }\n commit(graphFactory, g, this::addOrUpdatePropertiesEdge, g, lineageRelationship, PROPERTIES_UPDATE_EXCEPTION);\n }", "public void Alterar(TarefaEntity tarefaEntity){\n \n\t\tthis.entityManager.getTransaction().begin();\n\t\tthis.entityManager.merge(tarefaEntity);\n\t\tthis.entityManager.getTransaction().commit();\n\t}", "@Override\n\tpublic void orphan(DBSet db, boolean asPack) \n\t{\n\t\tdb.getAddressPersonMap().removeItem(this.recipient.getAddress());\n\t\tdb.getPersonAddressMap().removeItem(this.key, this.recipient.getAddress());\n\n\t\t//UPDATE REFERENCE OF CREATOR\n\t\t// not needthis.creator.setLastReference(this.reference, db);\t\t\n\t\t//UPDATE REFERENCE OF RECIPIENT\n\t\tthis.recipient.removeReference(db);\n\t}", "private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }", "DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );", "public void write(Entity localEntity, Object foreignEntity) {\n _propertyGateway.write(localEntity, foreignEntity);\n }", "public void atualizar(RelatorioDAO obj) {\n\t\t\n\t}", "@Override\n public void upsertRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n LineageEntity firstEnd = lineageRelationship.getSourceEntity();\n LineageEntity secondEnd = lineageRelationship.getTargetEntity();\n\n upsertToGraph(firstEnd, secondEnd, lineageRelationship.getTypeDefName(), lineageRelationship.getGuid());\n\n BiConsumer<GraphTraversalSource, LineageRelationship> addOrUpdatePropertiesEdge = this::addOrUpdatePropertiesEdge;\n commit(graphFactory, g, addOrUpdatePropertiesEdge, g, lineageRelationship,\n UNABLE_TO_ADD_PROPERTIES_ON_EDGE_FROM_RELATIONSHIP_WITH_TYPE +\n lineageRelationship.getTypeDefName() + AND_GUID + lineageRelationship.getGuid());\n }", "private void updateOrCreate(Resource subject, Property property, Object o) {\r\n\t\tStatement existingRelation = subject.getProperty(property);\r\n\t\tif (existingRelation != null)\r\n\t\t\tsubject.removeAll(property);\r\n\t\tsubject.addProperty(property, _write(o, true));\r\n\t}", "@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "@Test\n\tpublic void testSetValueMult1to1OverwriteInverse() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tuser.setPerson(jojo);\n\t\tAssert.assertSame(jojo, user.getPerson());\n\t\tAssert.assertSame(user, jojo.getUser());\n\t\tAssert.assertNull(martin.getUser());\n\n\t\t// test: relink martin to user (other way round)\n\t\tmartin.setUser(user);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}", "org.hl7.fhir.ObservationRelated addNewRelated();", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "public void entityReference(String name);", "@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }", "public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProjectId(((NumberKey) key).intValue());\n }", "public void addRelationship(String fm_field, String fm_symbol_str, boolean fm_typed,\n String to_field, String to_symbol_str, boolean to_typed, \n String style_str, boolean ignore_ns, boolean built_in, Bundles to_add) {\n String fm_pre = \"\", to_pre = \"\";\n\n // DEBUG\n // System.err.println(\"fm_field =\\\"\" + fm_field + \"\\\"\"); System.err.println(\"fm_symbol=\\\"\" + fm_symbol_str + \"\\\"\"); System.err.println(\"fm_typed =\\\"\" + fm_typed + \"\\\"\");\n // System.err.println(\"to_field =\\\"\" + to_field + \"\\\"\"); System.err.println(\"to_symbol=\\\"\" + to_symbol_str + \"\\\"\"); System.err.println(\"to_typed =\\\"\" + to_typed + \"\\\"\");\n\n if (fm_typed) fm_pre = fm_field + BundlesDT.DELIM;\n if (to_typed) to_pre = to_field + BundlesDT.DELIM;\n\n Utils.Symbol fm_symbol = Utils.parseSymbol(fm_symbol_str),\n to_symbol = Utils.parseSymbol(to_symbol_str);\n\n // Keep track of existing relationships, update the longer term ones\n String encoded_relationship_str = Utils.encToURL(fm_field) + BundlesDT.DELIM + Utils.encToURL(fm_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + fm_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(to_field) + BundlesDT.DELIM + Utils.encToURL(to_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + to_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(style_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + ignore_ns);\n if (active_relationships.contains(encoded_relationship_str) == false) active_relationships.add(encoded_relationship_str);\n if (built_in == false) updateRecentRelationships(encoded_relationship_str);\n // Is this an addition or from scratch?\n Bundles bundles; if (to_add == null) bundles = getRTParent().getRootBundles(); else bundles = to_add;\n BundlesG globals = bundles.getGlobals();\n // Go through the tablets\n Iterator<Tablet> it_tablet = bundles.tabletIterator();\n while (it_tablet.hasNext()) {\n Tablet tablet = it_tablet.next();\n\t// Check to see if this table will complete both blanks, if so, go through the bundles adding the edges to the graphs\n\tif (KeyMaker.tabletCompletesBlank(tablet,fm_field) && KeyMaker.tabletCompletesBlank(tablet,to_field)) {\n\t // Create the key makers\n\t KeyMaker fm_km = new KeyMaker(tablet,fm_field), to_km = new KeyMaker(tablet,to_field);\n\t // Go through the bundles\n\t Iterator<Bundle> it_bundle = tablet.bundleIterator();\n\t while (it_bundle.hasNext()) {\n\t Bundle bundle = it_bundle.next();\n\t // Create the combinator for the from and to keys\n\t String fm_keys[], to_keys[];\n // Transform the bundle to keys\n\t fm_keys = fm_km.stringKeys(bundle);\n\t to_keys = to_km.stringKeys(bundle);\n\t // Make the relationships\n if (fm_keys != null && fm_keys.length > 0 && to_keys != null && to_keys.length > 0) {\n for (int i=0;i<fm_keys.length;i++) for (int j=0;j<to_keys.length;j++) {\n\t // Check for not sets if the flag is specified\n if (ignore_ns && (fm_keys[i].equals(BundlesDT.NOTSET) || to_keys[j].equals(BundlesDT.NOTSET))) continue;\n\t\t// The key will be a combination of the header and the entity\n String fm_fin = fm_pre + fm_keys[i], to_fin = to_pre + to_keys[j];\n\t\t// If we're in retain mode only, make sure both nodes exist in the set\n\t\tif (retained_nodes != null && retained_nodes.size() > 0 && (retained_nodes.contains(fm_fin) == false || retained_nodes.contains(to_fin) == false)) continue;\n // Set the shape\n if (entity_to_shape.containsKey(fm_fin) == false) entity_to_shape.put(fm_fin, fm_symbol);\n\t\tif (entity_to_shape.containsKey(to_fin) == false) entity_to_shape.put(to_fin, to_symbol);\n // Create the initial world coordinate and transform as appropriate \n\t\tif (entity_to_wxy.containsKey(fm_fin) == false) { \n\t\t entity_to_wxy.put(fm_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n transform(fm_fin); }\n\t\tif (entity_to_wxy.containsKey(to_fin) == false) { \n\t\t entity_to_wxy.put(to_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n\t\t transform(to_fin); }\n // Add the reference back to this object\n graph.addNode(fm_fin); graph.addNode(to_fin);\n digraph.addNode(fm_fin); digraph.addNode(to_fin);\n // Set the weights equal to the number of bundles on the edge\n double previous_weight = graph.getConnectionWeight( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin)),\n di_previous_weight = digraph.getConnectionWeight(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin));\n // Check for infinite because the graph class returns infinite if two nodes are not connected\n if (Double.isInfinite( previous_weight)) previous_weight = 0.0;\n if (Double.isInfinite(di_previous_weight)) di_previous_weight = 0.0;\n // Finally, add them to both forms of the graphs\n\t \t graph.addNeighbor(fm_fin, to_fin, previous_weight + 1.0);\n graph.addNeighbor(to_fin, fm_fin, previous_weight + 1.0);\n\t\tdigraph.addNeighbor(fm_fin, to_fin, di_previous_weight + 1.0);\n // System.err.println(\"RTGraphPanel.addRelationship() : \\\"\" + fm_fin + \"\\\" => \\\"\" + to_fin + \"\\\": w=\" + (previous_weight+1.0) + \" | di_w=\" + (di_previous_weight+1.0));\n\t\t graph.addLinkReference( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin), bundle);\n\t\t graph.addLinkReference( graph.getEntityIndex(to_fin), graph.getEntityIndex(fm_fin), bundle);\n\t\tdigraph.addLinkReference(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), bundle);\n // Keep track of the link style\n digraph.addLinkStyle(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), style_str);\n\t }\n\t }\n }\n\t}\n }\n // Nullify the biconnected components\n graph_bcc = null;\n graph2p_bcc = null;\n cluster_cos = null;\n conductance = null;\n // Re-render\n getRTComponent().render();\n }", "private ManagedObject adopt(final EntityChangeTracker entityChangeTracker, final Object fetchedObject) {\n if(fetchedObject instanceof Persistable) {\n // an entity\n val entity = objectManager.adapt(fetchedObject);\n //fetchResultHandler.initializeEntityAfterFetched((Persistable) fetchedObject);\n entityChangeTracker.recognizeLoaded(entity);\n return entity;\n } else {\n // a value type\n return objectManager.adapt(fetchedObject);\n }\n }", "public Product getProductRelatedByRelProductId() throws TorqueException\n {\n if (aProductRelatedByRelProductId == null && (this.relProductId != 0))\n {\n aProductRelatedByRelProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.relProductId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Product obj = ProductPeer.retrieveByPK(this.relProductId);\n obj.addNewslettersRelatedByRelProductId(this);\n */\n }\n return aProductRelatedByRelProductId;\n }", "public void cascadePersist(\n final RDFEntityManager rdfEntityManager,\n final URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n\n cascadePersist(this, rdfEntityManager, overrideContext);\n }", "public void setPrefetch (boolean flag) throws ModelException\n\t{\n\t\tgetRelationshipImpl().setPrefetch(flag);\n\t}", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "boolean isSetFurtherRelations();", "@Override\n\t\tpublic Iterable<Relationship> getRelationships() {\n\t\t\treturn null;\n\t\t}", "public void setTransitive(boolean transitive) {\n this.transitive = transitive;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}" ]
[ "0.5940992", "0.5846662", "0.5735727", "0.56805676", "0.5641164", "0.55888176", "0.5570419", "0.5501383", "0.54784065", "0.54466534", "0.5418696", "0.5396701", "0.53331417", "0.53226095", "0.5310305", "0.53054404", "0.5237315", "0.51974344", "0.51927924", "0.5174846", "0.51537234", "0.51153296", "0.5099153", "0.5077924", "0.5050735", "0.5042748", "0.5031366", "0.50300485", "0.49703106", "0.4949668", "0.49451554", "0.49390346", "0.49304917", "0.49296305", "0.49257907", "0.49198925", "0.4910444", "0.49028018", "0.48798585", "0.48752034", "0.48663682", "0.48650208", "0.48627177", "0.48626253", "0.48623666", "0.48618895", "0.48478305", "0.48341453", "0.48223248", "0.48208374", "0.4804187", "0.47989953", "0.47922873", "0.47912595", "0.47882873", "0.47813505", "0.4780206", "0.4775683", "0.47683543", "0.47603428", "0.47591034", "0.47415432", "0.47382396", "0.47347328", "0.47330546", "0.47284415", "0.47282708", "0.47252798", "0.4724769", "0.47172844", "0.47138056", "0.4711082", "0.471068", "0.47047555", "0.469766", "0.46888712", "0.46852693", "0.46751168", "0.4674641", "0.46742517", "0.46738988", "0.4672436", "0.46706063", "0.46700436", "0.46645218", "0.46609133", "0.46597132", "0.46515563", "0.46490163", "0.46481368", "0.46449447", "0.46439457", "0.46390727", "0.4635257", "0.4629358", "0.4628625", "0.46285686", "0.4628081", "0.4626167", "0.4621428", "0.46179348" ]
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetLineItems() { lineItems = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void delIncomingRelations();", "@Override\n public void reset()\n {\n this.titles = new ABR();\n this.years = new ABR();\n this.votes = new ABR();\n this.director = new ABR();\n\n for(int i = 0; i < this.movies.length; i++)\n this.movies.set(i, null);\n }", "public void delRelations();", "public void unAssignFromAllGames() {\n for (Game game : getGames()) {\n game.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllGames(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }", "public abstract void resetQuery();", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "protected void reset() {\n\t\tadaptees.clear();\n\t}", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "private void reset() {\r\n\t\t\tref.set(new CountDownLatch(parties));\r\n\t\t}", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "public void clearPolymorphismTairObjectId() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "public void reset() {\n this.isExhausted = false;\n }", "private <T extends IEntity> void clearRetrieveValues(T entity) {\n Key pk = entity.getPrimaryKey();\n entity.clear();\n entity.setPrimaryKey(pk);\n }", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "GroupQueryBuilder reset();", "@Generated\n public synchronized void resetProveedores() {\n proveedores = null;\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "public synchronized void resetSales() {\n sales = null;\n }", "public void resetTracking() {\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.clear();\n\t\transac.reset();\n\t}", "public synchronized void clear() {\n _transient.clear();\n _persistent.clear();\n _references.clear();\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}", "void removeRelated(int i);", "public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }", "public void resetArboles()\r\n {\r\n this.arboles = null;\r\n }", "void reset()\n {\n reset(values);\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public void resetData() {\n user = new User();\n saveData();\n }", "public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }", "private void resetAll() {\n resetResources();\n resetStory();\n refresh();\n }", "private void clearOtherId() {\n \n otherId_ = 0;\n }", "public void unReset () {\n count = lastSave;\n }", "public void clear() {\n entityManager.clear();\n }", "@Override\n public Builder resetModel(boolean reallyReset) {\n super.resetModel(reallyReset);\n return this;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void reset() {\n context.reset();\n state = State.NAME;\n }", "public void reset() {\r\n properties.clear();\r\n }", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "public synchronized void resetCollections() {\n collections = null;\n }", "public void reset()\n\t{\n\t\tassociations = new Vector<Association>();\n\t\tif(hotspots != null)\n\t\t{\n\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t{\n\t\t\t\thotspots.elementAt(i).bound = null;\n\t\t\t\thotspots.elementAt(i).setHighlighted(false);\n\t\t\t}\n\t\t}\n\n\t\tif(movableObjects != null)\n\t\t{\n\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t{\n\t\t\t\tmovableObjects.elementAt(i).resetPos();\n\t\t\t\tmovableObjects.elementAt(i).bound = null;\n\t\t\t}\n\t\t}\n\t\tuser_responses=0;\n\t\tmov = null;\n\t\tstart = null;\n\t\tmpos = null;\n\t\tsetFeedback();\n\t\trepaint();\n\t}", "public void revertChanges()\n {\n // TODO: Find a good way to revert changes\n // reload patient\n HibernateUtil.currentSession().evict(_dietTreatment.getModel());\n PatientDAO dao = DAOFactory.getInstance().getPatientDAO();\n _patient.setModel(dao.findById(_patient.getPatientId(), false));\n }", "public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "public void resetTipoRecurso()\r\n {\r\n this.tipoRecurso = null;\r\n }", "public OccList reset()\n {\n size = 0;\n return this;\n }", "public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void clearBids(){\n this.bids.clear();\n setRequested();\n }", "public void rewind() throws DbException, TransactionAbortedException {\n child1.rewind();\n child2.rewind();\n this.leftMap.clear();\n this.rightMap.clear();\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "void resetData(ReadOnlyExpenseTracker newData) throws NoUserSelectedException;", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public void clearLinks(){\r\n varContextObject=null; \r\n varContextFields=null; \r\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "public static void clearPreviousArtists(){previousArtists.clear();}", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "public void resetListaId()\r\n {\r\n this.listaId = null;\r\n }", "public static void reset() {\n\t\tE_Location.THIS.reset();\n\t\tE_Resource.THIS.reset();\n\t\t\n\t\tT_Object.reset();\n\t\tT_Location.reset();\n\t\tT_Resource.reset();\n\t\t\n\t}", "@Override\n public void resetAllValues() {\n }", "void resetData(ReadOnlyAddressBook newData);", "public void resetAllIdCounts() {\n \t\tthis.userCounterIdCounter = 0;\n \t\tthis.questionIdCounter = 0;\n \t\tthis.answerIdCounter = 0;\n \t\tthis.commentIdCounter = 0;\n \t}", "public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}", "@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}", "protected void reset(Opportunities dto)\r\n\t{\r\n\t\tdto.setIdModified( false );\r\n\t\tdto.setSupplierIdModified( false );\r\n\t\tdto.setUniqueProductsModified( false );\r\n\t\tdto.setPortfolioModified( false );\r\n\t\tdto.setRecongnisationModified( false );\r\n\t\tdto.setKeyWordsModified( false );\r\n\t\tdto.setDateCreationModified( false );\r\n\t\tdto.setDateModificationModified( false );\r\n\t}", "public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public void reset(){\n star.clear();\n planet.clear();\n }", "public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }", "public void reset() {\n this.list.clear();\n }", "public void reset() {\n\t\t\twhile (requisitionItemGrid.getColumnCount() > 0)\n\t\t\t\trequisitionItemGrid.removeColumn(0);\n\n\t\t\tbmoRequisitionType = (BmoRequisitionType)requisitionTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoRequisitionType == null)\n\t\t\t\tbmoRequisitionType = bmoRequisition.getBmoRequisitionType();\n\n\t\t\t// Crea las columnas\n\t\t\tsetColumns();\n\n\t\t\tupdateAmount(id);\n\t\t\tdata.list();\n\t\t\trequisitionItemGrid.redraw();\n\t\t}", "public void reset() {\n resetData();\n postInvalidate();\n }", "private void resetIdsToFind()\r\n\t{\r\n\t\t/*\r\n\t\t * Reset all lists of given search items to empty lists, indicating full\r\n\t\t * search without filtering, if no search items are added.\r\n\t\t */\r\n\t\tsetSpectrumIdsTarget(new ArrayList<String>());\r\n\t}", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "public void clear() throws ChangeVetoException;", "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 }", "void reset(boolean preparingForUpwardPass) {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : getIncomingNeighborEdges(preparingForUpwardPass)) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected void ResetBaseObject() {\r\n\t\tsuper.ResetBaseObject();\r\n\r\n\t\t// new Base Object\r\n\t\tbaseEntity = new Chooseval();\r\n\r\n\t\t// new other Objects and set them into Base object\r\n\r\n\t\t// refresh Lists\r\n\t\tbaseEntityList = ChoosevalService.FindAll(\"id\", JPAOp.Asc);\r\n\t}", "public void reset() {\n super.reset();\n }", "private void resetReference(ThingTimeTriple triple)\r\n/* 221: */ {\r\n/* 222:184 */ this.previousTriples.put(triple.t.getType(), triple);\r\n/* 223:185 */ this.previousTriple = triple;\r\n/* 224: */ }", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void reset() {\n\t\tacceptAnswers = false;\n\t\tcurrentQuestion = null;\n\t\tsubmissions = null;\n\t}", "protected void reset() {\n leftSkier.reset();\n rightSkier.reset();\n }", "private void resetStory() {\n storyManager.resetAllStories();\n user.setCurrentStoryNode(0);\n }", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "public void resetParents() {\n businessentityController.setSelected(null);\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public final void resetFavorites() {\n Favorites favorites = Favorites.INSTANCE;\n favorites.clear();\n favorites.load(this.persistenceWrapper.readFavorites());\n }", "public void reset() {\n for (Vertex v : vertices) {\n v.path = false;\n v.visited = false;\n }\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n }" ]
[ "0.6747442", "0.6169837", "0.6006495", "0.58437485", "0.5640313", "0.55817", "0.5564541", "0.5501873", "0.54876965", "0.54569566", "0.54190093", "0.53815854", "0.53609395", "0.5352766", "0.5333638", "0.53250045", "0.5290257", "0.5286562", "0.52737796", "0.52573645", "0.52519107", "0.52476484", "0.5239696", "0.5219591", "0.5208653", "0.5184265", "0.5169561", "0.5112053", "0.5110626", "0.5099761", "0.5096511", "0.5092551", "0.50895804", "0.50866365", "0.5084509", "0.5078544", "0.507619", "0.50749385", "0.5074766", "0.5072249", "0.5069913", "0.50679666", "0.50582385", "0.5056956", "0.5046249", "0.5039399", "0.50385016", "0.5037913", "0.5034893", "0.50272775", "0.50208294", "0.50141346", "0.5012122", "0.5010166", "0.5008578", "0.5006726", "0.4999496", "0.4996147", "0.49885333", "0.49878687", "0.49824923", "0.49798775", "0.4979212", "0.49692723", "0.49653307", "0.4949815", "0.4948742", "0.49477637", "0.49429193", "0.49403128", "0.49378565", "0.49342307", "0.49320287", "0.4930644", "0.49302185", "0.4925291", "0.49236622", "0.49230573", "0.49228358", "0.49188924", "0.49173605", "0.49129903", "0.49128336", "0.49078217", "0.49051732", "0.4903055", "0.4901561", "0.49007806", "0.48991317", "0.48935378", "0.48930016", "0.48924303", "0.48910028", "0.48875353", "0.48863152", "0.48781186", "0.48729724", "0.48705822", "0.48693103", "0.486747", "0.48649892" ]
0.0
-1
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<Sale> getSales() { if (sales == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } SaleDao targetDao = daoSession.getSaleDao(); List<Sale> salesNew = targetDao._queryTask_Sales(uuid); synchronized (this) { if(sales == null) { sales = salesNew; } } } return sales; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirectional(DeployBeanPropertyAssocMany<?> oneToMany) {\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(oneToMany);\n Class<?> owningType = oneToMany.getOwningType();\n if (!oneToMany.getCascadeInfo().isSave()) {\n // The property MUST have persist cascading so that inserts work.\n Class<?> targetType = oneToMany.getTargetType();\n String msg = \"Error on \" + oneToMany + \". @OneToMany MUST have \";\n msg += \"Cascade.PERSIST or Cascade.ALL because this is a unidirectional \";\n msg += \"relationship. That is, there is no property of type \" + owningType + \" on \" + targetType;\n throw new PersistenceException(msg);\n }\n\n // mark this property as unidirectional\n oneToMany.setUnidirectional();\n // specify table and table alias...\n BeanTable beanTable = beanTable(owningType);\n // define the TableJoin\n DeployTableJoin oneToManyJoin = oneToMany.getTableJoin();\n if (!oneToManyJoin.hasJoinColumns()) {\n throw new RuntimeException(\"No join columns found to satisfy the relationship \" + oneToMany);\n }\n createUnidirectional(targetDesc, owningType, beanTable, oneToManyJoin);\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "@Test\r\n public void testManyToOneAfterClosed(){\r\n EntityManager em = factory.createEntityManager();\r\n // create MyTestObject1 and a 2 with a reference from 1 to 2.\r\n MyTestObject4 o4 = new MyTestObject4();\r\n o4.setName4(\"04\");\r\n em.persist(o4);\r\n MyTestObject2 o2 = new MyTestObject2(\"ob2\", 123);\r\n o2.setMyTestObject4(o4);\r\n em.persist(o2);\r\n MyTestObject o1 = new MyTestObject();\r\n o1.setMyTestObject2(o2);\r\n em.persist(o1);\r\n em.getTransaction().commit();\r\n // close em\r\n em.close();\r\n\r\n // clean out the caches\r\n clearCaches();\r\n\r\n em = factory.createEntityManager();\r\n // get all MyTestObject2's to get them in 2nd level cache\r\n Query query = em.createQuery(\"select o from MyTestObject2 o\");\r\n List<MyTestObject2> resultList = query.getResultList();\r\n for (MyTestObject2 myTestObject2 : resultList) {\r\n System.out.println(myTestObject2);\r\n }\r\n // close em\r\n em.close();\r\n\r\n em = factory.createEntityManager();\r\n // now get 1's and touch the referenced 2's, ie: getMyTestObject2();\r\n query = em.createQuery(\"select o from MyTestObject o\");\r\n List<MyTestObject> resultList2 = query.getResultList();\r\n for (MyTestObject myTestObject : resultList2) {\r\n System.out.println(myTestObject.getMyTestObject2().getMyTestObject4());\r\n }\r\n em.close();\r\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "@Override\n\tpublic void activateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.activateEntityRelationship(id);\n\t}", "private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }", "Relationship createRelationship();", "@Override\n \tpublic void setIsPartOf(Reference isPartOf) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.isPartOf == isPartOf)\n \t\t\treturn;\n \t\t// remove from inverse relationship\n \t\tif (this.isPartOf != null) {\n \t\t\tthis.isPartOf.getContains().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.isPartOf = isPartOf;\n \t\tif (isPartOf == null)\n \t\t\treturn;\n \t\t// set inverse relationship\n \t\tisPartOf.getContains().add(this);\n \t}", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "@Override\n public void cascadePersist(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager, URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n roles.stream().forEach((role) -> {\n role.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n rdfEntityManager.persist(this, overrideContext);\n }", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "@Override\n public void storeToGraph(Set<GraphContext> graphContext) {\n\n graphContext.forEach(entry -> {\n try {\n LineageEntity fromEntity = entry.getFromVertex();\n LineageEntity toEntity = entry.getToVertex();\n\n upsertToGraph(fromEntity, toEntity, entry.getRelationshipType(), entry.getRelationshipGuid());\n } catch (Exception e) {\n log.error(VERTICES_AND_RELATIONSHIP_CREATION_EXCEPTION, e);\n }\n });\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public void setRelatedTo(java.lang.String value);", "@Override\n \t\t\t\tpublic void doAttachTo() {\n \n \t\t\t\t}", "@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\n }", "RelationalDependency createRelationalDependency();", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "void unsetFurtherRelations();", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "public void relate(HNode id, Object o);", "public void setRelationship( String relationship ) {\n this.relationship = relationship;\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }", "private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "@Test\n public void manyToOne_setJobExecution() {\n BatchStepExecution many = new BatchStepExecution();\n\n // init\n BatchJobExecution one = new BatchJobExecution();\n one.setId(ValueGenerator.getUniqueLong());\n many.setJobExecution(one);\n\n // make sure it is propagated properly\n assertThat(many.getJobExecution()).isEqualTo(one);\n\n // now set it to back to null\n many.setJobExecution(null);\n\n // make sure null is propagated properly\n assertThat(many.getJobExecution()).isNull();\n }", "public RelationshipManager createRelationshipManager() throws ServiceException {\r\n initialize(); \r\n return new RelationshipManager(multiDomainMetaService, multiDomainService);\r\n\t}", "public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\n\tpublic void deactivateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.deactivateEntityRelationship(id);\n\t}", "@Override\n public void updateBys() { updateLabelLists(getRTParent().getEntityTagTypes()); fillCommonRelationshipsMenu(); }", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}", "public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}", "public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}", "public Long getRelateId() {\n return relateId;\n }", "@Test public void springProxies() {\n\t\tlong initialCount = targetRepo.count();\n\t\tContact contact = new Contact();\n\t\tcontact.setFirstname(\"Mickey\");\n\t\tcontact.setLastname(\"Mouse\");\n\t\ttargetRepo.save(contact);\n\t\tAssert.assertEquals(\n\t\t\tinitialCount+1,\n\t\t\ttargetRepo.count()\n\t\t);\n\t}", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "public interface Impl extends PersistenceFieldElement.Impl\n\t{\n\t\t/** Get the update action for this relationship element.\n\t\t * @return the update action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getUpdateAction ();\n\n\t\t/** Set the update action for this relationship element.\n\t\t * @param action - an integer indicating the update action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpdateAction (int action) throws ModelException;\n\n\t\t/** Get the delete action for this relationship element.\n\t\t * @return the delete action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getDeleteAction ();\n\n\t\t/** Set the delete action for this relationship element.\n\t\t * @param action - an integer indicating the delete action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setDeleteAction (int action) throws ModelException;\n\n\t\t/** Determines whether this relationship element should prefetch or not.\n\t\t * @return <code>true</code> if the relationship should prefetch, \n\t\t * <code>false</code> otherwise\n\t\t */\n\t\tpublic boolean isPrefetch ();\n\n\t\t/** Set whether this relationship element should prefetch or not.\n\t\t * @param flag - if <code>true</code>, the relationship is set to \n\t\t * prefetch; otherwise, it is not\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setPrefetch (boolean flag) throws ModelException;\n\n\t\t/** Get the lower cardinality bound for this relationship element.\n\t\t * @return the lower cardinality bound\n\t\t */\n\t\tpublic int getLowerBound ();\n\n\t\t/** Set the lower cardinality bound for this relationship element.\n\t\t * @param lowerBound - an integer indicating the lower cardinality bound\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setLowerBound (int lowerBound) throws ModelException;\n\n\t\t/** Get the upper cardinality bound for this relationship element. \n\t\t * Returns {@link java.lang.Integer#MAX_VALUE} for <code>n</code>\n\t\t * @return the upper cardinality bound\n\t\t */\n\t\tpublic int getUpperBound ();\n\n\t\t/** Set the upper cardinality bound for this relationship element.\n\t\t * @param upperBound - an integer indicating the upper cardinality bound\n\t\t * (use {@link java.lang.Integer#MAX_VALUE} for <code>n</code>)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpperBound (int upperBound) throws ModelException;\n\n\t\t/** Get the collection class (for example Set, List, Vector, etc.)\n\t\t * for this relationship element.\n\t\t * @return the collection class\n\t\t */\n\t\tpublic String getCollectionClass ();\n\n\t\t/** Set the collection class for this relationship element.\n\t\t * @param collectionClass - a string indicating the type of \n\t\t * collection (for example Set, List, Vector, etc.)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setCollectionClass (String collectionClass)\n\t\t\tthrows ModelException;\n\n\t\t/** Get the element class for this relationship element. If primitive \n\t\t * types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @return the element class\n\t\t */\n\t\tpublic String getElementClass ();\n\n\t\t/** Set the element class for this relationship element.\n\t\t * @param elementClass - a string indicating the type of elements \n\t\t * in the collection. If primitive types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setElementClass (String elementClass) throws ModelException;\n\n\t\t/** Get the relative name of the inverse relationship field for this \n\t\t * relationship element. In the case of two-way relationships, the two \n\t\t * relationship elements involved are inverses of each other. If this \n\t\t * relationship element does not participate in a two-way relationship, \n\t\t * this returns <code>null</code>. Note that it is possible to have \n\t\t * this method return a value, but because of the combination of \n\t\t * related class and lookup, there may be no corresponding \n\t\t * RelationshipElement which can be found.\n\t\t * @return the relative name of the inverse relationship element\n\t\t * @see #getInverseRelationship\n\t\t */\n\t\tpublic String getInverseRelationshipName ();\n\n\t\t/** Changes the inverse relationship element for this relationship \n\t\t * element. This method is invoked for both sides from \n\t\t * {@link RelationshipElement#setInverseRelationship} and should handle \n\t\t * the vetoable change events, property change events, and setting the \n\t\t * internal variable. \n\t\t * @param inverseRelationship - a relationship element to be used as \n\t\t * the inverse for this relationship element or <code>null</code> if \n\t\t * this relationship element does not participate in a two-way \n\t\t * relationship.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void changeInverseRelationship (\n\t\t\tRelationshipElement inverseRelationship) throws ModelException;\n\t}", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}", "public void attach(final E entity) {\n if (entity.getId() != null) return;\n entity.setId(this.getNextId());\n this.entities.add(entity);\n this.id2entity.put(entity.getId(), entity);\n }", "@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);", "EReference getRelationReference();", "private <T> Mono<T> processRelations(\n\t\t\tNeo4jPersistentEntity<?> neo4jPersistentEntity,\n\t\t\tPersistentPropertyAccessor<?> parentPropertyAccessor,\n\t\t\tboolean isParentObjectNew,\n\t\t\tNestedRelationshipProcessingStateMachine stateMachine,\n\t\t\tPropertyFilter includeProperty\n\t) {\n\n\t\tPropertyFilter.RelaxedPropertyPath startingPropertyPath = PropertyFilter.RelaxedPropertyPath.withRootType(neo4jPersistentEntity.getUnderlyingClass());\n\t\treturn processNestedRelations(neo4jPersistentEntity, parentPropertyAccessor, isParentObjectNew,\n\t\t\t\tstateMachine, includeProperty, startingPropertyPath);\n\t}", "public Relations() {\n relations = new ArrayList();\n }", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "private void attachEntity(Usuario entity) {\n }", "public boolean resolve(RelationInjectionManager injection);", "public <A> void createUnidirectional(DeployBeanDescriptor<?> targetDesc, Class<A> targetType, BeanTable beanTable, DeployTableJoin oneToManyJoin) {\n\n // create the 'shadow' unidirectional property\n // which is put on the target descriptor\n DeployBeanPropertyAssocOne<A> unidirectional = new DeployBeanPropertyAssocOne<>(targetDesc, targetType);\n unidirectional.setUndirectionalShadow();\n unidirectional.setNullable(false);\n unidirectional.setDbRead(true);\n unidirectional.setDbInsertable(true);\n unidirectional.setDbUpdateable(false);\n unidirectional.setBeanTable(beanTable);\n unidirectional.setName(beanTable.getBaseTable());\n unidirectional.setJoinType(true);\n unidirectional.setJoinColumns(oneToManyJoin.columns(), true);\n\n targetDesc.setUnidirectional(unidirectional);\n }", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "public void toEntity(){\n\n }", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "private void setupDependentEntities(final BwEvent val) throws CalFacadeException {\n if (val.getAlarms() != null) {\n for (BwAlarm alarm: val.getAlarms()) {\n alarm.setEvent(val);\n alarm.setOwnerHref(getUser().getPrincipalRef());\n }\n }\n }", "public void attach(final Object self)\n throws IllegalArgumentException, IllegalAccessException, NoSuchMethodException,\n InvocationTargetException {\n for (Class<?> currentClass = self.getClass(); currentClass != Object.class; ) {\n if (Proxy.class.isAssignableFrom(currentClass)) {\n currentClass = currentClass.getSuperclass();\n continue;\n }\n for (Field f : currentClass.getDeclaredFields()) {\n final String fieldName = f.getName();\n final Class<?> declaringClass = f.getDeclaringClass();\n\n if (OObjectEntitySerializer.isTransientField(declaringClass, fieldName)\n || OObjectEntitySerializer.isVersionField(declaringClass, fieldName)\n || OObjectEntitySerializer.isIdField(declaringClass, fieldName)) continue;\n\n Object value = OObjectEntitySerializer.getFieldValue(f, self);\n value = setValue(self, fieldName, value);\n OObjectEntitySerializer.setFieldValue(f, self, value);\n }\n currentClass = currentClass.getSuperclass();\n\n if (currentClass == null || currentClass.equals(ODocument.class))\n // POJO EXTENDS ODOCUMENT: SPECIAL CASE: AVOID TO CONSIDER\n // ODOCUMENT FIELDS\n currentClass = Object.class;\n }\n }", "public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "@Override\n public void updateRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n Iterator<Edge> edge = g.E().has(PROPERTY_KEY_RELATIONSHIP_GUID, lineageRelationship.getGuid());\n if (!edge.hasNext()) {\n log.debug(EDGE_GUID_NOT_FOUND_WHEN_UPDATE, lineageRelationship.getGuid());\n rollbackTransaction(g);\n return;\n }\n commit(graphFactory, g, this::addOrUpdatePropertiesEdge, g, lineageRelationship, PROPERTIES_UPDATE_EXCEPTION);\n }", "public void Alterar(TarefaEntity tarefaEntity){\n \n\t\tthis.entityManager.getTransaction().begin();\n\t\tthis.entityManager.merge(tarefaEntity);\n\t\tthis.entityManager.getTransaction().commit();\n\t}", "@Override\n\tpublic void orphan(DBSet db, boolean asPack) \n\t{\n\t\tdb.getAddressPersonMap().removeItem(this.recipient.getAddress());\n\t\tdb.getPersonAddressMap().removeItem(this.key, this.recipient.getAddress());\n\n\t\t//UPDATE REFERENCE OF CREATOR\n\t\t// not needthis.creator.setLastReference(this.reference, db);\t\t\n\t\t//UPDATE REFERENCE OF RECIPIENT\n\t\tthis.recipient.removeReference(db);\n\t}", "DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );", "private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }", "public void write(Entity localEntity, Object foreignEntity) {\n _propertyGateway.write(localEntity, foreignEntity);\n }", "public void atualizar(RelatorioDAO obj) {\n\t\t\n\t}", "@Override\n public void upsertRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n LineageEntity firstEnd = lineageRelationship.getSourceEntity();\n LineageEntity secondEnd = lineageRelationship.getTargetEntity();\n\n upsertToGraph(firstEnd, secondEnd, lineageRelationship.getTypeDefName(), lineageRelationship.getGuid());\n\n BiConsumer<GraphTraversalSource, LineageRelationship> addOrUpdatePropertiesEdge = this::addOrUpdatePropertiesEdge;\n commit(graphFactory, g, addOrUpdatePropertiesEdge, g, lineageRelationship,\n UNABLE_TO_ADD_PROPERTIES_ON_EDGE_FROM_RELATIONSHIP_WITH_TYPE +\n lineageRelationship.getTypeDefName() + AND_GUID + lineageRelationship.getGuid());\n }", "private void updateOrCreate(Resource subject, Property property, Object o) {\r\n\t\tStatement existingRelation = subject.getProperty(property);\r\n\t\tif (existingRelation != null)\r\n\t\t\tsubject.removeAll(property);\r\n\t\tsubject.addProperty(property, _write(o, true));\r\n\t}", "@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "@Test\n\tpublic void testSetValueMult1to1OverwriteInverse() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tuser.setPerson(jojo);\n\t\tAssert.assertSame(jojo, user.getPerson());\n\t\tAssert.assertSame(user, jojo.getUser());\n\t\tAssert.assertNull(martin.getUser());\n\n\t\t// test: relink martin to user (other way round)\n\t\tmartin.setUser(user);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}", "org.hl7.fhir.ObservationRelated addNewRelated();", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "public void entityReference(String name);", "public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProjectId(((NumberKey) key).intValue());\n }", "@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }", "public void addRelationship(String fm_field, String fm_symbol_str, boolean fm_typed,\n String to_field, String to_symbol_str, boolean to_typed, \n String style_str, boolean ignore_ns, boolean built_in, Bundles to_add) {\n String fm_pre = \"\", to_pre = \"\";\n\n // DEBUG\n // System.err.println(\"fm_field =\\\"\" + fm_field + \"\\\"\"); System.err.println(\"fm_symbol=\\\"\" + fm_symbol_str + \"\\\"\"); System.err.println(\"fm_typed =\\\"\" + fm_typed + \"\\\"\");\n // System.err.println(\"to_field =\\\"\" + to_field + \"\\\"\"); System.err.println(\"to_symbol=\\\"\" + to_symbol_str + \"\\\"\"); System.err.println(\"to_typed =\\\"\" + to_typed + \"\\\"\");\n\n if (fm_typed) fm_pre = fm_field + BundlesDT.DELIM;\n if (to_typed) to_pre = to_field + BundlesDT.DELIM;\n\n Utils.Symbol fm_symbol = Utils.parseSymbol(fm_symbol_str),\n to_symbol = Utils.parseSymbol(to_symbol_str);\n\n // Keep track of existing relationships, update the longer term ones\n String encoded_relationship_str = Utils.encToURL(fm_field) + BundlesDT.DELIM + Utils.encToURL(fm_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + fm_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(to_field) + BundlesDT.DELIM + Utils.encToURL(to_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + to_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(style_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + ignore_ns);\n if (active_relationships.contains(encoded_relationship_str) == false) active_relationships.add(encoded_relationship_str);\n if (built_in == false) updateRecentRelationships(encoded_relationship_str);\n // Is this an addition or from scratch?\n Bundles bundles; if (to_add == null) bundles = getRTParent().getRootBundles(); else bundles = to_add;\n BundlesG globals = bundles.getGlobals();\n // Go through the tablets\n Iterator<Tablet> it_tablet = bundles.tabletIterator();\n while (it_tablet.hasNext()) {\n Tablet tablet = it_tablet.next();\n\t// Check to see if this table will complete both blanks, if so, go through the bundles adding the edges to the graphs\n\tif (KeyMaker.tabletCompletesBlank(tablet,fm_field) && KeyMaker.tabletCompletesBlank(tablet,to_field)) {\n\t // Create the key makers\n\t KeyMaker fm_km = new KeyMaker(tablet,fm_field), to_km = new KeyMaker(tablet,to_field);\n\t // Go through the bundles\n\t Iterator<Bundle> it_bundle = tablet.bundleIterator();\n\t while (it_bundle.hasNext()) {\n\t Bundle bundle = it_bundle.next();\n\t // Create the combinator for the from and to keys\n\t String fm_keys[], to_keys[];\n // Transform the bundle to keys\n\t fm_keys = fm_km.stringKeys(bundle);\n\t to_keys = to_km.stringKeys(bundle);\n\t // Make the relationships\n if (fm_keys != null && fm_keys.length > 0 && to_keys != null && to_keys.length > 0) {\n for (int i=0;i<fm_keys.length;i++) for (int j=0;j<to_keys.length;j++) {\n\t // Check for not sets if the flag is specified\n if (ignore_ns && (fm_keys[i].equals(BundlesDT.NOTSET) || to_keys[j].equals(BundlesDT.NOTSET))) continue;\n\t\t// The key will be a combination of the header and the entity\n String fm_fin = fm_pre + fm_keys[i], to_fin = to_pre + to_keys[j];\n\t\t// If we're in retain mode only, make sure both nodes exist in the set\n\t\tif (retained_nodes != null && retained_nodes.size() > 0 && (retained_nodes.contains(fm_fin) == false || retained_nodes.contains(to_fin) == false)) continue;\n // Set the shape\n if (entity_to_shape.containsKey(fm_fin) == false) entity_to_shape.put(fm_fin, fm_symbol);\n\t\tif (entity_to_shape.containsKey(to_fin) == false) entity_to_shape.put(to_fin, to_symbol);\n // Create the initial world coordinate and transform as appropriate \n\t\tif (entity_to_wxy.containsKey(fm_fin) == false) { \n\t\t entity_to_wxy.put(fm_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n transform(fm_fin); }\n\t\tif (entity_to_wxy.containsKey(to_fin) == false) { \n\t\t entity_to_wxy.put(to_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n\t\t transform(to_fin); }\n // Add the reference back to this object\n graph.addNode(fm_fin); graph.addNode(to_fin);\n digraph.addNode(fm_fin); digraph.addNode(to_fin);\n // Set the weights equal to the number of bundles on the edge\n double previous_weight = graph.getConnectionWeight( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin)),\n di_previous_weight = digraph.getConnectionWeight(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin));\n // Check for infinite because the graph class returns infinite if two nodes are not connected\n if (Double.isInfinite( previous_weight)) previous_weight = 0.0;\n if (Double.isInfinite(di_previous_weight)) di_previous_weight = 0.0;\n // Finally, add them to both forms of the graphs\n\t \t graph.addNeighbor(fm_fin, to_fin, previous_weight + 1.0);\n graph.addNeighbor(to_fin, fm_fin, previous_weight + 1.0);\n\t\tdigraph.addNeighbor(fm_fin, to_fin, di_previous_weight + 1.0);\n // System.err.println(\"RTGraphPanel.addRelationship() : \\\"\" + fm_fin + \"\\\" => \\\"\" + to_fin + \"\\\": w=\" + (previous_weight+1.0) + \" | di_w=\" + (di_previous_weight+1.0));\n\t\t graph.addLinkReference( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin), bundle);\n\t\t graph.addLinkReference( graph.getEntityIndex(to_fin), graph.getEntityIndex(fm_fin), bundle);\n\t\tdigraph.addLinkReference(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), bundle);\n // Keep track of the link style\n digraph.addLinkStyle(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), style_str);\n\t }\n\t }\n }\n\t}\n }\n // Nullify the biconnected components\n graph_bcc = null;\n graph2p_bcc = null;\n cluster_cos = null;\n conductance = null;\n // Re-render\n getRTComponent().render();\n }", "private ManagedObject adopt(final EntityChangeTracker entityChangeTracker, final Object fetchedObject) {\n if(fetchedObject instanceof Persistable) {\n // an entity\n val entity = objectManager.adapt(fetchedObject);\n //fetchResultHandler.initializeEntityAfterFetched((Persistable) fetchedObject);\n entityChangeTracker.recognizeLoaded(entity);\n return entity;\n } else {\n // a value type\n return objectManager.adapt(fetchedObject);\n }\n }", "public Product getProductRelatedByRelProductId() throws TorqueException\n {\n if (aProductRelatedByRelProductId == null && (this.relProductId != 0))\n {\n aProductRelatedByRelProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.relProductId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Product obj = ProductPeer.retrieveByPK(this.relProductId);\n obj.addNewslettersRelatedByRelProductId(this);\n */\n }\n return aProductRelatedByRelProductId;\n }", "public void cascadePersist(\n final RDFEntityManager rdfEntityManager,\n final URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n\n cascadePersist(this, rdfEntityManager, overrideContext);\n }", "public void setPrefetch (boolean flag) throws ModelException\n\t{\n\t\tgetRelationshipImpl().setPrefetch(flag);\n\t}", "@Override\n\t\tpublic Iterable<Relationship> getRelationships() {\n\t\t\treturn null;\n\t\t}", "boolean isSetFurtherRelations();", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "public void setTransitive(boolean transitive) {\n this.transitive = transitive;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}" ]
[ "0.59397984", "0.5845948", "0.5736148", "0.5680497", "0.56417286", "0.5588755", "0.5571661", "0.55035615", "0.54793805", "0.544738", "0.5419627", "0.5396332", "0.5333803", "0.53217745", "0.53104186", "0.530557", "0.5236446", "0.5197751", "0.5191205", "0.5176093", "0.5154204", "0.5116559", "0.50976425", "0.5077805", "0.5051285", "0.5042512", "0.50318086", "0.503006", "0.4970159", "0.49513406", "0.49458238", "0.49374902", "0.49302632", "0.49300957", "0.4923973", "0.4920859", "0.491096", "0.49027047", "0.48796374", "0.48776242", "0.48649716", "0.48647428", "0.4864202", "0.48636895", "0.48621398", "0.48607737", "0.48487708", "0.4834175", "0.48231253", "0.48205844", "0.48034057", "0.4797626", "0.47938275", "0.47929052", "0.47860247", "0.47807708", "0.47797635", "0.4774839", "0.47693846", "0.47606766", "0.47580177", "0.47398502", "0.47377217", "0.47340387", "0.4733525", "0.47293594", "0.47273758", "0.47241476", "0.47215593", "0.47164893", "0.47128466", "0.47104353", "0.47100976", "0.4704355", "0.46978545", "0.46881557", "0.46854737", "0.46744895", "0.4674403", "0.46742412", "0.46734455", "0.46723565", "0.46694508", "0.46693015", "0.46642566", "0.46610615", "0.4660228", "0.46511516", "0.4648726", "0.46484432", "0.4645184", "0.4644304", "0.46392512", "0.46354312", "0.4629346", "0.4628793", "0.46280634", "0.46268883", "0.4626546", "0.46211424", "0.46187168" ]
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetSales() { sales = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void delIncomingRelations();", "@Override\n public void reset()\n {\n this.titles = new ABR();\n this.years = new ABR();\n this.votes = new ABR();\n this.director = new ABR();\n\n for(int i = 0; i < this.movies.length; i++)\n this.movies.set(i, null);\n }", "public void delRelations();", "public void unAssignFromAllGames() {\n for (Game game : getGames()) {\n game.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllGames(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }", "public abstract void resetQuery();", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "protected void reset() {\n\t\tadaptees.clear();\n\t}", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "private void reset() {\r\n\t\t\tref.set(new CountDownLatch(parties));\r\n\t\t}", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "public void clearPolymorphismTairObjectId() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "public void reset() {\n this.isExhausted = false;\n }", "private <T extends IEntity> void clearRetrieveValues(T entity) {\n Key pk = entity.getPrimaryKey();\n entity.clear();\n entity.setPrimaryKey(pk);\n }", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "GroupQueryBuilder reset();", "@Generated\n public synchronized void resetProveedores() {\n proveedores = null;\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "public void resetTracking() {\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.clear();\n\t\transac.reset();\n\t}", "public synchronized void clear() {\n _transient.clear();\n _persistent.clear();\n _references.clear();\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}", "void removeRelated(int i);", "public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }", "public void resetArboles()\r\n {\r\n this.arboles = null;\r\n }", "void reset()\n {\n reset(values);\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }", "public void resetData() {\n user = new User();\n saveData();\n }", "private void resetAll() {\n resetResources();\n resetStory();\n refresh();\n }", "private void clearOtherId() {\n \n otherId_ = 0;\n }", "public void unReset () {\n count = lastSave;\n }", "public void clear() {\n entityManager.clear();\n }", "@Override\n public Builder resetModel(boolean reallyReset) {\n super.resetModel(reallyReset);\n return this;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void reset() {\n context.reset();\n state = State.NAME;\n }", "public void reset() {\r\n properties.clear();\r\n }", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "public synchronized void resetCollections() {\n collections = null;\n }", "public void reset()\n\t{\n\t\tassociations = new Vector<Association>();\n\t\tif(hotspots != null)\n\t\t{\n\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t{\n\t\t\t\thotspots.elementAt(i).bound = null;\n\t\t\t\thotspots.elementAt(i).setHighlighted(false);\n\t\t\t}\n\t\t}\n\n\t\tif(movableObjects != null)\n\t\t{\n\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t{\n\t\t\t\tmovableObjects.elementAt(i).resetPos();\n\t\t\t\tmovableObjects.elementAt(i).bound = null;\n\t\t\t}\n\t\t}\n\t\tuser_responses=0;\n\t\tmov = null;\n\t\tstart = null;\n\t\tmpos = null;\n\t\tsetFeedback();\n\t\trepaint();\n\t}", "public void revertChanges()\n {\n // TODO: Find a good way to revert changes\n // reload patient\n HibernateUtil.currentSession().evict(_dietTreatment.getModel());\n PatientDAO dao = DAOFactory.getInstance().getPatientDAO();\n _patient.setModel(dao.findById(_patient.getPatientId(), false));\n }", "public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "public void resetTipoRecurso()\r\n {\r\n this.tipoRecurso = null;\r\n }", "public OccList reset()\n {\n size = 0;\n return this;\n }", "public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void clearBids(){\n this.bids.clear();\n setRequested();\n }", "public void rewind() throws DbException, TransactionAbortedException {\n child1.rewind();\n child2.rewind();\n this.leftMap.clear();\n this.rightMap.clear();\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "void resetData(ReadOnlyExpenseTracker newData) throws NoUserSelectedException;", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public void clearLinks(){\r\n varContextObject=null; \r\n varContextFields=null; \r\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public static void clearPreviousArtists(){previousArtists.clear();}", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "public void resetListaId()\r\n {\r\n this.listaId = null;\r\n }", "public static void reset() {\n\t\tE_Location.THIS.reset();\n\t\tE_Resource.THIS.reset();\n\t\t\n\t\tT_Object.reset();\n\t\tT_Location.reset();\n\t\tT_Resource.reset();\n\t\t\n\t}", "@Override\n public void resetAllValues() {\n }", "void resetData(ReadOnlyAddressBook newData);", "public void resetAllIdCounts() {\n \t\tthis.userCounterIdCounter = 0;\n \t\tthis.questionIdCounter = 0;\n \t\tthis.answerIdCounter = 0;\n \t\tthis.commentIdCounter = 0;\n \t}", "public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}", "@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}", "protected void reset(Opportunities dto)\r\n\t{\r\n\t\tdto.setIdModified( false );\r\n\t\tdto.setSupplierIdModified( false );\r\n\t\tdto.setUniqueProductsModified( false );\r\n\t\tdto.setPortfolioModified( false );\r\n\t\tdto.setRecongnisationModified( false );\r\n\t\tdto.setKeyWordsModified( false );\r\n\t\tdto.setDateCreationModified( false );\r\n\t\tdto.setDateModificationModified( false );\r\n\t}", "public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public void reset(){\n star.clear();\n planet.clear();\n }", "public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }", "public void reset() {\n this.list.clear();\n }", "public void reset() {\n\t\t\twhile (requisitionItemGrid.getColumnCount() > 0)\n\t\t\t\trequisitionItemGrid.removeColumn(0);\n\n\t\t\tbmoRequisitionType = (BmoRequisitionType)requisitionTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoRequisitionType == null)\n\t\t\t\tbmoRequisitionType = bmoRequisition.getBmoRequisitionType();\n\n\t\t\t// Crea las columnas\n\t\t\tsetColumns();\n\n\t\t\tupdateAmount(id);\n\t\t\tdata.list();\n\t\t\trequisitionItemGrid.redraw();\n\t\t}", "public void reset() {\n resetData();\n postInvalidate();\n }", "private void resetIdsToFind()\r\n\t{\r\n\t\t/*\r\n\t\t * Reset all lists of given search items to empty lists, indicating full\r\n\t\t * search without filtering, if no search items are added.\r\n\t\t */\r\n\t\tsetSpectrumIdsTarget(new ArrayList<String>());\r\n\t}", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "public void clear() throws ChangeVetoException;", "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 }", "void reset(boolean preparingForUpwardPass) {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : getIncomingNeighborEdges(preparingForUpwardPass)) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected void ResetBaseObject() {\r\n\t\tsuper.ResetBaseObject();\r\n\r\n\t\t// new Base Object\r\n\t\tbaseEntity = new Chooseval();\r\n\r\n\t\t// new other Objects and set them into Base object\r\n\r\n\t\t// refresh Lists\r\n\t\tbaseEntityList = ChoosevalService.FindAll(\"id\", JPAOp.Asc);\r\n\t}", "private void resetReference(ThingTimeTriple triple)\r\n/* 221: */ {\r\n/* 222:184 */ this.previousTriples.put(triple.t.getType(), triple);\r\n/* 223:185 */ this.previousTriple = triple;\r\n/* 224: */ }", "public void reset() {\n super.reset();\n }", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void reset() {\n\t\tacceptAnswers = false;\n\t\tcurrentQuestion = null;\n\t\tsubmissions = null;\n\t}", "protected void reset() {\n leftSkier.reset();\n rightSkier.reset();\n }", "private void resetStory() {\n storyManager.resetAllStories();\n user.setCurrentStoryNode(0);\n }", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "public void resetParents() {\n businessentityController.setSelected(null);\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public final void resetFavorites() {\n Favorites favorites = Favorites.INSTANCE;\n favorites.clear();\n favorites.load(this.persistenceWrapper.readFavorites());\n }", "public void reset() {\n for (Vertex v : vertices) {\n v.path = false;\n v.visited = false;\n }\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n }" ]
[ "0.6747352", "0.6169952", "0.60056156", "0.5843151", "0.5639269", "0.5581446", "0.5563037", "0.55015767", "0.548783", "0.5456732", "0.54171634", "0.5381268", "0.53617096", "0.5351383", "0.53320163", "0.53242475", "0.52904886", "0.52863044", "0.52736586", "0.5256235", "0.5250891", "0.52466387", "0.52380407", "0.5220043", "0.5207152", "0.51840085", "0.5110994", "0.51085526", "0.50989574", "0.5094157", "0.5091222", "0.50911045", "0.50848943", "0.50839186", "0.5077499", "0.5074814", "0.50742495", "0.50720704", "0.50706977", "0.50686705", "0.50662714", "0.50561935", "0.50558597", "0.50443304", "0.5037771", "0.5036319", "0.50355756", "0.5033892", "0.50267375", "0.5019551", "0.501407", "0.5010897", "0.50108796", "0.5007768", "0.50046986", "0.49967206", "0.49952793", "0.4987776", "0.49875844", "0.4980316", "0.49789694", "0.49776003", "0.4968623", "0.49661565", "0.4948842", "0.494858", "0.49456495", "0.49432755", "0.49389538", "0.49362963", "0.49336287", "0.49302515", "0.49289885", "0.4928563", "0.49234775", "0.49219596", "0.49213576", "0.4921164", "0.4918298", "0.49165192", "0.4912199", "0.4911418", "0.49076414", "0.49045125", "0.49015746", "0.49004078", "0.48998377", "0.4897391", "0.48933738", "0.48911625", "0.48911476", "0.48893324", "0.4886565", "0.48852515", "0.4875505", "0.4871901", "0.4869651", "0.48692313", "0.48653355", "0.48627707" ]
0.5167213
26
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<DetailerCall> getDetailers() { if (detailers == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } DetailerCallDao targetDao = daoSession.getDetailerCallDao(); List<DetailerCall> detailersNew = targetDao._queryTask_Detailers(uuid); synchronized (this) { if(detailers == null) { detailers = detailersNew; } } } return detailers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirectional(DeployBeanPropertyAssocMany<?> oneToMany) {\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(oneToMany);\n Class<?> owningType = oneToMany.getOwningType();\n if (!oneToMany.getCascadeInfo().isSave()) {\n // The property MUST have persist cascading so that inserts work.\n Class<?> targetType = oneToMany.getTargetType();\n String msg = \"Error on \" + oneToMany + \". @OneToMany MUST have \";\n msg += \"Cascade.PERSIST or Cascade.ALL because this is a unidirectional \";\n msg += \"relationship. That is, there is no property of type \" + owningType + \" on \" + targetType;\n throw new PersistenceException(msg);\n }\n\n // mark this property as unidirectional\n oneToMany.setUnidirectional();\n // specify table and table alias...\n BeanTable beanTable = beanTable(owningType);\n // define the TableJoin\n DeployTableJoin oneToManyJoin = oneToMany.getTableJoin();\n if (!oneToManyJoin.hasJoinColumns()) {\n throw new RuntimeException(\"No join columns found to satisfy the relationship \" + oneToMany);\n }\n createUnidirectional(targetDesc, owningType, beanTable, oneToManyJoin);\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "@Test\r\n public void testManyToOneAfterClosed(){\r\n EntityManager em = factory.createEntityManager();\r\n // create MyTestObject1 and a 2 with a reference from 1 to 2.\r\n MyTestObject4 o4 = new MyTestObject4();\r\n o4.setName4(\"04\");\r\n em.persist(o4);\r\n MyTestObject2 o2 = new MyTestObject2(\"ob2\", 123);\r\n o2.setMyTestObject4(o4);\r\n em.persist(o2);\r\n MyTestObject o1 = new MyTestObject();\r\n o1.setMyTestObject2(o2);\r\n em.persist(o1);\r\n em.getTransaction().commit();\r\n // close em\r\n em.close();\r\n\r\n // clean out the caches\r\n clearCaches();\r\n\r\n em = factory.createEntityManager();\r\n // get all MyTestObject2's to get them in 2nd level cache\r\n Query query = em.createQuery(\"select o from MyTestObject2 o\");\r\n List<MyTestObject2> resultList = query.getResultList();\r\n for (MyTestObject2 myTestObject2 : resultList) {\r\n System.out.println(myTestObject2);\r\n }\r\n // close em\r\n em.close();\r\n\r\n em = factory.createEntityManager();\r\n // now get 1's and touch the referenced 2's, ie: getMyTestObject2();\r\n query = em.createQuery(\"select o from MyTestObject o\");\r\n List<MyTestObject> resultList2 = query.getResultList();\r\n for (MyTestObject myTestObject : resultList2) {\r\n System.out.println(myTestObject.getMyTestObject2().getMyTestObject4());\r\n }\r\n em.close();\r\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "@Override\n\tpublic void activateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.activateEntityRelationship(id);\n\t}", "private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }", "Relationship createRelationship();", "@Override\n \tpublic void setIsPartOf(Reference isPartOf) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.isPartOf == isPartOf)\n \t\t\treturn;\n \t\t// remove from inverse relationship\n \t\tif (this.isPartOf != null) {\n \t\t\tthis.isPartOf.getContains().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.isPartOf = isPartOf;\n \t\tif (isPartOf == null)\n \t\t\treturn;\n \t\t// set inverse relationship\n \t\tisPartOf.getContains().add(this);\n \t}", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "@Override\n public void cascadePersist(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager, URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n roles.stream().forEach((role) -> {\n role.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n rdfEntityManager.persist(this, overrideContext);\n }", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "@Override\n public void storeToGraph(Set<GraphContext> graphContext) {\n\n graphContext.forEach(entry -> {\n try {\n LineageEntity fromEntity = entry.getFromVertex();\n LineageEntity toEntity = entry.getToVertex();\n\n upsertToGraph(fromEntity, toEntity, entry.getRelationshipType(), entry.getRelationshipGuid());\n } catch (Exception e) {\n log.error(VERTICES_AND_RELATIONSHIP_CREATION_EXCEPTION, e);\n }\n });\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public void setRelatedTo(java.lang.String value);", "@Override\n \t\t\t\tpublic void doAttachTo() {\n \n \t\t\t\t}", "@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\n }", "RelationalDependency createRelationalDependency();", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "void unsetFurtherRelations();", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "public void relate(HNode id, Object o);", "public void setRelationship( String relationship ) {\n this.relationship = relationship;\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }", "private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "@Test\n public void manyToOne_setJobExecution() {\n BatchStepExecution many = new BatchStepExecution();\n\n // init\n BatchJobExecution one = new BatchJobExecution();\n one.setId(ValueGenerator.getUniqueLong());\n many.setJobExecution(one);\n\n // make sure it is propagated properly\n assertThat(many.getJobExecution()).isEqualTo(one);\n\n // now set it to back to null\n many.setJobExecution(null);\n\n // make sure null is propagated properly\n assertThat(many.getJobExecution()).isNull();\n }", "public RelationshipManager createRelationshipManager() throws ServiceException {\r\n initialize(); \r\n return new RelationshipManager(multiDomainMetaService, multiDomainService);\r\n\t}", "public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "@Override\n public void updateBys() { updateLabelLists(getRTParent().getEntityTagTypes()); fillCommonRelationshipsMenu(); }", "protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "@Override\n\tpublic void deactivateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.deactivateEntityRelationship(id);\n\t}", "@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}", "public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}", "public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}", "public Long getRelateId() {\n return relateId;\n }", "@Test public void springProxies() {\n\t\tlong initialCount = targetRepo.count();\n\t\tContact contact = new Contact();\n\t\tcontact.setFirstname(\"Mickey\");\n\t\tcontact.setLastname(\"Mouse\");\n\t\ttargetRepo.save(contact);\n\t\tAssert.assertEquals(\n\t\t\tinitialCount+1,\n\t\t\ttargetRepo.count()\n\t\t);\n\t}", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "public interface Impl extends PersistenceFieldElement.Impl\n\t{\n\t\t/** Get the update action for this relationship element.\n\t\t * @return the update action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getUpdateAction ();\n\n\t\t/** Set the update action for this relationship element.\n\t\t * @param action - an integer indicating the update action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpdateAction (int action) throws ModelException;\n\n\t\t/** Get the delete action for this relationship element.\n\t\t * @return the delete action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getDeleteAction ();\n\n\t\t/** Set the delete action for this relationship element.\n\t\t * @param action - an integer indicating the delete action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setDeleteAction (int action) throws ModelException;\n\n\t\t/** Determines whether this relationship element should prefetch or not.\n\t\t * @return <code>true</code> if the relationship should prefetch, \n\t\t * <code>false</code> otherwise\n\t\t */\n\t\tpublic boolean isPrefetch ();\n\n\t\t/** Set whether this relationship element should prefetch or not.\n\t\t * @param flag - if <code>true</code>, the relationship is set to \n\t\t * prefetch; otherwise, it is not\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setPrefetch (boolean flag) throws ModelException;\n\n\t\t/** Get the lower cardinality bound for this relationship element.\n\t\t * @return the lower cardinality bound\n\t\t */\n\t\tpublic int getLowerBound ();\n\n\t\t/** Set the lower cardinality bound for this relationship element.\n\t\t * @param lowerBound - an integer indicating the lower cardinality bound\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setLowerBound (int lowerBound) throws ModelException;\n\n\t\t/** Get the upper cardinality bound for this relationship element. \n\t\t * Returns {@link java.lang.Integer#MAX_VALUE} for <code>n</code>\n\t\t * @return the upper cardinality bound\n\t\t */\n\t\tpublic int getUpperBound ();\n\n\t\t/** Set the upper cardinality bound for this relationship element.\n\t\t * @param upperBound - an integer indicating the upper cardinality bound\n\t\t * (use {@link java.lang.Integer#MAX_VALUE} for <code>n</code>)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpperBound (int upperBound) throws ModelException;\n\n\t\t/** Get the collection class (for example Set, List, Vector, etc.)\n\t\t * for this relationship element.\n\t\t * @return the collection class\n\t\t */\n\t\tpublic String getCollectionClass ();\n\n\t\t/** Set the collection class for this relationship element.\n\t\t * @param collectionClass - a string indicating the type of \n\t\t * collection (for example Set, List, Vector, etc.)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setCollectionClass (String collectionClass)\n\t\t\tthrows ModelException;\n\n\t\t/** Get the element class for this relationship element. If primitive \n\t\t * types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @return the element class\n\t\t */\n\t\tpublic String getElementClass ();\n\n\t\t/** Set the element class for this relationship element.\n\t\t * @param elementClass - a string indicating the type of elements \n\t\t * in the collection. If primitive types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setElementClass (String elementClass) throws ModelException;\n\n\t\t/** Get the relative name of the inverse relationship field for this \n\t\t * relationship element. In the case of two-way relationships, the two \n\t\t * relationship elements involved are inverses of each other. If this \n\t\t * relationship element does not participate in a two-way relationship, \n\t\t * this returns <code>null</code>. Note that it is possible to have \n\t\t * this method return a value, but because of the combination of \n\t\t * related class and lookup, there may be no corresponding \n\t\t * RelationshipElement which can be found.\n\t\t * @return the relative name of the inverse relationship element\n\t\t * @see #getInverseRelationship\n\t\t */\n\t\tpublic String getInverseRelationshipName ();\n\n\t\t/** Changes the inverse relationship element for this relationship \n\t\t * element. This method is invoked for both sides from \n\t\t * {@link RelationshipElement#setInverseRelationship} and should handle \n\t\t * the vetoable change events, property change events, and setting the \n\t\t * internal variable. \n\t\t * @param inverseRelationship - a relationship element to be used as \n\t\t * the inverse for this relationship element or <code>null</code> if \n\t\t * this relationship element does not participate in a two-way \n\t\t * relationship.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void changeInverseRelationship (\n\t\t\tRelationshipElement inverseRelationship) throws ModelException;\n\t}", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}", "public void attach(final E entity) {\n if (entity.getId() != null) return;\n entity.setId(this.getNextId());\n this.entities.add(entity);\n this.id2entity.put(entity.getId(), entity);\n }", "@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);", "EReference getRelationReference();", "private <T> Mono<T> processRelations(\n\t\t\tNeo4jPersistentEntity<?> neo4jPersistentEntity,\n\t\t\tPersistentPropertyAccessor<?> parentPropertyAccessor,\n\t\t\tboolean isParentObjectNew,\n\t\t\tNestedRelationshipProcessingStateMachine stateMachine,\n\t\t\tPropertyFilter includeProperty\n\t) {\n\n\t\tPropertyFilter.RelaxedPropertyPath startingPropertyPath = PropertyFilter.RelaxedPropertyPath.withRootType(neo4jPersistentEntity.getUnderlyingClass());\n\t\treturn processNestedRelations(neo4jPersistentEntity, parentPropertyAccessor, isParentObjectNew,\n\t\t\t\tstateMachine, includeProperty, startingPropertyPath);\n\t}", "public Relations() {\n relations = new ArrayList();\n }", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "private void attachEntity(Usuario entity) {\n }", "public boolean resolve(RelationInjectionManager injection);", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "public <A> void createUnidirectional(DeployBeanDescriptor<?> targetDesc, Class<A> targetType, BeanTable beanTable, DeployTableJoin oneToManyJoin) {\n\n // create the 'shadow' unidirectional property\n // which is put on the target descriptor\n DeployBeanPropertyAssocOne<A> unidirectional = new DeployBeanPropertyAssocOne<>(targetDesc, targetType);\n unidirectional.setUndirectionalShadow();\n unidirectional.setNullable(false);\n unidirectional.setDbRead(true);\n unidirectional.setDbInsertable(true);\n unidirectional.setDbUpdateable(false);\n unidirectional.setBeanTable(beanTable);\n unidirectional.setName(beanTable.getBaseTable());\n unidirectional.setJoinType(true);\n unidirectional.setJoinColumns(oneToManyJoin.columns(), true);\n\n targetDesc.setUnidirectional(unidirectional);\n }", "public void toEntity(){\n\n }", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "private void setupDependentEntities(final BwEvent val) throws CalFacadeException {\n if (val.getAlarms() != null) {\n for (BwAlarm alarm: val.getAlarms()) {\n alarm.setEvent(val);\n alarm.setOwnerHref(getUser().getPrincipalRef());\n }\n }\n }", "public void attach(final Object self)\n throws IllegalArgumentException, IllegalAccessException, NoSuchMethodException,\n InvocationTargetException {\n for (Class<?> currentClass = self.getClass(); currentClass != Object.class; ) {\n if (Proxy.class.isAssignableFrom(currentClass)) {\n currentClass = currentClass.getSuperclass();\n continue;\n }\n for (Field f : currentClass.getDeclaredFields()) {\n final String fieldName = f.getName();\n final Class<?> declaringClass = f.getDeclaringClass();\n\n if (OObjectEntitySerializer.isTransientField(declaringClass, fieldName)\n || OObjectEntitySerializer.isVersionField(declaringClass, fieldName)\n || OObjectEntitySerializer.isIdField(declaringClass, fieldName)) continue;\n\n Object value = OObjectEntitySerializer.getFieldValue(f, self);\n value = setValue(self, fieldName, value);\n OObjectEntitySerializer.setFieldValue(f, self, value);\n }\n currentClass = currentClass.getSuperclass();\n\n if (currentClass == null || currentClass.equals(ODocument.class))\n // POJO EXTENDS ODOCUMENT: SPECIAL CASE: AVOID TO CONSIDER\n // ODOCUMENT FIELDS\n currentClass = Object.class;\n }\n }", "public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "@Override\n public void updateRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n Iterator<Edge> edge = g.E().has(PROPERTY_KEY_RELATIONSHIP_GUID, lineageRelationship.getGuid());\n if (!edge.hasNext()) {\n log.debug(EDGE_GUID_NOT_FOUND_WHEN_UPDATE, lineageRelationship.getGuid());\n rollbackTransaction(g);\n return;\n }\n commit(graphFactory, g, this::addOrUpdatePropertiesEdge, g, lineageRelationship, PROPERTIES_UPDATE_EXCEPTION);\n }", "public void Alterar(TarefaEntity tarefaEntity){\n \n\t\tthis.entityManager.getTransaction().begin();\n\t\tthis.entityManager.merge(tarefaEntity);\n\t\tthis.entityManager.getTransaction().commit();\n\t}", "@Override\n\tpublic void orphan(DBSet db, boolean asPack) \n\t{\n\t\tdb.getAddressPersonMap().removeItem(this.recipient.getAddress());\n\t\tdb.getPersonAddressMap().removeItem(this.key, this.recipient.getAddress());\n\n\t\t//UPDATE REFERENCE OF CREATOR\n\t\t// not needthis.creator.setLastReference(this.reference, db);\t\t\n\t\t//UPDATE REFERENCE OF RECIPIENT\n\t\tthis.recipient.removeReference(db);\n\t}", "private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }", "DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );", "public void write(Entity localEntity, Object foreignEntity) {\n _propertyGateway.write(localEntity, foreignEntity);\n }", "public void atualizar(RelatorioDAO obj) {\n\t\t\n\t}", "@Override\n public void upsertRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n LineageEntity firstEnd = lineageRelationship.getSourceEntity();\n LineageEntity secondEnd = lineageRelationship.getTargetEntity();\n\n upsertToGraph(firstEnd, secondEnd, lineageRelationship.getTypeDefName(), lineageRelationship.getGuid());\n\n BiConsumer<GraphTraversalSource, LineageRelationship> addOrUpdatePropertiesEdge = this::addOrUpdatePropertiesEdge;\n commit(graphFactory, g, addOrUpdatePropertiesEdge, g, lineageRelationship,\n UNABLE_TO_ADD_PROPERTIES_ON_EDGE_FROM_RELATIONSHIP_WITH_TYPE +\n lineageRelationship.getTypeDefName() + AND_GUID + lineageRelationship.getGuid());\n }", "private void updateOrCreate(Resource subject, Property property, Object o) {\r\n\t\tStatement existingRelation = subject.getProperty(property);\r\n\t\tif (existingRelation != null)\r\n\t\t\tsubject.removeAll(property);\r\n\t\tsubject.addProperty(property, _write(o, true));\r\n\t}", "@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "@Test\n\tpublic void testSetValueMult1to1OverwriteInverse() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tuser.setPerson(jojo);\n\t\tAssert.assertSame(jojo, user.getPerson());\n\t\tAssert.assertSame(user, jojo.getUser());\n\t\tAssert.assertNull(martin.getUser());\n\n\t\t// test: relink martin to user (other way round)\n\t\tmartin.setUser(user);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}", "org.hl7.fhir.ObservationRelated addNewRelated();", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "public void entityReference(String name);", "@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }", "public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProjectId(((NumberKey) key).intValue());\n }", "public void addRelationship(String fm_field, String fm_symbol_str, boolean fm_typed,\n String to_field, String to_symbol_str, boolean to_typed, \n String style_str, boolean ignore_ns, boolean built_in, Bundles to_add) {\n String fm_pre = \"\", to_pre = \"\";\n\n // DEBUG\n // System.err.println(\"fm_field =\\\"\" + fm_field + \"\\\"\"); System.err.println(\"fm_symbol=\\\"\" + fm_symbol_str + \"\\\"\"); System.err.println(\"fm_typed =\\\"\" + fm_typed + \"\\\"\");\n // System.err.println(\"to_field =\\\"\" + to_field + \"\\\"\"); System.err.println(\"to_symbol=\\\"\" + to_symbol_str + \"\\\"\"); System.err.println(\"to_typed =\\\"\" + to_typed + \"\\\"\");\n\n if (fm_typed) fm_pre = fm_field + BundlesDT.DELIM;\n if (to_typed) to_pre = to_field + BundlesDT.DELIM;\n\n Utils.Symbol fm_symbol = Utils.parseSymbol(fm_symbol_str),\n to_symbol = Utils.parseSymbol(to_symbol_str);\n\n // Keep track of existing relationships, update the longer term ones\n String encoded_relationship_str = Utils.encToURL(fm_field) + BundlesDT.DELIM + Utils.encToURL(fm_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + fm_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(to_field) + BundlesDT.DELIM + Utils.encToURL(to_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + to_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(style_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + ignore_ns);\n if (active_relationships.contains(encoded_relationship_str) == false) active_relationships.add(encoded_relationship_str);\n if (built_in == false) updateRecentRelationships(encoded_relationship_str);\n // Is this an addition or from scratch?\n Bundles bundles; if (to_add == null) bundles = getRTParent().getRootBundles(); else bundles = to_add;\n BundlesG globals = bundles.getGlobals();\n // Go through the tablets\n Iterator<Tablet> it_tablet = bundles.tabletIterator();\n while (it_tablet.hasNext()) {\n Tablet tablet = it_tablet.next();\n\t// Check to see if this table will complete both blanks, if so, go through the bundles adding the edges to the graphs\n\tif (KeyMaker.tabletCompletesBlank(tablet,fm_field) && KeyMaker.tabletCompletesBlank(tablet,to_field)) {\n\t // Create the key makers\n\t KeyMaker fm_km = new KeyMaker(tablet,fm_field), to_km = new KeyMaker(tablet,to_field);\n\t // Go through the bundles\n\t Iterator<Bundle> it_bundle = tablet.bundleIterator();\n\t while (it_bundle.hasNext()) {\n\t Bundle bundle = it_bundle.next();\n\t // Create the combinator for the from and to keys\n\t String fm_keys[], to_keys[];\n // Transform the bundle to keys\n\t fm_keys = fm_km.stringKeys(bundle);\n\t to_keys = to_km.stringKeys(bundle);\n\t // Make the relationships\n if (fm_keys != null && fm_keys.length > 0 && to_keys != null && to_keys.length > 0) {\n for (int i=0;i<fm_keys.length;i++) for (int j=0;j<to_keys.length;j++) {\n\t // Check for not sets if the flag is specified\n if (ignore_ns && (fm_keys[i].equals(BundlesDT.NOTSET) || to_keys[j].equals(BundlesDT.NOTSET))) continue;\n\t\t// The key will be a combination of the header and the entity\n String fm_fin = fm_pre + fm_keys[i], to_fin = to_pre + to_keys[j];\n\t\t// If we're in retain mode only, make sure both nodes exist in the set\n\t\tif (retained_nodes != null && retained_nodes.size() > 0 && (retained_nodes.contains(fm_fin) == false || retained_nodes.contains(to_fin) == false)) continue;\n // Set the shape\n if (entity_to_shape.containsKey(fm_fin) == false) entity_to_shape.put(fm_fin, fm_symbol);\n\t\tif (entity_to_shape.containsKey(to_fin) == false) entity_to_shape.put(to_fin, to_symbol);\n // Create the initial world coordinate and transform as appropriate \n\t\tif (entity_to_wxy.containsKey(fm_fin) == false) { \n\t\t entity_to_wxy.put(fm_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n transform(fm_fin); }\n\t\tif (entity_to_wxy.containsKey(to_fin) == false) { \n\t\t entity_to_wxy.put(to_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n\t\t transform(to_fin); }\n // Add the reference back to this object\n graph.addNode(fm_fin); graph.addNode(to_fin);\n digraph.addNode(fm_fin); digraph.addNode(to_fin);\n // Set the weights equal to the number of bundles on the edge\n double previous_weight = graph.getConnectionWeight( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin)),\n di_previous_weight = digraph.getConnectionWeight(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin));\n // Check for infinite because the graph class returns infinite if two nodes are not connected\n if (Double.isInfinite( previous_weight)) previous_weight = 0.0;\n if (Double.isInfinite(di_previous_weight)) di_previous_weight = 0.0;\n // Finally, add them to both forms of the graphs\n\t \t graph.addNeighbor(fm_fin, to_fin, previous_weight + 1.0);\n graph.addNeighbor(to_fin, fm_fin, previous_weight + 1.0);\n\t\tdigraph.addNeighbor(fm_fin, to_fin, di_previous_weight + 1.0);\n // System.err.println(\"RTGraphPanel.addRelationship() : \\\"\" + fm_fin + \"\\\" => \\\"\" + to_fin + \"\\\": w=\" + (previous_weight+1.0) + \" | di_w=\" + (di_previous_weight+1.0));\n\t\t graph.addLinkReference( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin), bundle);\n\t\t graph.addLinkReference( graph.getEntityIndex(to_fin), graph.getEntityIndex(fm_fin), bundle);\n\t\tdigraph.addLinkReference(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), bundle);\n // Keep track of the link style\n digraph.addLinkStyle(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), style_str);\n\t }\n\t }\n }\n\t}\n }\n // Nullify the biconnected components\n graph_bcc = null;\n graph2p_bcc = null;\n cluster_cos = null;\n conductance = null;\n // Re-render\n getRTComponent().render();\n }", "private ManagedObject adopt(final EntityChangeTracker entityChangeTracker, final Object fetchedObject) {\n if(fetchedObject instanceof Persistable) {\n // an entity\n val entity = objectManager.adapt(fetchedObject);\n //fetchResultHandler.initializeEntityAfterFetched((Persistable) fetchedObject);\n entityChangeTracker.recognizeLoaded(entity);\n return entity;\n } else {\n // a value type\n return objectManager.adapt(fetchedObject);\n }\n }", "public Product getProductRelatedByRelProductId() throws TorqueException\n {\n if (aProductRelatedByRelProductId == null && (this.relProductId != 0))\n {\n aProductRelatedByRelProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.relProductId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Product obj = ProductPeer.retrieveByPK(this.relProductId);\n obj.addNewslettersRelatedByRelProductId(this);\n */\n }\n return aProductRelatedByRelProductId;\n }", "public void cascadePersist(\n final RDFEntityManager rdfEntityManager,\n final URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n\n cascadePersist(this, rdfEntityManager, overrideContext);\n }", "public void setPrefetch (boolean flag) throws ModelException\n\t{\n\t\tgetRelationshipImpl().setPrefetch(flag);\n\t}", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "boolean isSetFurtherRelations();", "@Override\n\t\tpublic Iterable<Relationship> getRelationships() {\n\t\t\treturn null;\n\t\t}", "public void setTransitive(boolean transitive) {\n this.transitive = transitive;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}" ]
[ "0.5940992", "0.5846662", "0.5735727", "0.56805676", "0.5641164", "0.55888176", "0.5570419", "0.5501383", "0.54784065", "0.54466534", "0.5418696", "0.5396701", "0.53331417", "0.53226095", "0.5310305", "0.53054404", "0.5237315", "0.51974344", "0.51927924", "0.5174846", "0.51537234", "0.51153296", "0.5099153", "0.5077924", "0.5050735", "0.5042748", "0.5031366", "0.50300485", "0.49703106", "0.4949668", "0.49451554", "0.49390346", "0.49304917", "0.49296305", "0.49257907", "0.49198925", "0.4910444", "0.49028018", "0.48798585", "0.48752034", "0.48663682", "0.48650208", "0.48627177", "0.48626253", "0.48623666", "0.48618895", "0.48478305", "0.48341453", "0.48223248", "0.48208374", "0.4804187", "0.47989953", "0.47922873", "0.47912595", "0.47882873", "0.47813505", "0.4780206", "0.4775683", "0.47683543", "0.47603428", "0.47591034", "0.47415432", "0.47382396", "0.47347328", "0.47330546", "0.47284415", "0.47282708", "0.47252798", "0.4724769", "0.47172844", "0.47138056", "0.4711082", "0.471068", "0.47047555", "0.469766", "0.46888712", "0.46852693", "0.46751168", "0.4674641", "0.46742517", "0.46738988", "0.4672436", "0.46706063", "0.46700436", "0.46645218", "0.46609133", "0.46597132", "0.46515563", "0.46490163", "0.46481368", "0.46449447", "0.46439457", "0.46390727", "0.4635257", "0.4629358", "0.4628625", "0.46285686", "0.4628081", "0.4626167", "0.4621428", "0.46179348" ]
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetDetailers() { detailers = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void delIncomingRelations();", "@Override\n public void reset()\n {\n this.titles = new ABR();\n this.years = new ABR();\n this.votes = new ABR();\n this.director = new ABR();\n\n for(int i = 0; i < this.movies.length; i++)\n this.movies.set(i, null);\n }", "public void delRelations();", "public void unAssignFromAllGames() {\n for (Game game : getGames()) {\n game.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllGames(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }", "public abstract void resetQuery();", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "protected void reset() {\n\t\tadaptees.clear();\n\t}", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "private void reset() {\r\n\t\t\tref.set(new CountDownLatch(parties));\r\n\t\t}", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "public void clearPolymorphismTairObjectId() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "public void reset() {\n this.isExhausted = false;\n }", "private <T extends IEntity> void clearRetrieveValues(T entity) {\n Key pk = entity.getPrimaryKey();\n entity.clear();\n entity.setPrimaryKey(pk);\n }", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "GroupQueryBuilder reset();", "@Generated\n public synchronized void resetProveedores() {\n proveedores = null;\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "public synchronized void resetSales() {\n sales = null;\n }", "public void resetTracking() {\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.clear();\n\t\transac.reset();\n\t}", "public synchronized void clear() {\n _transient.clear();\n _persistent.clear();\n _references.clear();\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}", "void removeRelated(int i);", "public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }", "public void resetArboles()\r\n {\r\n this.arboles = null;\r\n }", "void reset()\n {\n reset(values);\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public void resetData() {\n user = new User();\n saveData();\n }", "public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }", "private void resetAll() {\n resetResources();\n resetStory();\n refresh();\n }", "private void clearOtherId() {\n \n otherId_ = 0;\n }", "public void unReset () {\n count = lastSave;\n }", "public void clear() {\n entityManager.clear();\n }", "@Override\n public Builder resetModel(boolean reallyReset) {\n super.resetModel(reallyReset);\n return this;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void reset() {\n context.reset();\n state = State.NAME;\n }", "public void reset() {\r\n properties.clear();\r\n }", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "public synchronized void resetCollections() {\n collections = null;\n }", "public void reset()\n\t{\n\t\tassociations = new Vector<Association>();\n\t\tif(hotspots != null)\n\t\t{\n\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t{\n\t\t\t\thotspots.elementAt(i).bound = null;\n\t\t\t\thotspots.elementAt(i).setHighlighted(false);\n\t\t\t}\n\t\t}\n\n\t\tif(movableObjects != null)\n\t\t{\n\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t{\n\t\t\t\tmovableObjects.elementAt(i).resetPos();\n\t\t\t\tmovableObjects.elementAt(i).bound = null;\n\t\t\t}\n\t\t}\n\t\tuser_responses=0;\n\t\tmov = null;\n\t\tstart = null;\n\t\tmpos = null;\n\t\tsetFeedback();\n\t\trepaint();\n\t}", "public void revertChanges()\n {\n // TODO: Find a good way to revert changes\n // reload patient\n HibernateUtil.currentSession().evict(_dietTreatment.getModel());\n PatientDAO dao = DAOFactory.getInstance().getPatientDAO();\n _patient.setModel(dao.findById(_patient.getPatientId(), false));\n }", "public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "public void resetTipoRecurso()\r\n {\r\n this.tipoRecurso = null;\r\n }", "public OccList reset()\n {\n size = 0;\n return this;\n }", "public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void clearBids(){\n this.bids.clear();\n setRequested();\n }", "public void rewind() throws DbException, TransactionAbortedException {\n child1.rewind();\n child2.rewind();\n this.leftMap.clear();\n this.rightMap.clear();\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "void resetData(ReadOnlyExpenseTracker newData) throws NoUserSelectedException;", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public void clearLinks(){\r\n varContextObject=null; \r\n varContextFields=null; \r\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "public static void clearPreviousArtists(){previousArtists.clear();}", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "public void resetListaId()\r\n {\r\n this.listaId = null;\r\n }", "public static void reset() {\n\t\tE_Location.THIS.reset();\n\t\tE_Resource.THIS.reset();\n\t\t\n\t\tT_Object.reset();\n\t\tT_Location.reset();\n\t\tT_Resource.reset();\n\t\t\n\t}", "@Override\n public void resetAllValues() {\n }", "void resetData(ReadOnlyAddressBook newData);", "public void resetAllIdCounts() {\n \t\tthis.userCounterIdCounter = 0;\n \t\tthis.questionIdCounter = 0;\n \t\tthis.answerIdCounter = 0;\n \t\tthis.commentIdCounter = 0;\n \t}", "public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}", "@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}", "protected void reset(Opportunities dto)\r\n\t{\r\n\t\tdto.setIdModified( false );\r\n\t\tdto.setSupplierIdModified( false );\r\n\t\tdto.setUniqueProductsModified( false );\r\n\t\tdto.setPortfolioModified( false );\r\n\t\tdto.setRecongnisationModified( false );\r\n\t\tdto.setKeyWordsModified( false );\r\n\t\tdto.setDateCreationModified( false );\r\n\t\tdto.setDateModificationModified( false );\r\n\t}", "public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public void reset(){\n star.clear();\n planet.clear();\n }", "public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }", "public void reset() {\n this.list.clear();\n }", "public void reset() {\n\t\t\twhile (requisitionItemGrid.getColumnCount() > 0)\n\t\t\t\trequisitionItemGrid.removeColumn(0);\n\n\t\t\tbmoRequisitionType = (BmoRequisitionType)requisitionTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoRequisitionType == null)\n\t\t\t\tbmoRequisitionType = bmoRequisition.getBmoRequisitionType();\n\n\t\t\t// Crea las columnas\n\t\t\tsetColumns();\n\n\t\t\tupdateAmount(id);\n\t\t\tdata.list();\n\t\t\trequisitionItemGrid.redraw();\n\t\t}", "public void reset() {\n resetData();\n postInvalidate();\n }", "private void resetIdsToFind()\r\n\t{\r\n\t\t/*\r\n\t\t * Reset all lists of given search items to empty lists, indicating full\r\n\t\t * search without filtering, if no search items are added.\r\n\t\t */\r\n\t\tsetSpectrumIdsTarget(new ArrayList<String>());\r\n\t}", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "public void clear() throws ChangeVetoException;", "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 }", "void reset(boolean preparingForUpwardPass) {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : getIncomingNeighborEdges(preparingForUpwardPass)) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected void ResetBaseObject() {\r\n\t\tsuper.ResetBaseObject();\r\n\r\n\t\t// new Base Object\r\n\t\tbaseEntity = new Chooseval();\r\n\r\n\t\t// new other Objects and set them into Base object\r\n\r\n\t\t// refresh Lists\r\n\t\tbaseEntityList = ChoosevalService.FindAll(\"id\", JPAOp.Asc);\r\n\t}", "public void reset() {\n super.reset();\n }", "private void resetReference(ThingTimeTriple triple)\r\n/* 221: */ {\r\n/* 222:184 */ this.previousTriples.put(triple.t.getType(), triple);\r\n/* 223:185 */ this.previousTriple = triple;\r\n/* 224: */ }", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void reset() {\n\t\tacceptAnswers = false;\n\t\tcurrentQuestion = null;\n\t\tsubmissions = null;\n\t}", "protected void reset() {\n leftSkier.reset();\n rightSkier.reset();\n }", "private void resetStory() {\n storyManager.resetAllStories();\n user.setCurrentStoryNode(0);\n }", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "public void resetParents() {\n businessentityController.setSelected(null);\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public final void resetFavorites() {\n Favorites favorites = Favorites.INSTANCE;\n favorites.clear();\n favorites.load(this.persistenceWrapper.readFavorites());\n }", "public void reset() {\n for (Vertex v : vertices) {\n v.path = false;\n v.visited = false;\n }\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n }" ]
[ "0.6747442", "0.6169837", "0.6006495", "0.58437485", "0.5640313", "0.55817", "0.5564541", "0.5501873", "0.54876965", "0.54569566", "0.54190093", "0.53815854", "0.53609395", "0.5352766", "0.5333638", "0.53250045", "0.5290257", "0.5286562", "0.52737796", "0.52573645", "0.52519107", "0.52476484", "0.5239696", "0.5219591", "0.5208653", "0.5184265", "0.5169561", "0.5112053", "0.5110626", "0.5099761", "0.5096511", "0.5092551", "0.50895804", "0.50866365", "0.5084509", "0.5078544", "0.507619", "0.50749385", "0.5074766", "0.5072249", "0.5069913", "0.50679666", "0.50582385", "0.5056956", "0.5046249", "0.5039399", "0.50385016", "0.5037913", "0.5034893", "0.50272775", "0.50208294", "0.50141346", "0.5012122", "0.5010166", "0.5008578", "0.5006726", "0.4999496", "0.4996147", "0.49885333", "0.49878687", "0.49824923", "0.49798775", "0.4979212", "0.49692723", "0.49653307", "0.4949815", "0.4948742", "0.49477637", "0.49429193", "0.49403128", "0.49378565", "0.49342307", "0.49320287", "0.4930644", "0.49302185", "0.4925291", "0.49236622", "0.49230573", "0.49228358", "0.49188924", "0.49173605", "0.49129903", "0.49128336", "0.49078217", "0.49051732", "0.4903055", "0.4901561", "0.49007806", "0.48991317", "0.48935378", "0.48930016", "0.48924303", "0.48910028", "0.48875353", "0.48863152", "0.48781186", "0.48729724", "0.48705822", "0.48693103", "0.486747", "0.48649892" ]
0.0
-1
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<MalariaDetail> getMalariadetails() { if (malariadetails == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } MalariaDetailDao targetDao = daoSession.getMalariaDetailDao(); List<MalariaDetail> malariadetailsNew = targetDao._queryTask_Malariadetails(uuid); synchronized (this) { if(malariadetails == null) { malariadetails = malariadetailsNew; } } } return malariadetails; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirectional(DeployBeanPropertyAssocMany<?> oneToMany) {\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(oneToMany);\n Class<?> owningType = oneToMany.getOwningType();\n if (!oneToMany.getCascadeInfo().isSave()) {\n // The property MUST have persist cascading so that inserts work.\n Class<?> targetType = oneToMany.getTargetType();\n String msg = \"Error on \" + oneToMany + \". @OneToMany MUST have \";\n msg += \"Cascade.PERSIST or Cascade.ALL because this is a unidirectional \";\n msg += \"relationship. That is, there is no property of type \" + owningType + \" on \" + targetType;\n throw new PersistenceException(msg);\n }\n\n // mark this property as unidirectional\n oneToMany.setUnidirectional();\n // specify table and table alias...\n BeanTable beanTable = beanTable(owningType);\n // define the TableJoin\n DeployTableJoin oneToManyJoin = oneToMany.getTableJoin();\n if (!oneToManyJoin.hasJoinColumns()) {\n throw new RuntimeException(\"No join columns found to satisfy the relationship \" + oneToMany);\n }\n createUnidirectional(targetDesc, owningType, beanTable, oneToManyJoin);\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "@Test\r\n public void testManyToOneAfterClosed(){\r\n EntityManager em = factory.createEntityManager();\r\n // create MyTestObject1 and a 2 with a reference from 1 to 2.\r\n MyTestObject4 o4 = new MyTestObject4();\r\n o4.setName4(\"04\");\r\n em.persist(o4);\r\n MyTestObject2 o2 = new MyTestObject2(\"ob2\", 123);\r\n o2.setMyTestObject4(o4);\r\n em.persist(o2);\r\n MyTestObject o1 = new MyTestObject();\r\n o1.setMyTestObject2(o2);\r\n em.persist(o1);\r\n em.getTransaction().commit();\r\n // close em\r\n em.close();\r\n\r\n // clean out the caches\r\n clearCaches();\r\n\r\n em = factory.createEntityManager();\r\n // get all MyTestObject2's to get them in 2nd level cache\r\n Query query = em.createQuery(\"select o from MyTestObject2 o\");\r\n List<MyTestObject2> resultList = query.getResultList();\r\n for (MyTestObject2 myTestObject2 : resultList) {\r\n System.out.println(myTestObject2);\r\n }\r\n // close em\r\n em.close();\r\n\r\n em = factory.createEntityManager();\r\n // now get 1's and touch the referenced 2's, ie: getMyTestObject2();\r\n query = em.createQuery(\"select o from MyTestObject o\");\r\n List<MyTestObject> resultList2 = query.getResultList();\r\n for (MyTestObject myTestObject : resultList2) {\r\n System.out.println(myTestObject.getMyTestObject2().getMyTestObject4());\r\n }\r\n em.close();\r\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "@Override\n\tpublic void activateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.activateEntityRelationship(id);\n\t}", "private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }", "Relationship createRelationship();", "@Override\n \tpublic void setIsPartOf(Reference isPartOf) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.isPartOf == isPartOf)\n \t\t\treturn;\n \t\t// remove from inverse relationship\n \t\tif (this.isPartOf != null) {\n \t\t\tthis.isPartOf.getContains().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.isPartOf = isPartOf;\n \t\tif (isPartOf == null)\n \t\t\treturn;\n \t\t// set inverse relationship\n \t\tisPartOf.getContains().add(this);\n \t}", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "@Override\n public void cascadePersist(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager, URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n roles.stream().forEach((role) -> {\n role.cascadePersist(\n rootRDFEntity,\n rdfEntityManager,\n overrideContext);\n });\n rdfEntityManager.persist(this, overrideContext);\n }", "protected void fillValueInOneToManyRel(Object value)\r\n\t{\r\n\t}", "@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}", "@Override\n public void storeToGraph(Set<GraphContext> graphContext) {\n\n graphContext.forEach(entry -> {\n try {\n LineageEntity fromEntity = entry.getFromVertex();\n LineageEntity toEntity = entry.getToVertex();\n\n upsertToGraph(fromEntity, toEntity, entry.getRelationshipType(), entry.getRelationshipGuid());\n } catch (Exception e) {\n log.error(VERTICES_AND_RELATIONSHIP_CREATION_EXCEPTION, e);\n }\n });\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public void setRelatedTo(java.lang.String value);", "@Override\n \t\t\t\tpublic void doAttachTo() {\n \n \t\t\t\t}", "@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\n }", "RelationalDependency createRelationalDependency();", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "void unsetFurtherRelations();", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "public void relate(HNode id, Object o);", "public void setRelationship( String relationship ) {\n this.relationship = relationship;\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }", "private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "@Test\n public void manyToOne_setJobExecution() {\n BatchStepExecution many = new BatchStepExecution();\n\n // init\n BatchJobExecution one = new BatchJobExecution();\n one.setId(ValueGenerator.getUniqueLong());\n many.setJobExecution(one);\n\n // make sure it is propagated properly\n assertThat(many.getJobExecution()).isEqualTo(one);\n\n // now set it to back to null\n many.setJobExecution(null);\n\n // make sure null is propagated properly\n assertThat(many.getJobExecution()).isNull();\n }", "public RelationshipManager createRelationshipManager() throws ServiceException {\r\n initialize(); \r\n return new RelationshipManager(multiDomainMetaService, multiDomainService);\r\n\t}", "public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\n\tpublic void deactivateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.deactivateEntityRelationship(id);\n\t}", "@Override\n public void updateBys() { updateLabelLists(getRTParent().getEntityTagTypes()); fillCommonRelationshipsMenu(); }", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}", "public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}", "public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}", "public Long getRelateId() {\n return relateId;\n }", "@Test public void springProxies() {\n\t\tlong initialCount = targetRepo.count();\n\t\tContact contact = new Contact();\n\t\tcontact.setFirstname(\"Mickey\");\n\t\tcontact.setLastname(\"Mouse\");\n\t\ttargetRepo.save(contact);\n\t\tAssert.assertEquals(\n\t\t\tinitialCount+1,\n\t\t\ttargetRepo.count()\n\t\t);\n\t}", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "public interface Impl extends PersistenceFieldElement.Impl\n\t{\n\t\t/** Get the update action for this relationship element.\n\t\t * @return the update action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getUpdateAction ();\n\n\t\t/** Set the update action for this relationship element.\n\t\t * @param action - an integer indicating the update action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpdateAction (int action) throws ModelException;\n\n\t\t/** Get the delete action for this relationship element.\n\t\t * @return the delete action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getDeleteAction ();\n\n\t\t/** Set the delete action for this relationship element.\n\t\t * @param action - an integer indicating the delete action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setDeleteAction (int action) throws ModelException;\n\n\t\t/** Determines whether this relationship element should prefetch or not.\n\t\t * @return <code>true</code> if the relationship should prefetch, \n\t\t * <code>false</code> otherwise\n\t\t */\n\t\tpublic boolean isPrefetch ();\n\n\t\t/** Set whether this relationship element should prefetch or not.\n\t\t * @param flag - if <code>true</code>, the relationship is set to \n\t\t * prefetch; otherwise, it is not\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setPrefetch (boolean flag) throws ModelException;\n\n\t\t/** Get the lower cardinality bound for this relationship element.\n\t\t * @return the lower cardinality bound\n\t\t */\n\t\tpublic int getLowerBound ();\n\n\t\t/** Set the lower cardinality bound for this relationship element.\n\t\t * @param lowerBound - an integer indicating the lower cardinality bound\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setLowerBound (int lowerBound) throws ModelException;\n\n\t\t/** Get the upper cardinality bound for this relationship element. \n\t\t * Returns {@link java.lang.Integer#MAX_VALUE} for <code>n</code>\n\t\t * @return the upper cardinality bound\n\t\t */\n\t\tpublic int getUpperBound ();\n\n\t\t/** Set the upper cardinality bound for this relationship element.\n\t\t * @param upperBound - an integer indicating the upper cardinality bound\n\t\t * (use {@link java.lang.Integer#MAX_VALUE} for <code>n</code>)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpperBound (int upperBound) throws ModelException;\n\n\t\t/** Get the collection class (for example Set, List, Vector, etc.)\n\t\t * for this relationship element.\n\t\t * @return the collection class\n\t\t */\n\t\tpublic String getCollectionClass ();\n\n\t\t/** Set the collection class for this relationship element.\n\t\t * @param collectionClass - a string indicating the type of \n\t\t * collection (for example Set, List, Vector, etc.)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setCollectionClass (String collectionClass)\n\t\t\tthrows ModelException;\n\n\t\t/** Get the element class for this relationship element. If primitive \n\t\t * types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @return the element class\n\t\t */\n\t\tpublic String getElementClass ();\n\n\t\t/** Set the element class for this relationship element.\n\t\t * @param elementClass - a string indicating the type of elements \n\t\t * in the collection. If primitive types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setElementClass (String elementClass) throws ModelException;\n\n\t\t/** Get the relative name of the inverse relationship field for this \n\t\t * relationship element. In the case of two-way relationships, the two \n\t\t * relationship elements involved are inverses of each other. If this \n\t\t * relationship element does not participate in a two-way relationship, \n\t\t * this returns <code>null</code>. Note that it is possible to have \n\t\t * this method return a value, but because of the combination of \n\t\t * related class and lookup, there may be no corresponding \n\t\t * RelationshipElement which can be found.\n\t\t * @return the relative name of the inverse relationship element\n\t\t * @see #getInverseRelationship\n\t\t */\n\t\tpublic String getInverseRelationshipName ();\n\n\t\t/** Changes the inverse relationship element for this relationship \n\t\t * element. This method is invoked for both sides from \n\t\t * {@link RelationshipElement#setInverseRelationship} and should handle \n\t\t * the vetoable change events, property change events, and setting the \n\t\t * internal variable. \n\t\t * @param inverseRelationship - a relationship element to be used as \n\t\t * the inverse for this relationship element or <code>null</code> if \n\t\t * this relationship element does not participate in a two-way \n\t\t * relationship.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void changeInverseRelationship (\n\t\t\tRelationshipElement inverseRelationship) throws ModelException;\n\t}", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}", "public void attach(final E entity) {\n if (entity.getId() != null) return;\n entity.setId(this.getNextId());\n this.entities.add(entity);\n this.id2entity.put(entity.getId(), entity);\n }", "@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);", "EReference getRelationReference();", "private <T> Mono<T> processRelations(\n\t\t\tNeo4jPersistentEntity<?> neo4jPersistentEntity,\n\t\t\tPersistentPropertyAccessor<?> parentPropertyAccessor,\n\t\t\tboolean isParentObjectNew,\n\t\t\tNestedRelationshipProcessingStateMachine stateMachine,\n\t\t\tPropertyFilter includeProperty\n\t) {\n\n\t\tPropertyFilter.RelaxedPropertyPath startingPropertyPath = PropertyFilter.RelaxedPropertyPath.withRootType(neo4jPersistentEntity.getUnderlyingClass());\n\t\treturn processNestedRelations(neo4jPersistentEntity, parentPropertyAccessor, isParentObjectNew,\n\t\t\t\tstateMachine, includeProperty, startingPropertyPath);\n\t}", "public Relations() {\n relations = new ArrayList();\n }", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "private void attachEntity(Usuario entity) {\n }", "public boolean resolve(RelationInjectionManager injection);", "public <A> void createUnidirectional(DeployBeanDescriptor<?> targetDesc, Class<A> targetType, BeanTable beanTable, DeployTableJoin oneToManyJoin) {\n\n // create the 'shadow' unidirectional property\n // which is put on the target descriptor\n DeployBeanPropertyAssocOne<A> unidirectional = new DeployBeanPropertyAssocOne<>(targetDesc, targetType);\n unidirectional.setUndirectionalShadow();\n unidirectional.setNullable(false);\n unidirectional.setDbRead(true);\n unidirectional.setDbInsertable(true);\n unidirectional.setDbUpdateable(false);\n unidirectional.setBeanTable(beanTable);\n unidirectional.setName(beanTable.getBaseTable());\n unidirectional.setJoinType(true);\n unidirectional.setJoinColumns(oneToManyJoin.columns(), true);\n\n targetDesc.setUnidirectional(unidirectional);\n }", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "public void toEntity(){\n\n }", "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "private void setupDependentEntities(final BwEvent val) throws CalFacadeException {\n if (val.getAlarms() != null) {\n for (BwAlarm alarm: val.getAlarms()) {\n alarm.setEvent(val);\n alarm.setOwnerHref(getUser().getPrincipalRef());\n }\n }\n }", "public void attach(final Object self)\n throws IllegalArgumentException, IllegalAccessException, NoSuchMethodException,\n InvocationTargetException {\n for (Class<?> currentClass = self.getClass(); currentClass != Object.class; ) {\n if (Proxy.class.isAssignableFrom(currentClass)) {\n currentClass = currentClass.getSuperclass();\n continue;\n }\n for (Field f : currentClass.getDeclaredFields()) {\n final String fieldName = f.getName();\n final Class<?> declaringClass = f.getDeclaringClass();\n\n if (OObjectEntitySerializer.isTransientField(declaringClass, fieldName)\n || OObjectEntitySerializer.isVersionField(declaringClass, fieldName)\n || OObjectEntitySerializer.isIdField(declaringClass, fieldName)) continue;\n\n Object value = OObjectEntitySerializer.getFieldValue(f, self);\n value = setValue(self, fieldName, value);\n OObjectEntitySerializer.setFieldValue(f, self, value);\n }\n currentClass = currentClass.getSuperclass();\n\n if (currentClass == null || currentClass.equals(ODocument.class))\n // POJO EXTENDS ODOCUMENT: SPECIAL CASE: AVOID TO CONSIDER\n // ODOCUMENT FIELDS\n currentClass = Object.class;\n }\n }", "public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "@Override\n public void updateRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n Iterator<Edge> edge = g.E().has(PROPERTY_KEY_RELATIONSHIP_GUID, lineageRelationship.getGuid());\n if (!edge.hasNext()) {\n log.debug(EDGE_GUID_NOT_FOUND_WHEN_UPDATE, lineageRelationship.getGuid());\n rollbackTransaction(g);\n return;\n }\n commit(graphFactory, g, this::addOrUpdatePropertiesEdge, g, lineageRelationship, PROPERTIES_UPDATE_EXCEPTION);\n }", "public void Alterar(TarefaEntity tarefaEntity){\n \n\t\tthis.entityManager.getTransaction().begin();\n\t\tthis.entityManager.merge(tarefaEntity);\n\t\tthis.entityManager.getTransaction().commit();\n\t}", "@Override\n\tpublic void orphan(DBSet db, boolean asPack) \n\t{\n\t\tdb.getAddressPersonMap().removeItem(this.recipient.getAddress());\n\t\tdb.getPersonAddressMap().removeItem(this.key, this.recipient.getAddress());\n\n\t\t//UPDATE REFERENCE OF CREATOR\n\t\t// not needthis.creator.setLastReference(this.reference, db);\t\t\n\t\t//UPDATE REFERENCE OF RECIPIENT\n\t\tthis.recipient.removeReference(db);\n\t}", "DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );", "private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }", "public void write(Entity localEntity, Object foreignEntity) {\n _propertyGateway.write(localEntity, foreignEntity);\n }", "public void atualizar(RelatorioDAO obj) {\n\t\t\n\t}", "@Override\n public void upsertRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n LineageEntity firstEnd = lineageRelationship.getSourceEntity();\n LineageEntity secondEnd = lineageRelationship.getTargetEntity();\n\n upsertToGraph(firstEnd, secondEnd, lineageRelationship.getTypeDefName(), lineageRelationship.getGuid());\n\n BiConsumer<GraphTraversalSource, LineageRelationship> addOrUpdatePropertiesEdge = this::addOrUpdatePropertiesEdge;\n commit(graphFactory, g, addOrUpdatePropertiesEdge, g, lineageRelationship,\n UNABLE_TO_ADD_PROPERTIES_ON_EDGE_FROM_RELATIONSHIP_WITH_TYPE +\n lineageRelationship.getTypeDefName() + AND_GUID + lineageRelationship.getGuid());\n }", "private void updateOrCreate(Resource subject, Property property, Object o) {\r\n\t\tStatement existingRelation = subject.getProperty(property);\r\n\t\tif (existingRelation != null)\r\n\t\t\tsubject.removeAll(property);\r\n\t\tsubject.addProperty(property, _write(o, true));\r\n\t}", "@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }", "@Test\n\tpublic void testSetValueMult1to1OverwriteInverse() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tuser.setPerson(jojo);\n\t\tAssert.assertSame(jojo, user.getPerson());\n\t\tAssert.assertSame(user, jojo.getUser());\n\t\tAssert.assertNull(martin.getUser());\n\n\t\t// test: relink martin to user (other way round)\n\t\tmartin.setUser(user);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}", "org.hl7.fhir.ObservationRelated addNewRelated();", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "public void entityReference(String name);", "public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProjectId(((NumberKey) key).intValue());\n }", "@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }", "public void addRelationship(String fm_field, String fm_symbol_str, boolean fm_typed,\n String to_field, String to_symbol_str, boolean to_typed, \n String style_str, boolean ignore_ns, boolean built_in, Bundles to_add) {\n String fm_pre = \"\", to_pre = \"\";\n\n // DEBUG\n // System.err.println(\"fm_field =\\\"\" + fm_field + \"\\\"\"); System.err.println(\"fm_symbol=\\\"\" + fm_symbol_str + \"\\\"\"); System.err.println(\"fm_typed =\\\"\" + fm_typed + \"\\\"\");\n // System.err.println(\"to_field =\\\"\" + to_field + \"\\\"\"); System.err.println(\"to_symbol=\\\"\" + to_symbol_str + \"\\\"\"); System.err.println(\"to_typed =\\\"\" + to_typed + \"\\\"\");\n\n if (fm_typed) fm_pre = fm_field + BundlesDT.DELIM;\n if (to_typed) to_pre = to_field + BundlesDT.DELIM;\n\n Utils.Symbol fm_symbol = Utils.parseSymbol(fm_symbol_str),\n to_symbol = Utils.parseSymbol(to_symbol_str);\n\n // Keep track of existing relationships, update the longer term ones\n String encoded_relationship_str = Utils.encToURL(fm_field) + BundlesDT.DELIM + Utils.encToURL(fm_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + fm_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(to_field) + BundlesDT.DELIM + Utils.encToURL(to_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + to_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(style_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + ignore_ns);\n if (active_relationships.contains(encoded_relationship_str) == false) active_relationships.add(encoded_relationship_str);\n if (built_in == false) updateRecentRelationships(encoded_relationship_str);\n // Is this an addition or from scratch?\n Bundles bundles; if (to_add == null) bundles = getRTParent().getRootBundles(); else bundles = to_add;\n BundlesG globals = bundles.getGlobals();\n // Go through the tablets\n Iterator<Tablet> it_tablet = bundles.tabletIterator();\n while (it_tablet.hasNext()) {\n Tablet tablet = it_tablet.next();\n\t// Check to see if this table will complete both blanks, if so, go through the bundles adding the edges to the graphs\n\tif (KeyMaker.tabletCompletesBlank(tablet,fm_field) && KeyMaker.tabletCompletesBlank(tablet,to_field)) {\n\t // Create the key makers\n\t KeyMaker fm_km = new KeyMaker(tablet,fm_field), to_km = new KeyMaker(tablet,to_field);\n\t // Go through the bundles\n\t Iterator<Bundle> it_bundle = tablet.bundleIterator();\n\t while (it_bundle.hasNext()) {\n\t Bundle bundle = it_bundle.next();\n\t // Create the combinator for the from and to keys\n\t String fm_keys[], to_keys[];\n // Transform the bundle to keys\n\t fm_keys = fm_km.stringKeys(bundle);\n\t to_keys = to_km.stringKeys(bundle);\n\t // Make the relationships\n if (fm_keys != null && fm_keys.length > 0 && to_keys != null && to_keys.length > 0) {\n for (int i=0;i<fm_keys.length;i++) for (int j=0;j<to_keys.length;j++) {\n\t // Check for not sets if the flag is specified\n if (ignore_ns && (fm_keys[i].equals(BundlesDT.NOTSET) || to_keys[j].equals(BundlesDT.NOTSET))) continue;\n\t\t// The key will be a combination of the header and the entity\n String fm_fin = fm_pre + fm_keys[i], to_fin = to_pre + to_keys[j];\n\t\t// If we're in retain mode only, make sure both nodes exist in the set\n\t\tif (retained_nodes != null && retained_nodes.size() > 0 && (retained_nodes.contains(fm_fin) == false || retained_nodes.contains(to_fin) == false)) continue;\n // Set the shape\n if (entity_to_shape.containsKey(fm_fin) == false) entity_to_shape.put(fm_fin, fm_symbol);\n\t\tif (entity_to_shape.containsKey(to_fin) == false) entity_to_shape.put(to_fin, to_symbol);\n // Create the initial world coordinate and transform as appropriate \n\t\tif (entity_to_wxy.containsKey(fm_fin) == false) { \n\t\t entity_to_wxy.put(fm_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n transform(fm_fin); }\n\t\tif (entity_to_wxy.containsKey(to_fin) == false) { \n\t\t entity_to_wxy.put(to_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n\t\t transform(to_fin); }\n // Add the reference back to this object\n graph.addNode(fm_fin); graph.addNode(to_fin);\n digraph.addNode(fm_fin); digraph.addNode(to_fin);\n // Set the weights equal to the number of bundles on the edge\n double previous_weight = graph.getConnectionWeight( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin)),\n di_previous_weight = digraph.getConnectionWeight(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin));\n // Check for infinite because the graph class returns infinite if two nodes are not connected\n if (Double.isInfinite( previous_weight)) previous_weight = 0.0;\n if (Double.isInfinite(di_previous_weight)) di_previous_weight = 0.0;\n // Finally, add them to both forms of the graphs\n\t \t graph.addNeighbor(fm_fin, to_fin, previous_weight + 1.0);\n graph.addNeighbor(to_fin, fm_fin, previous_weight + 1.0);\n\t\tdigraph.addNeighbor(fm_fin, to_fin, di_previous_weight + 1.0);\n // System.err.println(\"RTGraphPanel.addRelationship() : \\\"\" + fm_fin + \"\\\" => \\\"\" + to_fin + \"\\\": w=\" + (previous_weight+1.0) + \" | di_w=\" + (di_previous_weight+1.0));\n\t\t graph.addLinkReference( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin), bundle);\n\t\t graph.addLinkReference( graph.getEntityIndex(to_fin), graph.getEntityIndex(fm_fin), bundle);\n\t\tdigraph.addLinkReference(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), bundle);\n // Keep track of the link style\n digraph.addLinkStyle(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), style_str);\n\t }\n\t }\n }\n\t}\n }\n // Nullify the biconnected components\n graph_bcc = null;\n graph2p_bcc = null;\n cluster_cos = null;\n conductance = null;\n // Re-render\n getRTComponent().render();\n }", "private ManagedObject adopt(final EntityChangeTracker entityChangeTracker, final Object fetchedObject) {\n if(fetchedObject instanceof Persistable) {\n // an entity\n val entity = objectManager.adapt(fetchedObject);\n //fetchResultHandler.initializeEntityAfterFetched((Persistable) fetchedObject);\n entityChangeTracker.recognizeLoaded(entity);\n return entity;\n } else {\n // a value type\n return objectManager.adapt(fetchedObject);\n }\n }", "public Product getProductRelatedByRelProductId() throws TorqueException\n {\n if (aProductRelatedByRelProductId == null && (this.relProductId != 0))\n {\n aProductRelatedByRelProductId = ProductPeer.retrieveByPK(SimpleKey.keyFor(this.relProductId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Product obj = ProductPeer.retrieveByPK(this.relProductId);\n obj.addNewslettersRelatedByRelProductId(this);\n */\n }\n return aProductRelatedByRelProductId;\n }", "public void cascadePersist(\n final RDFEntityManager rdfEntityManager,\n final URI overrideContext) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n\n cascadePersist(this, rdfEntityManager, overrideContext);\n }", "public void setPrefetch (boolean flag) throws ModelException\n\t{\n\t\tgetRelationshipImpl().setPrefetch(flag);\n\t}", "@Override\n\t\tpublic Iterable<Relationship> getRelationships() {\n\t\t\treturn null;\n\t\t}", "boolean isSetFurtherRelations();", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "public void setTransitive(boolean transitive) {\n this.transitive = transitive;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public Relationship getRelationship() {\n\t\treturn relationship;\n\t}" ]
[ "0.59397984", "0.5845948", "0.5736148", "0.5680497", "0.56417286", "0.5588755", "0.5571661", "0.55035615", "0.54793805", "0.544738", "0.5419627", "0.5396332", "0.5333803", "0.53217745", "0.53104186", "0.530557", "0.5236446", "0.5197751", "0.5191205", "0.5176093", "0.5154204", "0.5116559", "0.50976425", "0.5077805", "0.5051285", "0.5042512", "0.50318086", "0.503006", "0.4970159", "0.49513406", "0.49458238", "0.49374902", "0.49302632", "0.49300957", "0.4923973", "0.4920859", "0.491096", "0.49027047", "0.48796374", "0.48776242", "0.48649716", "0.48647428", "0.4864202", "0.48636895", "0.48621398", "0.48607737", "0.48487708", "0.4834175", "0.48231253", "0.48205844", "0.48034057", "0.4797626", "0.47938275", "0.47929052", "0.47860247", "0.47807708", "0.47797635", "0.4774839", "0.47693846", "0.47606766", "0.47580177", "0.47398502", "0.47377217", "0.47340387", "0.4733525", "0.47293594", "0.47273758", "0.47241476", "0.47215593", "0.47164893", "0.47128466", "0.47104353", "0.47100976", "0.4704355", "0.46978545", "0.46881557", "0.46854737", "0.46744895", "0.4674403", "0.46742412", "0.46734455", "0.46723565", "0.46694508", "0.46693015", "0.46642566", "0.46610615", "0.4660228", "0.46511516", "0.4648726", "0.46484432", "0.4645184", "0.4644304", "0.46392512", "0.46354312", "0.4629346", "0.4628793", "0.46280634", "0.46268883", "0.4626546", "0.46211424", "0.46187168" ]
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetMalariadetails() { malariadetails = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void delIncomingRelations();", "@Override\n public void reset()\n {\n this.titles = new ABR();\n this.years = new ABR();\n this.votes = new ABR();\n this.director = new ABR();\n\n for(int i = 0; i < this.movies.length; i++)\n this.movies.set(i, null);\n }", "public void delRelations();", "public void unAssignFromAllGames() {\n for (Game game : getGames()) {\n game.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllGames(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }", "public abstract void resetQuery();", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "protected void reset() {\n\t\tadaptees.clear();\n\t}", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "private void reset() {\r\n\t\t\tref.set(new CountDownLatch(parties));\r\n\t\t}", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "public void clearPolymorphismTairObjectId() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "public void reset() {\n this.isExhausted = false;\n }", "private <T extends IEntity> void clearRetrieveValues(T entity) {\n Key pk = entity.getPrimaryKey();\n entity.clear();\n entity.setPrimaryKey(pk);\n }", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "GroupQueryBuilder reset();", "@Generated\n public synchronized void resetProveedores() {\n proveedores = null;\n }", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "public synchronized void resetSales() {\n sales = null;\n }", "public void resetTracking() {\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.clear();\n\t\transac.reset();\n\t}", "public synchronized void clear() {\n _transient.clear();\n _persistent.clear();\n _references.clear();\n }", "public void resetModification()\n {\n _modifiedSinceSave = false;\n }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}", "void removeRelated(int i);", "public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }", "public void resetArboles()\r\n {\r\n this.arboles = null;\r\n }", "void reset()\n {\n reset(values);\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }", "public void resetData() {\n user = new User();\n saveData();\n }", "private void resetAll() {\n resetResources();\n resetStory();\n refresh();\n }", "private void clearOtherId() {\n \n otherId_ = 0;\n }", "public void unReset () {\n count = lastSave;\n }", "public void clear() {\n entityManager.clear();\n }", "@Override\n public Builder resetModel(boolean reallyReset) {\n super.resetModel(reallyReset);\n return this;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void reset() {\n context.reset();\n state = State.NAME;\n }", "public void reset() {\r\n properties.clear();\r\n }", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "public synchronized void resetCollections() {\n collections = null;\n }", "public void reset()\n\t{\n\t\tassociations = new Vector<Association>();\n\t\tif(hotspots != null)\n\t\t{\n\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t{\n\t\t\t\thotspots.elementAt(i).bound = null;\n\t\t\t\thotspots.elementAt(i).setHighlighted(false);\n\t\t\t}\n\t\t}\n\n\t\tif(movableObjects != null)\n\t\t{\n\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t{\n\t\t\t\tmovableObjects.elementAt(i).resetPos();\n\t\t\t\tmovableObjects.elementAt(i).bound = null;\n\t\t\t}\n\t\t}\n\t\tuser_responses=0;\n\t\tmov = null;\n\t\tstart = null;\n\t\tmpos = null;\n\t\tsetFeedback();\n\t\trepaint();\n\t}", "public void revertChanges()\n {\n // TODO: Find a good way to revert changes\n // reload patient\n HibernateUtil.currentSession().evict(_dietTreatment.getModel());\n PatientDAO dao = DAOFactory.getInstance().getPatientDAO();\n _patient.setModel(dao.findById(_patient.getPatientId(), false));\n }", "public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "public void resetTipoRecurso()\r\n {\r\n this.tipoRecurso = null;\r\n }", "public OccList reset()\n {\n size = 0;\n return this;\n }", "public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void clearBids(){\n this.bids.clear();\n setRequested();\n }", "public void rewind() throws DbException, TransactionAbortedException {\n child1.rewind();\n child2.rewind();\n this.leftMap.clear();\n this.rightMap.clear();\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "void resetData(ReadOnlyExpenseTracker newData) throws NoUserSelectedException;", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public void clearLinks(){\r\n varContextObject=null; \r\n varContextFields=null; \r\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public static void clearPreviousArtists(){previousArtists.clear();}", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "public void resetListaId()\r\n {\r\n this.listaId = null;\r\n }", "public static void reset() {\n\t\tE_Location.THIS.reset();\n\t\tE_Resource.THIS.reset();\n\t\t\n\t\tT_Object.reset();\n\t\tT_Location.reset();\n\t\tT_Resource.reset();\n\t\t\n\t}", "@Override\n public void resetAllValues() {\n }", "void resetData(ReadOnlyAddressBook newData);", "public void resetAllIdCounts() {\n \t\tthis.userCounterIdCounter = 0;\n \t\tthis.questionIdCounter = 0;\n \t\tthis.answerIdCounter = 0;\n \t\tthis.commentIdCounter = 0;\n \t}", "public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}", "@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}", "protected void reset(Opportunities dto)\r\n\t{\r\n\t\tdto.setIdModified( false );\r\n\t\tdto.setSupplierIdModified( false );\r\n\t\tdto.setUniqueProductsModified( false );\r\n\t\tdto.setPortfolioModified( false );\r\n\t\tdto.setRecongnisationModified( false );\r\n\t\tdto.setKeyWordsModified( false );\r\n\t\tdto.setDateCreationModified( false );\r\n\t\tdto.setDateModificationModified( false );\r\n\t}", "public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public void reset(){\n star.clear();\n planet.clear();\n }", "public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }", "public void reset() {\n this.list.clear();\n }", "public void reset() {\n\t\t\twhile (requisitionItemGrid.getColumnCount() > 0)\n\t\t\t\trequisitionItemGrid.removeColumn(0);\n\n\t\t\tbmoRequisitionType = (BmoRequisitionType)requisitionTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoRequisitionType == null)\n\t\t\t\tbmoRequisitionType = bmoRequisition.getBmoRequisitionType();\n\n\t\t\t// Crea las columnas\n\t\t\tsetColumns();\n\n\t\t\tupdateAmount(id);\n\t\t\tdata.list();\n\t\t\trequisitionItemGrid.redraw();\n\t\t}", "public void reset() {\n resetData();\n postInvalidate();\n }", "private void resetIdsToFind()\r\n\t{\r\n\t\t/*\r\n\t\t * Reset all lists of given search items to empty lists, indicating full\r\n\t\t * search without filtering, if no search items are added.\r\n\t\t */\r\n\t\tsetSpectrumIdsTarget(new ArrayList<String>());\r\n\t}", "public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }", "public void clear() throws ChangeVetoException;", "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 }", "void reset(boolean preparingForUpwardPass) {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : getIncomingNeighborEdges(preparingForUpwardPass)) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected void ResetBaseObject() {\r\n\t\tsuper.ResetBaseObject();\r\n\r\n\t\t// new Base Object\r\n\t\tbaseEntity = new Chooseval();\r\n\r\n\t\t// new other Objects and set them into Base object\r\n\r\n\t\t// refresh Lists\r\n\t\tbaseEntityList = ChoosevalService.FindAll(\"id\", JPAOp.Asc);\r\n\t}", "private void resetReference(ThingTimeTriple triple)\r\n/* 221: */ {\r\n/* 222:184 */ this.previousTriples.put(triple.t.getType(), triple);\r\n/* 223:185 */ this.previousTriple = triple;\r\n/* 224: */ }", "public void reset() {\n super.reset();\n }", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void reset() {\n\t\tacceptAnswers = false;\n\t\tcurrentQuestion = null;\n\t\tsubmissions = null;\n\t}", "protected void reset() {\n leftSkier.reset();\n rightSkier.reset();\n }", "private void resetStory() {\n storyManager.resetAllStories();\n user.setCurrentStoryNode(0);\n }", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "public void resetParents() {\n businessentityController.setSelected(null);\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public final void resetFavorites() {\n Favorites favorites = Favorites.INSTANCE;\n favorites.clear();\n favorites.load(this.persistenceWrapper.readFavorites());\n }", "public void reset() {\n for (Vertex v : vertices) {\n v.path = false;\n v.visited = false;\n }\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n }" ]
[ "0.6747352", "0.6169952", "0.60056156", "0.5843151", "0.5639269", "0.5581446", "0.5563037", "0.55015767", "0.548783", "0.5456732", "0.54171634", "0.5381268", "0.53617096", "0.5351383", "0.53320163", "0.53242475", "0.52904886", "0.52863044", "0.52736586", "0.5256235", "0.5250891", "0.52466387", "0.52380407", "0.5220043", "0.5207152", "0.51840085", "0.5167213", "0.5110994", "0.51085526", "0.50989574", "0.5094157", "0.5091222", "0.50911045", "0.50848943", "0.50839186", "0.5077499", "0.5074814", "0.50742495", "0.50720704", "0.50706977", "0.50686705", "0.50662714", "0.50561935", "0.50558597", "0.50443304", "0.5037771", "0.5036319", "0.50355756", "0.5033892", "0.50267375", "0.5019551", "0.501407", "0.5010897", "0.50108796", "0.5007768", "0.50046986", "0.49967206", "0.49952793", "0.4987776", "0.49875844", "0.4980316", "0.49789694", "0.49776003", "0.4968623", "0.49661565", "0.4948842", "0.494858", "0.49456495", "0.49432755", "0.49389538", "0.49362963", "0.49336287", "0.49302515", "0.49289885", "0.4928563", "0.49234775", "0.49219596", "0.49213576", "0.4921164", "0.4918298", "0.49165192", "0.4912199", "0.4911418", "0.49076414", "0.49045125", "0.49015746", "0.49004078", "0.48998377", "0.4897391", "0.48933738", "0.48911625", "0.48911476", "0.48893324", "0.4886565", "0.48852515", "0.4875505", "0.4871901", "0.4869651", "0.48692313", "0.48653355", "0.48627707" ]
0.0
-1
Returns a copy of a recently added record.
public Record copy() { return new Record( this.id, this.location.copy(), this.score ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}", "public QueueEntry copy() {\n return new QueueEntry(playerName, string, loc, type);\n }", "RecordInfo clone();", "public Object clone(){\n\t\tSongRecord cloned = new SongRecord();\n\t\tif (this.title == null){\n\t\t\tcloned.title = null;\n\t\t}\n\t\telse {\n\t\t\tcloned.title = new String(this.getTitle());\n\t\t}\n\t\tif (this.artist == null){\n\t\t\tcloned.artist = null;\n\t\t}\n\t\telse {\n\t\t\tcloned.artist = new String(this.getArtist());\n\t\t}\n\t\tcloned.min = this.getMin();\n\t\tcloned.sec = this.getSec();\n\t\treturn cloned;\n\t}", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "public Instant getRecordDate() {\n\t\treturn Record;\n\t}", "@Override\n public ReplicateRecord record (DomainRecord record) {\n this.record = record;\n return this;\n }", "public Record getCurrentRecord() {\n return mCurrentRecord;\n }", "public R onInsert(final R record) {\n // can be overridden.\n return record;\n }", "public @NonNull R getFoundRecord() {\n if (!foundItems.isEmpty()) {\n return foundItems.get(recordIndex);\n// assert foundRecord != null;\n// return Objects.requireNonNull(foundRecord);\n }\n R emptyRecord = createNewEmptyRecord();\n foundItems.add(emptyRecord);\n fireModelListChanged(); // Is it dangerous to fire the listener before returning the record?\n return emptyRecord;\n }", "private ListGridRecord getEditedRecord(DSRequest request) {\n\t\tJavaScriptObject oldValues = request\n\t\t\t\t.getAttributeAsJavaScriptObject(\"oldValues\");\n\t\t// Creating new record for combining old values with changes\n\t\tListGridRecord newRecord = new ListGridRecord();\n\t\t// Copying properties from old record\n\t\tJSOHelper.apply(oldValues, newRecord.getJsObj());\n\t\t// Retrieving changed values\n\t\tJavaScriptObject data = request.getData();\n\t\t// Apply changes\n\t\tJSOHelper.apply(data, newRecord.getJsObj());\n\t\treturn newRecord;\n\t}", "private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}", "private LinkgrabberFilterRule getCurrentCopy() {\r\n LinkgrabberFilterRule ret = this.rule.duplicate();\r\n save(ret);\r\n return ret;\r\n }", "public com.walgreens.rxit.ch.cda.TS addNewBirthTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.TS target = null;\n target = (com.walgreens.rxit.ch.cda.TS)get_store().add_element_user(BIRTHTIME$12);\n return target;\n }\n }", "private static Record getOrAddRecord(HashMap<Player, Record> recordHashMap, Player player) {\n if (recordHashMap.containsKey(player)) {\n return recordHashMap.get(player);\n } else {\n Record record = new Record().setPlayer(player);\n recordHashMap.put(player, record);\n return record;\n }\n }", "public VcfRecord peek() {\n if (mCurrent == null) {\n throw new IllegalStateException(\"No more records\");\n }\n return mCurrent;\n }", "private ListGridRecord getEditedRecord(DSRequest request)\n {\n JavaScriptObject oldValues = request.getAttributeAsJavaScriptObject(\"oldValues\");\n // Creating new record for combining old values with changes\n ListGridRecord newRecord = new ListGridRecord();\n // Copying properties from old record\n JSOHelper.apply(oldValues, newRecord.getJsObj());\n // Retrieving changed values\n JavaScriptObject data = request.getData();\n // Apply changes\n JSOHelper.apply(data, newRecord.getJsObj());\n return newRecord;\n }", "public AudioMetadata copyOf()\n\t{\n\t\tAudioMetadata copy = new AudioMetadata( mSource, mSourceRecordable );\n\t\t\n\t\tcopy.mPriority = mPriority;\n\t\tcopy.mSelected = mSelected;\n\t\tcopy.mRecordable = mRecordable;\n\t\tcopy.mMetadata.addAll( mMetadata );\n\t\tcopy.mUpdated = mUpdated;\n\t\tcopy.mIdentifier = new String( mIdentifier );\n\t\t\n\t\tmUpdated = false;\n\t\t\n\t\treturn copy;\n\t}", "void addRecord(HistoryRecord record) throws IOException;", "public HistoryEntry getLastEntry() {\n\t\t\treturn null;\n\t\t}", "public ExpressedConditionRecord clone() {\n ExpressedConditionRecord data = new ExpressedConditionRecord(this.person);\n data.sources.putAll(this.sources);\n return data;\n }", "public Record toRecord() {\n return new Record().setColumns(this);\n }", "public boolean isNewRecord() {\n return newRecord;\n }", "public Item getLast();", "public ODataRetrieve addRetrieve() {\n closeCurrentItem();\n\n // stream dash boundary\n streamDashBoundary();\n\n final ODataRetrieveResponseItem expectedResItem = new ODataRetrieveResponseItem();\n currentItem = new ODataRetrieve(req, expectedResItem);\n\n expectedResItems.add(expectedResItem);\n\n return (ODataRetrieve) currentItem;\n }", "public SuperPeer record(String messageID, IPv4 peer) {\n this.log(String.format(\"-> recording new msg '%s'...\", messageID));\n this.history.add(messageID);\n this.mappedHistory.put(messageID, peer);\n if (this.history.size() > this.historySize) {\n // history got too large, remove oldest entry\n String mid = this.history.remove(0);\n this.mappedHistory.remove(mid);\n }\n return this;\n }", "public T getLast();", "public T getLast();", "public BufferTWeak cloneMe() {\r\n BufferTWeak ib = new BufferTWeak(uc);\r\n ib.increment = increment;\r\n ib.set(new Object[objects.length]);\r\n for (int i = 0; i < objects.length; i++) {\r\n ib.objects[i] = this.objects[i];\r\n }\r\n ib.offset = this.offset;\r\n ib.count = this.count;\r\n return ib;\r\n }", "int insert(EvaluationRecent record);", "public void insertHistory(RecordDTO recordDTO);", "protected T copy() {\n\n // Initialize.\n T copy = null;\n\n try {\n\n // Create an instance of this entity class.\n copy = this.entityClass.newInstance();\n\n // Create a copy.\n copy.setCreateTime(this.getCreateTime());\n copy.setId(this.getId());\n copy.setModifyTime(this.getModifyTime());\n }\n catch (IllegalAccessException e) {\n // Ignore.\n }\n catch (InstantiationException e) {\n // Ignore.\n }\n\n return copy;\n }", "public Client copy() {\n\t\tClient clone = new Client(ID, Email, PostalAddress);\n\t\treturn(clone);\n\t}", "public void addRecord();", "public String fetchRecentChange(){\n\t\treturn recentChange;\n\t}", "public T copyOnWrite() {\n T r = ref;\n if(r.getRefCount() <= 1) { return r; }\n @SuppressWarnings(\"unchecked\")\n T r2 = (T)r.clone();\n r.removeRef();\n ref = r2;\n r2.addRef();\n return r2;\n }", "public SinglyLinkedList<E> copy() {\n SinglyLinkedList<E> copy = new SinglyLinkedList<>();\n for(Node<E> cur = head; cur != null; cur = cur.next) {\n copy.addLast(cur.item);\n }\n return copy;\n }", "@Override\r\n\tpublic Record getNextSnapShotRecord() {\n\t\tif (iterSnapshot == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tif (iterSnapshot.hasNext())\r\n\t\t\treturn iterSnapshot.next();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public Record getRecord() {\n return record;\n }", "public Record getRecord() {\n return record;\n }", "IDataRow getCopy();", "public Record makeReferenceRecord(RecordOwner recordOwner)\n {\n try {\n return (Record)this.getRecord().clone();\n } catch (CloneNotSupportedException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "@Override\n public Object clone() {\n return new ShortDate(getTime());\n }", "int insertSelective(TbSnapshot record);", "@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }", "public DataPoint getLastAddedPoint() {\n return lastAddedPoint;\n }", "public History getHistory(Patient patient) {\n return new History(getEncounters(patient));\n }", "public void addNewRecord(TrajectoryTableRow newrecord){\r\n\t\tthis.data.add(newrecord);\r\n\t}", "public Date getDateAdded();", "public Line copy() {\n return new Line(getWords());\n }", "public LiveData<PersonEntity> getLatestEntry() {\n return latestPersonEntry;\n }", "int insertSelective(RecordLike record);", "public Punch getShallowCopy(){\n Punch p = new Punch();\n p.id = id;\n p.time = time;\n //p.taskId = punchTask.getID();\n return p;\n }", "public CardSet takeSnapshot() {\n resetCardStates();\n\n CardSet snapshot = cardSet.getSnapshot();\n snapshots.push(snapshot);\n return snapshot;\n }", "@Override\r\n\tpublic int insertSelective(CardTime record) {\n\t\treturn cardTimeMapper.insertSelective(record);\r\n\t}", "public void saveCurrentRecord() {\n ThreadUtil.executeOnNewThread(new Runnable() {\n @Override\n public void run() {\n SharedPreferences recordPreferences = mContext.getSharedPreferences(RECORD_PREFERENCES, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = recordPreferences.edit();\n if (mCurrentRecord == null) {\n editor.putString(CURRENT_RECORD_KEY, null);\n } else {\n String recordJson = mGson.toJson(mCurrentRecord);\n editor.putString(CURRENT_RECORD_KEY, recordJson);\n }\n editor.apply();\n\n if (mCurrentRecord != null) {\n saveRecord(mCurrentRecord);\n }\n }\n });\n }", "private ArrayList<Record> getItemsToAdd() {\r\n\t\tArrayList<Record> list = new ArrayList<Record>();\r\n\r\n\t\tlist = myConn.populateRecords();\r\n\t\t//myConn.connectionClose();\r\n\r\n\t\treturn list;\r\n\t}", "EvaluationRecent selectByPrimaryKey(String id);", "@Override\r\n\tpublic int insert(CardTime record) {\n\t\treturn cardTimeMapper.insert(record);\r\n\t}", "InstantDt createHistoryToTimestamp() {\n\t\treturn InstantDt.withCurrentTime();\n\t}", "public EventStack<T> deepCopy() {\n final Stack<EventStackEntry<T>> copiedStack = new Stack<>();\n for (final EventStackEntry<T> iterEntry : eventStack) {\n copiedStack.push(iterEntry.deepCopy());\n }\n final EventStack<T> copiedOutput = new EventStack<>(firstEventTime);\n copiedOutput.setStack(copiedStack);\n return copiedOutput;\n }", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public Object findRecord(Object key) \n\t{\n\t check(\"find\", key);\n \n\t Object record = htRecords.get(key);\n\t if ( record != null )\n\t {\n\t\t //--- Return a copy of the record\n\t return copy ( record );\n\t }\n\t else\n\t {\n\t return null ;\n\t }\n\t}", "public DateAdp Modified_latest() {return modified_latest;}", "String getAdded();", "int insert(RecordLike record);", "public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }", "public org.landxml.schema.landXML11.TimingDocument.Timing addNewTiming()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.TimingDocument.Timing target = null;\r\n target = (org.landxml.schema.landXML11.TimingDocument.Timing)get_store().add_element_user(TIMING$2);\r\n return target;\r\n }\r\n }", "public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }", "public CellBackup withoutModified() {\n if (!this.modified) return this;\n return new CellBackup(this.cellRevision, this.techPool, false);\n }", "public Field copy()\n {\n return new Field(name, type, vis);\n }", "public Taxi getLastInserted() {\n\t\t\n\t\tprepareStatement();\n\t\t\n\t\tquery = \"SELECT * FROM TAXI ORDER BY update DESC LIMIT 1\";\n\t\t\n\t\tlogger.debug(\"Taxi ->getLastInserted()\");\n\t\tlogger.debug(query);\n\t\t\n\t\texecuteStatement();\t\n\t\t\n\t\tassignResult();\n\t\t\n\t\treturn taxi;\n\t}", "public Date getRecordDate() {\n return recordDate;\n }", "public Line copy() {\r\n Line l = new Line();\r\n l.line = new ArrayList < Point > (this.line);\r\n l.direction = this.direction;\r\n l.clickedPoint = this.clickedPoint;\r\n return l;\r\n }", "public Integer getCurrentRecord() {\n return this.currentRecord;\n }", "@Override\r\n\tpublic RequestsTracker getRecentRequests() {\r\n\t\treturn recentRequestsTracker.snapshot(true);\r\n\t}", "public DataFrame copy() {\n return new DataFrame(data.values, header.values, index.values);\n }", "public JsonMember copy() {\n return new JsonMember(name, value.copy());\n }", "@Override\n public LocalStore<V> copy() {\n return this;\n }", "public Date getDateOfAdded() {\n\t\treturn dateOfAdded;\n\t}", "public Paper clone() \r\n\t{\r\n\t\tPaper copy = null;\r\n\t\ttry\r\n\t\t{ \r\n\t\t\tcopy = new Paper(this.getId(), new String(this.getTitle()), new String(this.getURI()),\r\n\t\t\t\tthis.year, new String(this.biblio_info), \r\n\t\t\t\tnew String(this.authors), new String(this.url) ); \r\n\t\t}\r\n\t\tcatch (Exception e) { e.printStackTrace(System.out); }\r\n\t\treturn copy;\r\n\t}", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "int insert(TbSnapshot record);", "public Record getRecord(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(Record.TABLE_NAME,\n new String[]{Record.COLUMN_ID,\n Record.COLUMN_TITLE,\n Record.COLUMN_AUTHOR,\n Record.COLUMN_DESCRIPTION,\n Record.COLUMN_URL,\n Record.COLUMN_IMAGE,\n Record.COLUMN_CONTENT,\n Record.COLUMN_TIMESTAMP},\n Record.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare record object\n Record record = new Record(\n cursor.getInt(cursor.getColumnIndex(Record.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TITLE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_AUTHOR)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_DESCRIPTION)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_URL)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_IMAGE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_CONTENT)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return record;\n }", "protected ORecordInternal<?> popRecord(final ORID iRID) {\n\t\tif (maxSize == 0)\n\t\t\t// PRECONDITIONS\n\t\t\treturn null;\n\n\t\tacquireExclusiveLock();\n\t\ttry {\n\t\t\treturn entries.remove(iRID);\n\t\t} finally {\n\t\t\treleaseExclusiveLock();\n\t\t}\n\t}", "public O last()\r\n {\r\n if (isEmpty()) return null;\r\n return last.getObject();\r\n }", "T latest();", "public nc.vo.crd.bd.interf.zyhtvo.ZyhtVO addNewZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().add_element_user(ZYHTVO$0);\n return target;\n }\n }", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "public Record readRecord(int recordId) {\n return records[recordId];\n }", "public Ping dup (Ping self)\n {\n if (self == null)\n return null;\n\n Ping copy = new Ping ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.digest = new ArrayList <State> (self.digest);\n return copy;\n }", "Book getLatestBook();", "public Address copy() {\n\t\tAddress copy = new Address(this.street, this.city, this.state, this.zipCode);\n\t\treturn copy;\n\t}", "synchronized public Document[] get ()\n \t{\n \t\tint ndx = 0;\n \t\tDocument[] rslt = new Document[theLoanList.numberOfRecords()];\n \t\tDuplicateLoanDataVO dataVO = null;\n \n \t\ttheLoanList.reset();\n \t\twhile (theLoanList.hasNext())\n \t\t{\n \t\t\tdataVO = (DuplicateLoanDataVO)theLoanList.next();\n \t\t\trslt[ndx++] = (Document)dataVO.getDocument();\n \t\t}\n \n \t\treturn rslt;\n \t}", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "public Join dup (Join self)\n {\n if (self == null)\n return null;\n\n Join copy = new Join ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.group = self.group;\n copy.status = self.status;\n return copy;\n }", "public Whisper dup (Whisper self)\n {\n if (self == null)\n return null;\n\n Whisper copy = new Whisper ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.content = self.content.duplicate ();\n return copy;\n }", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "public Gateway copyChanges() {\n Gateway copy = new Gateway();\n copy.mergeChanges(this);\n copy.resetChangeLog();\n return copy;\n }", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }" ]
[ "0.68950474", "0.61691505", "0.61217344", "0.5930527", "0.56351745", "0.55587405", "0.5544232", "0.5531679", "0.5492501", "0.5463112", "0.53958595", "0.53774077", "0.53718495", "0.5364373", "0.5338883", "0.53177553", "0.53147066", "0.52747965", "0.5267417", "0.526396", "0.52330846", "0.52203184", "0.52022654", "0.519534", "0.5191025", "0.51868296", "0.51818717", "0.51818717", "0.5173463", "0.51663786", "0.51647335", "0.51525724", "0.5148829", "0.5142753", "0.5138671", "0.51142114", "0.5106852", "0.5105973", "0.5102105", "0.5102105", "0.50934416", "0.50876874", "0.5082455", "0.50810295", "0.5079205", "0.50790405", "0.5077887", "0.50654656", "0.5035984", "0.5035339", "0.50259465", "0.5025279", "0.502421", "0.5024053", "0.5019406", "0.5014596", "0.50064635", "0.50062907", "0.5005129", "0.5000769", "0.4997473", "0.49966168", "0.49949273", "0.49847913", "0.49797124", "0.4967824", "0.49598315", "0.49568748", "0.49539745", "0.49475798", "0.4943852", "0.4942017", "0.49400756", "0.49358594", "0.49351466", "0.49290106", "0.4923421", "0.4916033", "0.49152678", "0.49094865", "0.48952478", "0.48919874", "0.48801315", "0.48796886", "0.48769528", "0.48750582", "0.4874814", "0.48744893", "0.4873352", "0.48682633", "0.48651913", "0.48643383", "0.48605874", "0.48538777", "0.48491955", "0.48417515", "0.48415783", "0.4841156", "0.48318863", "0.48286214" ]
0.7258684
0
Tests to ensure that a record can be written to the database and a proper ID generated for it
@Test public void addToDb() { service.save(opinion); assertNotEquals(opinion.getId(), 0); assertTrue(service.exists(opinion.getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSave() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(\"Super Ultra Hard Assignment\",true);\n\t\tassertTrue(id != -1);\n\t}", "@Test\n void insertSuccess() {\n Date today = new Date();\n User newUser = new User(\"Artemis\", \"Jimmers\", \"[email protected]\", \"ajimmers\", \"supersecret2\", today);\n int id = dao.insert(newUser);\n assertNotEquals(0, id);\n User insertedUser = (User) dao.getById(id);\n assertNotNull(insertedUser);\n assertEquals(\"Jimmers\", insertedUser.getLastName());\n //Could continue comparing all values, but\n //it may make sense to use .equals()\n }", "@Test\r\n public void testCreate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(record.getId());\r\n }", "@Test\n void insertNoteSuccess() {\n Note newNote = new Note();\n\n newNote.setProspect(\"Graham Mertz\");\n newNote.setCollege(\"University of Wisconsin - Madison\");\n newNote.setUserId(1);\n newNote.setAge(19);\n newNote.setHeightFeet(6);\n newNote.setHeightInches(3);\n newNote.setWeight(225);\n newNote.setPosition(\"QB\");\n newNote.setRating(\"7/10\");\n newNote.setReport(\"He was redshirted his freshman season, and his first full season as a starter was derailed from covid. He showed a lot of good and also some bad plays, but we'll have to wait and see how he does with a real season.\");\n\n int id = noteDao.insert(newNote);\n assertNotEquals(0, id);\n Note insertedNote = (Note) noteDao.getById(id);\n\n assertEquals(\"Graham Mertz\", insertedNote.getProspect());\n assertEquals(\"University of Wisconsin - Madison\", insertedNote.getCollege());\n assertEquals(1, insertedNote.getUserId());\n assertEquals(19, insertedNote.getAge());\n assertEquals(6, insertedNote.getHeightFeet());\n assertEquals(3, insertedNote.getHeightInches());\n assertEquals(225, insertedNote.getWeight());\n assertEquals(\"QB\", insertedNote.getPosition());\n assertEquals(\"7/10\", insertedNote.getRating());\n }", "@Test\n\tpublic void givenCreateItem_whenValidRecord_ThenSuccess() {\n\t\tHashMap<String, Object> newRecord = getRecordHashMap(20, \"Steak\", \"Meats\", 15.5f);\n\n\t\t// create a new record and extract the ID from the response\n\t\tInteger newId = given().\n\t\t\tcontentType(ContentType.JSON).\n\t\t\tbody(newRecord).\n\t\twhen().\n\t\t\tpost(\"/\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.CREATED.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().\n\t\t\tpath(\"id\");\n\n\t\tnewRecord = setRecordId(newRecord, newId);\n\n\t\t// verify that the new record is created\n\t\tHashMap<String, Object> actual = given().\n\t\t\tpathParam(\"id\", newId).\n\t\twhen().\n\t\t\tget(\"/{id}\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.OK.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().path(\"$\");\n\n\t\tassertThat(newRecord).isEqualTo(actual);\n\n\t}", "int insert(DBPublicResources record);", "int insert(SysId record);", "@Test\n @Transactional\n void createStudentWithExistingId() throws Exception {\n student.setId(1L);\n StudentDTO studentDTO = studentMapper.toDto(student);\n\n int databaseSizeBeforeCreate = studentRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restStudentMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(studentDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Student in the database\n List<Student> studentList = studentRepository.findAll();\n assertThat(studentList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(AccessModelEntity record);", "int insert(TestEntity record);", "@Test\n @Transactional\n void createLessonTimetableWithExistingId() throws Exception {\n lessonTimetable.setId(1L);\n\n int databaseSizeBeforeCreate = lessonTimetableRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restLessonTimetableMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(lessonTimetable))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the LessonTimetable in the database\n List<LessonTimetable> lessonTimetableList = lessonTimetableRepository.findAll();\n assertThat(lessonTimetableList).hasSize(databaseSizeBeforeCreate);\n }", "@Test\n public void save() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n assert repot.findOne(1) == t;\n assert repo.findOne(1) == s;\n assert repon.findOne(\"11\") == n;\n }\n catch (ValidationException e){\n assert true;\n }\n }", "int insert(ResourcePojo record);", "@Test\n public void testInsert() {\n int resultInt = disciplineDao.insert(disciplineTest);\n // Je pense à le suppr si l'insert à fonctionné\n if(resultInt > 0){\n disciplineTest.setId(resultInt);\n disciplineDao.delete(disciplineTest);\n }\n assertTrue(resultInt > 0);\n }", "@Test\n @Transactional\n void createIndContactCharWithExistingId() throws Exception {\n indContactChar.setId(1L);\n IndContactCharDTO indContactCharDTO = indContactCharMapper.toDto(indContactChar);\n\n int databaseSizeBeforeCreate = indContactCharRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restIndContactCharMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(indContactCharDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the IndContactChar in the database\n List<IndContactChar> indContactCharList = indContactCharRepository.findAll();\n assertThat(indContactCharList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(CmsRoomBook record);", "@Test(expected=DuplicateKeyException.class)\n\t\tpublic void testSave3()\n\t\t{\n\n\t\t\tChObject cho = repoTest.get(\"68268301\");\n\n\t\t\trepoTest.save(cho);\t\t\t//add chObject to repo\n\t\t\trepoTest.save(cho);\t\t\t//add duplicate record (not allowed...should throw exception)\n\t\t}", "@Test\r\n public void testSave() {\r\n\r\n PaymentDetailPojo result = instance.save(paymentDetail1);\r\n assertTrue(paymentDetail1.hasSameParameters(result));\r\n assertTrue(result.getId() > 0);\r\n }", "@Override\n\tpublic void test00500Add_Validate_ExistingRecord() throws Exception\n\t{\n\t}", "@Test\n @Transactional\n void createSkillWithExistingId() throws Exception {\n skill.setId(1L);\n SkillDTO skillDTO = skillMapper.toDto(skill);\n\n int databaseSizeBeforeCreate = skillRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restSkillMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(skillDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Skill in the database\n List<Skill> skillList = skillRepository.findAll();\n assertThat(skillList).hasSize(databaseSizeBeforeCreate);\n }", "@Test\n void insertSuccess() {\n String name = \"Testing a new event\";\n LocalDate date = LocalDate.parse(\"2020-05-23\");\n LocalTime startTime = LocalTime.parse(\"11:30\");\n LocalTime endTime = LocalTime.parse(\"13:45\");\n String notes = \"Here are some new notes for my new event.\";\n GenericDao userDao = new GenericDao(User.class);\n User user = (User)userDao.getById(1);\n\n Event newEvent = new Event(name, date, startTime, endTime, notes, user);\n int id = genericDao.insert(newEvent);\n assertNotEquals(0,id);\n Event insertedEvent = (Event)genericDao.getById(id);\n assertEquals(newEvent, insertedEvent);\n }", "private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Test\n public void testUpdate() {\n int resultInt = disciplineDao.insert(disciplineTest);\n \n boolean result = false;\n \n if(resultInt > 0){\n disciplineTest.setId(resultInt);\n \n disciplineTest.setName(\"matiere_test2\");\n \n result = disciplineDao.update(disciplineTest);\n \n disciplineDao.delete(disciplineTest);\n }\n \n assertTrue(result);\n }", "int insert(GroupRightDAO record);", "@Test\r\n public void test_setDocumentId_Accuracy() {\r\n instance.setDocumentId(1);\r\n assertEquals(\"incorrect value after setting\", 1, instance.getDocumentId());\r\n }", "int insert(Owner record);", "@Test\r\n\tpublic void testSetGetIdValid() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setId(idValid);\r\n\t\tassertEquals(idValid, doctor.getId());\r\n\t}", "@Test\n @Transactional\n void createProducerWithExistingId() throws Exception {\n producer.setId(1L);\n ProducerDTO producerDTO = producerMapper.toDto(producer);\n\n int databaseSizeBeforeCreate = producerRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restProducerMockMvc\n .perform(\n post(ENTITY_API_URL)\n .with(csrf())\n .contentType(MediaType.APPLICATION_JSON)\n .content(TestUtil.convertObjectToJsonBytes(producerDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the Producer in the database\n List<Producer> producerList = producerRepository.findAll();\n assertThat(producerList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(PmKeyDbObj record);", "@Test\r\n\tpublic void testSetGetIdInvalid() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setId(idInvalid);\r\n\t\tassertEquals(idInvalid, doctor.getId());\r\n\r\n\t}", "int insert(SupplyNeed record);", "int insert(Dormitory record);", "@Test\n void saveSuccess() {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n System.out.println(\"Result\" + result);\n\n if (result != null) {\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, result);\n\n TestEntity entity = optionalEntity.orElse(null);\n\n if (entity != null) {\n Assertions.assertEquals(result, entity.getId());\n Assertions.assertNotNull(result);\n } else {\n Assertions.fail();\n }\n } else {\n Assertions.fail();\n }\n }", "int insert(PersonRegisterDo record);", "Long insert(Access record);", "int insert(TestActivityEntity record);", "public int save(SaveQuery saveQuery, EntityDetails entityDetails, ObjectWrapper<Object> idGenerated);", "@Test\r\n\tpublic void createAndRetrieveStudent() {\n\t\tStudent duke = Student.find.where().eq(\"studentId\", 1).findUnique();\r\n\r\n\t\t// Check whether inMemoryDatabase() works\r\n\t\t// If not, more than 2 row might be found\r\n\t\tint totalRow = Student.find.findRowCount();\r\n\t\torg.junit.Assert.assertEquals(2, totalRow);\r\n\r\n\t\torg.junit.Assert.assertNotNull(duke);\r\n\t\torg.junit.Assert.assertEquals(1, duke.studentId.longValue());\r\n\t}", "@Test\n @Transactional\n void createAutorWithExistingId() throws Exception {\n autor.setId(1L);\n AutorDTO autorDTO = autorMapper.toDto(autor);\n\n int databaseSizeBeforeCreate = autorRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restAutorMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(autorDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Autor in the database\n List<Autor> autorList = autorRepository.findAll();\n assertThat(autorList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(PrescriptionVerifyRecordDetail record);", "int insertSelective(AccessModelEntity record);", "@Test\n @Transactional\n void createQuestionsWithExistingId() throws Exception {\n questions.setId(1L);\n QuestionsDTO questionsDTO = questionsMapper.toDto(questions);\n\n int databaseSizeBeforeCreate = questionsRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restQuestionsMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(questionsDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Questions in the database\n List<Questions> questionsList = questionsRepository.findAll();\n assertThat(questionsList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(Organization record);", "public void testSaveCallsExpectedSQLandThenIsSavedReturnsTrue() throws Exception {\n\t\tResultSet mockResultSet = MockDB.createResultSet();\n\t\tStatement mockStatement = MockDB.createStatement();\n\t\t\n\t\tUser localValidUser = new User(validUser);\n\t\tassertFalse(\"isSaved() called on an unsaved user should return false!\",localValidUser.isSaved());\n\t\t\n\t\t// Mock the insert\n\t\texpect(mockStatement.execute(\"INSERT INTO user \"+\n\t\t\t\t\"(first_name,last_name,address,postal_code,city,province_state,country,email,datetime,user_name,password,salt)\"+\n\t\t\t\t\" VALUES ('Foo','Bar','123 4th Street','H3Z2K6','Calgary','Alberta','Canada','[email protected]',NOW(),'foo','foobar','----5---10---15---20---25---30---35---40---45---50---55---60--64');\"+\n\t\t\t\t\"select last_insert_id() as user_id;\")).andReturn(true);\n\t\texpect(mockStatement.getResultSet()).andReturn(mockResultSet);\n\t\t\n\t\t// Mock the update\n\t\texpect(mockStatement.execute(\"UPDATE user SET \"+\n\t\t\t\t\"first_name='Foo',\" +\n\t\t\t\t\"last_name='SNAFU',\" +\n\t\t\t\t\"address='123 4th Street',\" +\n\t\t\t\t\"postal_code='H3Z2K6',\" +\n\t\t\t\t\"city='Calgary',\" +\n\t\t\t\t\"province_state='Alberta',\" +\n\t\t\t\t\"country='Canada',\" +\n\t\t\t\t\"email='[email protected]',\" +\n\t\t\t\t\"user_name='foo',\" +\n\t\t\t\t\"password='foobar' \"+\n\t\t\t\t\"WHERE user_id=1;\")).andReturn(true);\n\t\texpect(mockStatement.getResultSet()).andReturn(mockResultSet);\n\t\treplay(mockStatement);\n\t\t\n\t\t// Mock the results\n\t\texpect(mockResultSet.next()).andReturn(true);\n\t\texpect(mockResultSet.getInt(\"user_id\")).andReturn(1);\n\t\texpect(mockResultSet.next()).andReturn(true);\n\t\treplay(mockResultSet);\n\t\t\n\t\tassertTrue(\"save() called on a valid user should return true!\",localValidUser.save());\n\t\tassertTrue(\"isSaved() called on a saved user should return true!\",localValidUser.isSaved());\n\t\t\n\t\t// Now make the changes!\n\t\tlocalValidUser.lastName = \"SNAFU\"; // User got married\n\t\tassertTrue(\"save() called on a valid user should return true!\",localValidUser.save());\n\t}", "int insertSelective(SysId record);", "@Test\n\tpublic void addRegistrationDetails() {\n\t\tRegistrationDetails registrationDetailsForHappyPath = RegistrationHelper.getRegistrationDetailsForHappyPath();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tRegistrationDetails addRegistrationDetails = registrationDAO\n\t\t\t\t\t.addRegistrationDetails(registrationDetailsForHappyPath);\n\t\t\tem.getTransaction().commit();\n\t\t\tassertTrue(addRegistrationDetails.getId() != 0l);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t}", "@Test\n public void shouldSaveAndFindByChargingId() throws Exception {\n final Account expectedAccount = anAccount();\n final ChargingId expectedChargingId = expectedAccount.getChargingId();\n final Account savedAccount = repository.save(expectedAccount);\n\n assertThat(expectedAccount).isEqualToComparingFieldByField(savedAccount);\n final Account account = repository.findByChargingId(expectedChargingId);\n assertThat(account).isEqualToComparingFieldByFieldRecursively(expectedAccount);\n }", "@Test\n @Transactional\n void createIndActivationWithExistingId() throws Exception {\n indActivation.setId(1L);\n IndActivationDTO indActivationDTO = indActivationMapper.toDto(indActivation);\n\n int databaseSizeBeforeCreate = indActivationRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restIndActivationMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(indActivationDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the IndActivation in the database\n List<IndActivation> indActivationList = indActivationRepository.findAll();\n assertThat(indActivationList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(LoginRecordDO record);", "@Test\n void insertSuccess() {\n int insertedCarId;\n\n //Get User\n GenericDao<User> userDao = new GenericDao(User.class);\n User user = userDao.getById(1);\n\n //Create Inserted Car\n Car insertedCar = new Car(user,\"2016\",\"Honda\",\"Civic\",\"19XFC1F35GE206053\");\n\n //Save Inserted Car\n insertedCarId = carDao.insert(insertedCar);\n\n //Get Saved Car\n Car retrievedCar = carDao.getById(insertedCarId);\n assertNotNull(retrievedCar);\n\n //Compare Cars\n assertEquals(insertedCar,retrievedCar);\n }", "int insertSelective(DBPublicResources record);", "int updateByPrimaryKey(TestEntity record);", "@Test\n\tpublic void testInsertRecipeFailure() {\n\t\tint recipeId = recipeDao.insertRecipe(recipe);\n\n\t\tassertEquals(0, recipeId);\n\n\t}", "@Test\n public void addRecipeIngredient_ReturnsID(){\n int returned = testDatabase.addRecipeIngredient(recipeIngredient);\n assertNotEquals(\"addRecipeIngredient - Returns True\", -1, returned);\n }", "@Test\n void updateSuccess() {\n String Vin = \"1111111111111111X\";\n Car carToUpdate = carDao.getById(1);\n carToUpdate.setVin(Vin);\n carDao.saveOrUpdate(carToUpdate);\n Car retrievedCar = carDao.getById(1);\n assertEquals(carToUpdate, retrievedCar);\n }", "@Test\n public void testCRD() throws Exception{\n \tSubmissionFileHandleDBO handle = new SubmissionFileHandleDBO();\n \thandle.setSubmissionId(submissionId);\n \thandle.setFileHandleId(Long.parseLong(fileHandleId));\n \t\n // Create it\n SubmissionFileHandleDBO clone = dboBasicDao.createNew(handle);\n assertNotNull(clone);\n assertEquals(handle, clone);\n \n // Fetch it\n MapSqlParameterSource params = new MapSqlParameterSource();\n params.addValue(DBOConstants.PARAM_SUBFILE_SUBMISSION_ID, submissionId);\n params.addValue(DBOConstants.PARAM_SUBFILE_FILE_HANDLE_ID, fileHandleId);\n SubmissionFileHandleDBO clone2 = dboBasicDao.getObjectByPrimaryKey(SubmissionFileHandleDBO.class, params).get();\n assertNotNull(clone2);\n assertEquals(handle, clone2); \n \n // Delete it\n boolean result = dboBasicDao.deleteObjectByPrimaryKey(SubmissionFileHandleDBO.class, params);\n assertTrue(\"Failed to delete the entry created\", result); \n }", "@Test\n public void whenAddingCustomerItShouldMakeSureNoIDIsPassed() {\n controller.addCustomer(CUSTOMER1);\n // Verify that when the customer is saved\n verify(repository).saveAndFlush(anyCustomer.capture());\n // It should have an empty ID\n assertThat(anyCustomer.getValue().getId()).isNull();\n }", "@Test\n public void findByID_whenModelIsValid_successful() throws CreateException, ReadException {\n\n SportCenter sportCenter = this.modelMapper\n .map(validSportCenterServiceModel1, SportCenter.class);\n SportCenter savedSportCenter = this.sportCenterRepository.saveAndFlush(sportCenter);\n SportCenterServiceModel sportCenterServiceModel = this.modelMapper\n .map(savedSportCenter, SportCenterServiceModel.class);\n ScheduleServiceModel expected = this.scheduleService\n .createSchedule(sportCenterServiceModel, \"11\", \"11\", \"2011\");\n ScheduleServiceModel actual = this.scheduleService.findByID(expected.getId());\n\n assertEquals(expected.getId(), actual.getId());\n }", "int insert(IceApp record);", "int insert(RecordLike record);", "int insert(Storage record);", "int insert(Storage record);", "int insert(BusinessRepayment record);", "int insert(QuestionOne record);", "@Test\n @Transactional\n void createCustStatisticsWithExistingId() throws Exception {\n custStatistics.setId(1L);\n CustStatisticsDTO custStatisticsDTO = custStatisticsMapper.toDto(custStatistics);\n\n int databaseSizeBeforeCreate = custStatisticsRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCustStatisticsMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(custStatisticsDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CustStatistics in the database\n List<CustStatistics> custStatisticsList = custStatisticsRepository.findAll();\n assertThat(custStatisticsList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(GirlInfo record);", "@Override\n\tpublic int insert(Permis record) {\n\t\treturn 0;\n\t}", "int insert(Model record);", "public Long createRecord(Record object);", "@Test\n void createAWithExistingId() throws Exception {\n a.setId(1L);\n\n int databaseSizeBeforeCreate = aRepository.findAll().collectList().block().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n webTestClient\n .post()\n .uri(ENTITY_API_URL)\n .contentType(MediaType.APPLICATION_JSON)\n .bodyValue(TestUtil.convertObjectToJsonBytes(a))\n .exchange()\n .expectStatus()\n .isBadRequest();\n\n // Validate the A in the database\n List<A> aList = aRepository.findAll().collectList().block();\n assertThat(aList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(Factory record);", "int insertSelective(ResourcePojo record);", "int insert(Admin record);", "int insert(Admin record);", "@Test\n @Transactional\n void createInternacoesWithExistingId() throws Exception {\n internacoes.setId(1L);\n\n int databaseSizeBeforeCreate = internacoesRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restInternacoesMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(internacoes)))\n .andExpect(status().isBadRequest());\n\n // Validate the Internacoes in the database\n List<Internacoes> internacoesList = internacoesRepository.findAll();\n assertThat(internacoesList).hasSize(databaseSizeBeforeCreate);\n }", "@Override\r\n public long insertRecord(Object o) throws SQLException {\r\n\r\n String sql = \"insert into patient (LastName, FirstName, Diagnosis, AdmissionDate, ReleaseDate) values (?,?,?,?,?)\";\r\n long result = -1;\r\n PatientBean pb;\r\n\r\n try (PreparedStatement pStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);) {\r\n\r\n pb = (PatientBean) o;\r\n\r\n pStatement.setString(1, pb.getLastName());\r\n pStatement.setString(2, pb.getFirstName());\r\n pStatement.setString(3, pb.getDiagnosis());\r\n pStatement.setTimestamp(4, pb.getAdmissionDate());\r\n pStatement.setTimestamp(5, pb.getReleaseDate());\r\n\r\n pStatement.executeUpdate();\r\n\r\n // Retrieve new primary key\r\n try (ResultSet rs = pStatement.getGeneratedKeys()) {\r\n if (rs.next()) {\r\n result = rs.getLong(1);\r\n }\r\n }\r\n }\r\n\r\n logger.info(\"New patient record has been added: \" + pb.getFirstName() + \" \" + pb.getLastName() + \", new patient id: \" + result);\r\n\r\n return result;\r\n }", "@Test\n void insertSuccess() {\n User newUser = new User(\"testname\",\"testpass\",\"Test\",\"name\",\"[email protected]\");\n UserRoles newRole = new UserRoles(1, \"administrator\", newUser, \"testname\");\n int id = genericDAO.insert(newRole);\n assertNotEquals(0,id);\n UserRoles insertedRole = (UserRoles)genericDAO.getByID(id);\n assertEquals(\"administrator\", insertedRole.getRoleName(), \"role is not equal\");\n }", "int insert(FinancialManagement record);", "int updateByPrimaryKey(Dormitory record);", "int insert(UserDO record);", "int insert(StudentEntity record);", "int insert(DataSync record);", "@Test\n\tpublic void testProfessorId(){\n\t\tlong id = 42;\n\t\ttestProfessor.setId(id);\n\t\tAssert.assertEquals(Long.valueOf(42), testProfessor.getId());\n\t}", "@Test\n\tpublic void testSaveAndFindById() {\n\t\tProduct savedProduct = productRepository.save(testProduct);\n\t\ttestReview.setProduct(savedProduct);\n\t\t\n\t\tReview expectedReview = reviewRepository.save(testReview);\n\t\tassertThat(expectedReview).isNotNull();\n\t\t\n\t\tOptional<Review> optionalReview = reviewRepository.findById(expectedReview.getId());\n\t\tReview actualReview = optionalReview.get();\n\t\tassertThat(actualReview).isNotNull();\n\t\tassertTrue(actualReview.getId().equals(expectedReview.getId()));\n\t}", "int insertSelective(PmKeyDbObj record);", "int insert(PublicDoctorNotice record);", "int insert(Enfermedad record);", "int insertSelective(GroupRightDAO record);", "@Test\r\n\tvoid testUpdateSkillRecordShouldFail() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 99999999;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\t\r\n\t}", "@Test\n public void save_savesStylistIdIntoDB_true() {\n Stylist myStylist = new Stylist(\"Rose\");\n myStylist.save();\n Client myClient = new Client(\"Ann\", myStylist.getId());\n myClient.save();\n Client savedClient = Client.find(myClient.getId());\n assertEquals(savedClient.getStylistId(), myStylist.getId());\n }", "@Test\n @Transactional\n void createMediaWithExistingId() throws Exception {\n media.setId(1L);\n\n int databaseSizeBeforeCreate = mediaRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restMediaMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(media)))\n .andExpect(status().isBadRequest());\n\n // Validate the Media in the database\n List<Media> mediaList = mediaRepository.findAll();\n assertThat(mediaList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(UserInfo record);", "@Test\n public void saveSingleEntity() {\n repository.save(eddard);\n assertThat(operations\n .execute((RedisConnection connection) -> connection.exists((\"persons:\" + eddard.getId()).getBytes(CHARSET))))\n .isTrue();\n }", "public static void saveRecordToDatabase(DomainObject record) throws Exception {\n try {\n Class clazz = record.getClass();\n\n DomainAccessObject access =\n DomainAccessObjectFactory.getInstance().getDomainAccessObject(clazz);\n access.getLongSession();\n access.updateLongSession(record);\n } catch(Exception e) {\n e.printStackTrace();\n throw new Exception(\"Error Saving Record to Database ...\");\n }\n }", "int insert(DangerMerchant record);", "@Test\n @Transactional\n void createCommonTableFieldWithExistingId() throws Exception {\n commonTableField.setId(1L);\n CommonTableFieldDTO commonTableFieldDTO = commonTableFieldMapper.toDto(commonTableField);\n\n int databaseSizeBeforeCreate = commonTableFieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCommonTableFieldMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(commonTableFieldDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CommonTableField in the database\n List<CommonTableField> commonTableFieldList = commonTableFieldRepository.findAll();\n assertThat(commonTableFieldList).hasSize(databaseSizeBeforeCreate);\n }", "int insert(Forumpost record);", "@Test\n public void updateById() {\n User user = new User();\n user.setId(1259474874313797634L);\n user.setAge(30);\n boolean ifUpdate = user.updateById();\n System.out.println(ifUpdate);\n }", "int insert(FundManagerDo record);", "@Test\n void insertSuccess() {\n GenericDao userDao = new GenericDao(User.class);\n //get a user to insert a new role\n User toInsert = (User) userDao.getEntityByName(\"lastName\", \"Curry\").get(0);\n\n UserRoles roles = new UserRoles(\"admin\", toInsert, toInsert.getUserName() );\n int id = genericDao.insert(roles);\n assertNotEquals(0, id);\n int insertedRoles = roles.getId();\n //assertEquals(toInsert.getId(), insertedRoles);\n }", "int insertSelective(TestEntity record);" ]
[ "0.6902213", "0.67431855", "0.6557413", "0.65250134", "0.6392121", "0.6342365", "0.6318486", "0.62954426", "0.627316", "0.6251378", "0.6243274", "0.6230864", "0.62266123", "0.621627", "0.6214344", "0.61910367", "0.61705697", "0.6168503", "0.61549264", "0.61548024", "0.6152799", "0.6143906", "0.6140324", "0.6124692", "0.61021525", "0.6093563", "0.6086489", "0.60831714", "0.6069993", "0.60583746", "0.60573125", "0.6050712", "0.6048395", "0.60341966", "0.6034153", "0.603166", "0.6030361", "0.6029782", "0.6026567", "0.6017169", "0.6013104", "0.6000016", "0.5988675", "0.5969349", "0.59682876", "0.5963608", "0.5962831", "0.5960576", "0.5956335", "0.59544605", "0.5954368", "0.59454787", "0.5945209", "0.5944642", "0.5929873", "0.5928045", "0.5926712", "0.5925002", "0.5919854", "0.5915427", "0.591041", "0.591041", "0.5909052", "0.5905729", "0.59049916", "0.5901846", "0.59005404", "0.58993244", "0.5898564", "0.5897254", "0.589666", "0.5892905", "0.58928317", "0.58928317", "0.58892965", "0.58804005", "0.5875435", "0.5872649", "0.5872424", "0.587035", "0.5867342", "0.58648217", "0.58642626", "0.58589727", "0.5851758", "0.5851239", "0.58493465", "0.5847195", "0.58463943", "0.5845411", "0.58450186", "0.5841346", "0.5841336", "0.5831792", "0.58311343", "0.5827572", "0.58272386", "0.58241844", "0.5823494", "0.58210135", "0.5818788" ]
0.0
-1
Batch inserts a number of records to the db and then pulls the total amount
@Test public void retrieveAll() { List<Opinion> opinions = IntStream.range(0, BATCH_SIZE).mapToObj(i -> { Opinion currentOpinion = new Opinion("Student B", "B is for batch"); service.save(currentOpinion); return currentOpinion; }).collect(Collectors.toList()); assertEquals(service.count(), BATCH_SIZE); opinions.forEach(op -> service.delete(op)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addBatch() throws SQLException;", "@Override\n @Transactional\n public void addBulkInsertsAfterExtraction() {\n List<ScrapBook> scrapBooks = new ArrayList<ScrapBook>();\n boolean jobDone = false;\n boolean pause = false;\n while (!jobDone) {\n pause = false;\n int lineCount = 0;\n while (!pause) {\n ++lineCount;\n if (lineCount % 30 == 0) {\n scrapBooks = springJdbcTemplateExtractor.getPaginationList(\"SELECT * FROM ScrapBook\", 1, 30);\n pause = true;\n }\n }\n //convert scrapbook to book and insert into db\n convertedToBookAndInsert(scrapBooks);\n // delete all inserted scrapbooks\n springJdbcTemplateExtractor.deleteCollection(scrapBooks);\n scrapBooks = null;\n if (0 == springJdbcTemplateExtractor.findTotalScrapBook()) {\n jobDone = true;\n }\n }\n }", "void insertBatch(List<Customer> customers);", "private void batchImport() {\r\n m_jdbcTemplate.batchUpdate(createInsertQuery(),\r\n new BatchPreparedStatementSetter() {\r\n public void setValues(\r\n PreparedStatement ps, int i)\r\n throws SQLException {\r\n int j = 1;\r\n for (String property : m_propertyNames) {\r\n Map params = (Map) m_batch.get(\r\n i);\r\n ps.setObject(j++, params.get(\r\n property));\r\n }\r\n }\r\n\r\n public int getBatchSize() {\r\n return m_batch.size();\r\n }\r\n });\r\n }", "public void addBatch(String sql) throws SQLException {\n\r\n }", "void addToBatch(String[] values) {\n if (values.length != 16) {\n logger.info(\"Incorrect format for insert query\");\n return;\n }\n\n try {\n batchPreparedStmt.clearParameters();\n DateFormat format = new SimpleDateFormat(\"yyyyMMdd/HHmm\");\n for (int i = 0, j = 1; i < values.length; ++i, ++j) {\n if (i == 1) {\n batchPreparedStmt.setTimestamp(j, new java.sql.Timestamp(format.parse(values[i]).getTime()));\n } else if (i == 0) {\n batchPreparedStmt.setString(j, values[i]);\n } else {\n batchPreparedStmt.setDouble(j, Double.parseDouble(values[i]));\n }\n }\n batchPreparedStmt.addBatch();\n currBatchSize--;\n if (currBatchSize <= 0) {\n this.commitBatch();\n }\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n } catch (ParseException e) {\n logger.log(Level.WARNING, \"ParseException \", e.getMessage());\n }\n }", "int insertBatch(List<Basicinfo> list);", "@SuppressWarnings(\"resource\")\n @Explain(\"We close the statement later, this is just an intermediate\")\n protected void addBatch() throws SQLException {\n prepareStmt().addBatch();\n batchBacklog++;\n if (batchBacklog > batchBacklogLimit) {\n commit();\n }\n }", "@Override\n public void insert(Iterator<Object[]> batch) {\n while (batch.hasNext()) {\n BoundStatement boundStatement = statement.bind(batch.next());\n ResultSetFuture future = session.executeAsync(boundStatement);\n Futures.addCallback(future, callback, executor);\n }\n }", "int insert(BPBatchBean record);", "void insertBatch(List<TABLE41> recordLst);", "public void addBatch() throws SQLException {\n statement.addBatch();\n }", "private void uploadBatchTable(InsertAllRequest insertAllRequest) {\n final Stopwatch stopwatch = stopwatchProvider.get();\n final ImmutableMultimap.Builder<TableId, InsertAllResponse> responseMapBuilder =\n ImmutableMultimap.builder();\n final StringBuilder performanceStringBuilder = new StringBuilder();\n issueInsertAllRequest(\n stopwatch, responseMapBuilder, performanceStringBuilder, insertAllRequest);\n log.info(performanceStringBuilder.toString());\n // Check response and abort the process if any error happens. In this case, verify_snapshot\n // won't have the 'successful' record, hence we know that is a \"bad\" dataset.\n checkResponse(responseMapBuilder.build());\n }", "void insertBatch(List<InspectionAgency> recordLst);", "int insertSelective(BPBatchBean record);", "public int insertBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.insertBatch(\"Resourcesvalue.insert\", list);\n \treturn rows;\n }", "@Override\r\n\tpublic int insertBatch(List<ProfitUserDomain> list) {\n\t\treturn profitUserDAO.insertBatch(list);\r\n\t}", "public void addBatch() throws SQLException {\n currentPreparedStatement.addBatch();\n }", "public static int insertAll(Connection connection, List<CLRequestHistory> cls) {\n PreparedStatement statement = null;\n\n try {\n // commit at once.\n final boolean ac = connection.getAutoCommit();\n connection.setAutoCommit(false);\n\n // execute statement one by one\n int numUpdate = 0;\n statement = connection.prepareStatement(INSERT);\n for (CLRequestHistory cl : cls) {\n statement.setInt(1, cl.mCL);\n statement.setInt(2, cl.mState);\n numUpdate += statement.executeUpdate();\n }\n\n // commit all changes above\n connection.commit();\n\n // restore previous AutoCommit setting\n connection.setAutoCommit(ac);\n\n // Close Statement to release all resources\n statement.close();\n return numUpdate;\n } catch (SQLException e) {\n Utils.say(\"Not able to insert for CLs : \" + cls.size());\n } finally {\n try {\n if (statement != null)\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return 0;\n }", "public int addBatch(List<User> users) {\n\t\treturn this.userDao.insertBatch(users);\r\n\t}", "void commitBatch() {\n try {\n currBatchSize = batchSize;\n batchPreparedStmt.executeBatch();\n connection.commit();\n batchPreparedStmt.clearParameters();\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n }\n }", "int batchInsert(@Param(\"list\") List<UserShare5Min> list);", "int batchInsert(@Param(\"list\") List<Token1155InventoryWithBLOBs> list);", "int insert(CmsCouponBatch record);", "@Test\n public void testBatchMerge() throws Exception {\n final int BATCH_SIZE = 7;\n try (Connection con = GridCacheDynamicLoadOnClientTest.connect(GridCacheDynamicLoadOnClientTest.clientNode);Statement stmt = con.createStatement()) {\n for (int idx = 0, i = 0; i < BATCH_SIZE; ++i , idx += i) {\n stmt.addBatch((((((((((((\"merge into \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" (_key, name, orgId) values (\") + (100 + idx)) + \",\") + \"'\") + \"batch-\") + idx) + \"'\") + \",\") + idx) + \")\"));\n }\n int[] updCnts = stmt.executeBatch();\n assertEquals(\"Invalid update counts size\", BATCH_SIZE, updCnts.length);\n }\n }", "public int addMultipleCustomers(TreeSet<Customer> list) {\n\t\tint length = 0;\n\t\ttry {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\t//con.setAutoCommit(false);\n\t\t\tfor(Customer c:list){\n\t\t\t\tint id = c.getCustomer_id();\n\t\t\t\tString name = c.getCustomer_name();\n\t\t\t\tString date = c.getDob();\n\t\t\t\tdouble amount = c.getBalance();\n\t\t\t\tString insertQuery = \"insert into Customer values(\"+id+\",'\"+name+\"',\"+\"STR_TO_DATE('\"+date+\"', '%d-%m-%Y')\" +\",\"+ amount+\")\";\n\t\t\t\t//System.out.println(insertQuery);\n\t\t\t\tstmt.addBatch(insertQuery);\t\n\t\t\t\t//System.out.println(insertQuery);\n\t\t\t\t}\n\t\t\tint[] count = stmt.executeBatch();\n\t\t\t//con.commit();\n\t\t\tlength = count.length;\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Error in database operation. Try agian!!\");\n\t\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\n\t\treturn length;\n\t}", "@Test\n public void testMultiInsertData() throws Exception {\n String tenantId = \"5cab9a0c-b22e-4640-ac7e-7426dd9fea73\";\n List<Item> items = itemDao.getAllNotDeleteItems(tenantId);\n System.out.println(items.size());\n int pointsDataLimit = 1000;//限制条数\n int size = items.size();\n //判断是否有必要分批\n if (pointsDataLimit < size) {\n int part = size / pointsDataLimit;//分批数\n System.out.println(\"共有 : \" + size + \"条,!\" + \" 分为 :\" + part + \"批\");\n for (int i = 0; i < part; i++) {\n //1000条\n List<Item> listPage = items.subList(0, pointsDataLimit);\n String json = EsJsonUtils.generateMultiInsertItem(listPage);\n System.out.println(json);\n elasticSearchDao.bulkDealData(TENANT_ID + Constants.INDEX_SPLIT + Constants.ITEM,Constants.ITEM,json);\n //剔除\n items.subList(0, pointsDataLimit).clear();\n }\n if (!items.isEmpty()) {\n String json = EsJsonUtils.generateMultiInsertItem(items);\n System.out.println(json);\n elasticSearchDao.bulkDealData(TENANT_ID+ Constants.INDEX_SPLIT + Constants.ITEM,Constants.ITEM,json);\n }\n }\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n RecipeEntity books = factory.manufacturePojo(RecipeEntity.class);\n em.persist(books);\n data.add(books);\n }\n }", "@Override\n public int[] executeBatch() {\n if (this.batchPos == 0) {\n return new int[0];\n }\n try {\n int[] arrn = this.db.executeBatch(this.pointer, this.batchPos / this.paramCount, this.batch);\n return arrn;\n }\n finally {\n this.clearBatch();\n }\n }", "protected int insert(String[] statements) {\n\t\tint retValue = 0;\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\n\t\t\tfor (String statement : statements) {\n\t\t\t\tSQLQuery query = session.createSQLQuery(statement);\n\t\t\t\tretValue += query.executeUpdate();\n\t\t\t}\n\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute insert\");\n\t\t}\n\t\treturn retValue;\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\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} else continue;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void addBatch( String sql ) throws SQLException {\n throw new SQLException(\"tinySQL does not support addBatch.\");\n }", "int insert(UserCount record);", "private int gather(QueryTargetInfo info) {\n ArrayList<TweetData> res;\n int count = 0;\n int tempCount;\n int ndx;\n boolean flag = true;\n\n info.smallestId = null;\n\n do {\n flag = true;\n res = query(info);\n\n //If there was an error getting the tweets, then don't continue.\n if (res == null) {\n flag = false;\n } else {\n //If we did not get the maximum tweets, then don't continue\n if (res.size() < (MAX_PAGES * RPP)) {\n flag = false;\n }\n\n //Save the results in the db.\n tempCount = store.insertTweets(info, res);\n\n count += tempCount;\n }\n } while (flag);\n\n return count;\n }", "int insertSelective(CmsCouponBatch record);", "public void fillOrders(int totalEntries) {\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n int getRandomUserId = getRandomNumber(0, 999);\n storeOperations.submitOrder(dateFormat.format(date), \"user_\" + getRandomUserId, \"password_\" + getRandomUserId, getProductsToBeOrdered(getRandomNumber(1, 10)));\n }\n }", "@Override\n public void insertAdTotalLinkData(int i) throws DatabaseException {\n Map<String, Object> map = new HashMap<String, Object>();\n StringBuffer table = new StringBuffer();\n table.append(CalendarFormat.getYM(i));\n map.put(\"table\", table.toString());\n map.put(\"statDate\", CalendarFormat.getYmd(i));\n getSqlMapClientTemplate().insert(\"statSqlMap.insertAdTotalLinkData\", map);\n }", "int insertBatch(List<SystemRoleUserMapperMo> list);", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "@Override\r\n\tpublic int[] createInBatch(List<BoothText> boothTextList) {\n\t\tStringBuffer sbf = new StringBuffer();\r\n\t\tsbf.append(\"INSERT INTO \").append(TABLE).append(\"(\");\r\n\t\tsbf.append(\"user_id,\");\r\n\t\tsbf.append(\"advertiser_id,\");\r\n\t\tsbf.append(\"biz_id,\");\r\n\t\tsbf.append(\"lang_no,\");\r\n\t\tsbf.append(\"booth_id,\");\r\n\t\tsbf.append(\"text_title,\");\r\n\t\tsbf.append(\"text_content,\");\r\n\t\tsbf.append(\"sort_no\");\r\n\t\tsbf.append(\")\");\r\n\t\t\r\n\t\tsbf.append(\" VALUES (\");\r\n\t\tsbf.append(\":userId,\");\r\n\t\tsbf.append(\":advertiserId,\");\r\n\t\tsbf.append(\":bizId,\");\r\n\t\tsbf.append(\":langNo,\");\r\n\t\tsbf.append(\":boothId,\");\r\n\t\tsbf.append(\":textTitle,\");\r\n\t\tsbf.append(\":textContent,\");\r\n\t\tsbf.append(\":sortNo\");\r\n\t\tsbf.append(\")\");\r\n\t\t\r\n\t\tString sql = sbf.toString();\r\n\t\tlogger.info(sql);\r\n\t\t\r\n\t\tSqlParameterSource[] batch = SqlParameterSourceUtils.createBatch(boothTextList.toArray());\r\n\t\tint[] updateCounts = jdbc.batchUpdate(sql, batch);\r\n\t\treturn updateCounts;\r\n\t}", "private void fillIncoming(int runId, long duration, long commitRows, long sleepMs, int payloadColumns) {\n long currentRows = 0;\n long startTime = System.currentTimeMillis();\n long durationMs = duration * 60000;\n\n String sql = buildInsertSql(STRESS_TEST_ROW_INCOMING, payloadColumns);\n while (System.currentTimeMillis() - startTime < durationMs) {\n for (long commitRow = 0; commitRow < commitRows; commitRow++) {\n insert(sql, currentRows + commitRow, runId, payloadColumns);\n }\n currentRows += commitRows;\n AppUtils.sleep(sleepMs);\n }\n }", "private <T, Q extends Query> void executeInsertBatch(Collection<T> objectsToInsert, Function<? super T, ? extends Q> mapFunction) {\n\t\tList<Q> insertStatements = objectsToInsert.stream().map(mapFunction).collect(Collectors.toList());\n\t\tdslContext.batch(insertStatements).execute();\n\t}", "public int batchInsertPolicy(ArrayList<String[]> sqlParameters){\n int rowInsertCount=0; // Return the total insert policies \n SQLiteDatabase db = null;\n SQLiteStatement insert=null;\n //Make sure the policy table is empty and exist\n if(getPolicyCount()!=0) {\n return -1; // return -1 means there are polcies inside Policy table, so please insert 1 by 1 to prevent replacing\n }\n else{\n try{\n db=getWritableDatabase();\n db.beginTransaction();\n String sql = \"insert into \"+POLICY_TABLE_NAME+\" (\"+POLICY_APPID+\",\"+POLICY_CATEGORY+\",\"+POLICY_KEY+\",\"+POLICY_VALUE+\",\"+POLICY_DUE_DATE+\",\"+ POLICY_DEFAULT_VALUE+ \") values(?,?,?,?,?,?)\";\n insert = db.compileStatement(sql);\n \n if(insert != null) { // sy, Fix CQG issue, 20130429\n for(int i =0;i<sqlParameters.size();i++){\n String[] parameters=sqlParameters.get(i);\n insert.bindString(1, parameters[0]);\n insert.bindString(2, parameters[1]);\n insert.bindString(3, parameters[2]);\n insert.bindString(4, parameters[3]);\n insert.bindString(5, parameters[4]);\n if(new Integer(parameters[4]).intValue()==-1) // The default policy, should set the default value\n insert.bindString(6, parameters[3]);\n else\n insert.bindString(6, \"\");\n \n insert.executeInsert();\n rowInsertCount++; //Execute 1 insert and increase row count\n }\n db.setTransactionSuccessful();\n if(IS_DEBUG) Log.d(TAG,\"[BatchInsert] done\");\n db.endTransaction();\n }\n else { // sy, Fix CQG issue, 20130429\n if(IS_DEBUG) Log.d(TAG,\"[BatchInsert] fail, insert is null\");\n db.endTransaction();\n }\n }catch(Exception e){\n Log.e(TAG,\"Method: \"+\"batchInsertPolicy \"+\" Error msg: \"+e.getMessage());\n }\n finally{\n try{ // sy, Fix CQG issue, 20130429\n if(insert != null)\n insert.close();\n }catch(Exception e) {\n Log.e(TAG,\"[batchInsertPolicy]Closing SQLiteStatement Exception,Method: \"+\"batchInsertPolicy \"+\" Error msg: \"+e.getMessage());\n }\n try{ // sy, Fix CQG issue, 20130429\n if(db != null)\n db.close();\n }catch(Exception e) {\n Log.e(TAG,\"[batchInsertPolicy]Clocing DB Exception,Method: \"+\"batchInsertPolicy \"+\" Error msg: \"+e.getMessage());\n }\n }\n }\n return rowInsertCount;\n }", "public void insertRecords(){\n InsertToDB insertRecords= new InsertToDB(mDbhelper,mRecord);\n Log.i(TAG, \"starting insertion on a new Thread!!\");\n idlingResource.increment();\n new Thread(insertRecords).start();\n\n }", "@Override\n public int[] executeBatch() throws SQLException {\n throw new SQLException(\"tinySQL does not support executeBatch.\");\n }", "private void batchExecution(List<String[]> rowBatch, int columnCount, int[] mapcols, String chunkId, int noOfChunks,\n int maxRetryCount, int retryTimeout) throws SQLException {\n int k = 0; //retry count\n boolean retry = false;\n int rowBatchSize = rowBatch.size();\n do {\n k++;\n try {\n if (connection == null || connection.isClosed()) {\n getJdbcConnection(maxRetryCount, retryTimeout);\n }\n if (preparedStatement == null || preparedStatement.isClosed()) {\n preparedStatement = connection.prepareStatement(jdbcConfig.getJdbcQuery(),\n ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n }\n for (int i = 0; i < rowBatchSize; i++) {\n psLineEndWithSeparator(mapcols, columnCount, rowBatch.get(i));\n preparedStatement.addBatch();\n }\n // ++batch_no;\n executeBatch(rowBatchSize, maxRetryCount, retryTimeout);\n batch_records = 0;\n k = 0;\n retry = false;\n datarowstransferred = datarowstransferred + update;\n update = 0;\n not_update = 0;\n } catch (AnaplanRetryableException ae) {\n retry = true;\n }\n } while (k < maxRetryCount && retry);\n // not successful\n if (retry) {\n throw new AnaplanAPIException(\"Could not connect to the database after \" + maxRetryCount + \" retries\");\n }\n }", "Integer insertBatch(List<RolePermission> rolePermissions);", "public int insertBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.insertBatch(\"Rolesvalue.insert\", list);\n \treturn rows;\n }", "private void addRecords()\n throws PaginatedResultSetXmlGenerationException\n {\n int start = m_pageNumber * m_recsPerPage;\n int end = (m_pageNumber + 1) * m_recsPerPage - 1;\n if (end >= m_taskVector.size())\n {\n end = m_taskVector.size() - 1;\n }\n\n for (int i = start ; i <= end ; i++)\n {\n addRecordDetails(i);\n }\n }", "public int getBatchSize()\r\n/* 23: */ {\r\n/* 24:42 */ return BatchUpdateUtils.this.size();\r\n/* 25: */ }", "@Override\r\n\tpublic void run() {\n\t\tfor(int i = 0; i < 100; i++){\r\n\t\t\taccount.addAmount(1000);\r\n\t\t}\r\n\t}", "public void addBatch(String sql) throws SQLException {\n currentPreparedStatement.addBatch(sql);\n }", "public int getBatchSize();", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i = 0; i < 1000; i++) {\r\n\t\t\t\t\tfinal BasicDBObject doc = new BasicDBObject(\"_id\", i);\r\n\t\t\t\t\tdoc.put(\"ts\", new Date());\r\n\t\t\t\t\tcoll.insert(doc);\r\n\t\t\t\t}\r\n\t\t\t}", "@Disabled\r\n\t@Test\r\n\tvoid saveBatch ( ) {\r\n\r\n\t\tlogger.info( Utils.testHeader( ) ) ;\r\n\r\n\t\tvar testEmployees = IntStream.rangeClosed( 1, TEST_RECORD_COUNT )\r\n\t\t\t\t.mapToObj( EmpHelpers::buildRandomizeEmployee )\r\n\t\t\t\t.collect( Collectors.toList( ) ) ;\r\n\r\n\t\temployeeRepository.saveAll( testEmployees ) ;\r\n\r\n\t}", "public int[] executeBatch() throws SQLException {\n return null;\r\n }", "@Insert\n long[] insertAll(Task... tasks);", "public Long createBatch(Batch batch) {\n\t\treturn batchService.createBatch(batch);\n\t}", "public int[] batchInsert(DalHints hints, List<Person> daoPojos) throws SQLException {\n\t\tif(null == daoPojos || daoPojos.size() <= 0)\n\t\t\treturn new int[0];\n\t\thints = DalHints.createIfAbsent(hints);\n\t\treturn client.batchInsert(hints, daoPojos);\n\t}", "@Override\n public void run() {\n long[] saved = AppDatabase.getInstance().modelByName(name).insertAll((List) response);\n updateProgressDownload(1, name);\n }", "public int nextadd(Long id,Long broker_name,Long bankaccountNo, String bankname, String branchname,\r\n\t\tString pancard_no, Long demataccountNo,double balance) throws SQLException {\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into customer_details values(\"+id+\",'\"+pancard_no+\"','\"+bankname+\"','\"+branchname+\"',\"+bankaccountNo+\",\"+demataccountNo+\",\"+broker_name+\")\");\r\n\tint k=DbConnect.getStatement().executeUpdate(\"insert into account values(\"+bankaccountNo+\",\"+balance+\")\");\r\n\treturn j;\r\n}", "protected void insertDataIntoRecordings(Collection<Track> tracks) {\n\t\t// what happens if data already there?\n\t\t// big issue :(\n\t\t\n\t\t\ttry {\n\t\t\t\tPreparedStatement prep = conn.prepareStatement(\"INSERT INTO Recordings values (?, ?);\");\n\t\t\t\t\n\t\t\t\tfor (Track t : tracks) {\n\t\t\t\t\tprep.setString(1, t.getArtist());\n\t\t\t\t\tprep.setString(2, t.getName());\n\t\t\t\t\tprep.addBatch();\n\t\t\t\t\tSystem.out.println(\"Added \" +t.getArtist()+ \", \" +t.getName()+\" to recordings\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconn.setAutoCommit(false);\n\t \tprep.executeBatch();\n\t \tconn.setAutoCommit(true);\n\t \t\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Something went wrong with inserting batched data into Recordings\");\n\t\t\t\tSystem.out.println(\"Check System.err for details\");\n\t\t\t\te.printStackTrace(System.err);\n\t\t\t}\n\t\t\t\n\t}", "public void bulkAdd(){\n employees.add(new Employee(23.0, 15000.0, \"Shayan\"));\n employees.add(new Employee(22.0, 60000.0, \"Rishabh\"));\n employees.add(new Employee(23.0, 45000.0, \"Ammar\"));\n employees.add(new Employee(25.0, 30000.0, \"Fahad\"));\n employees.add(new Employee(21.0, 50000.0, \"Ankur\"));\n }", "public void logBatch(String sql, int repeatTimes, long nanoTime) ;", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement insertNewFinancialStatements(int i);", "@Test\n public void insert() throws InterruptedException {\n List<PromotionVoucherInfoDTO> list = generatorProm(10);\n List<List<PromotionVoucherInfoDTO>> lists = cutList(list, 10);\n Long startTime = System.currentTimeMillis();\n\n ThreadPoolUtil instance = ThreadPoolUtil.getInstance();\n CountDownLatch countDownLatch = new CountDownLatch(lists.size());\n for (int i = 0; i < lists.size(); i++) {\n instance.execute(new executeInsert(lists, i, countDownLatch, instance));\n }\n countDownLatch.await();\n Long endTime = System.currentTimeMillis();\n System.out.println(\"插入数据用时:\" + (endTime - startTime));\n\n }", "public abstract int insert(Iterable<T> messages)\n throws DatabaseRequestException, DatabaseSchemaException;", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n Class.forName(\"org.postgresql.Driver\");\n\n // Connect to the \"bank\" database.\n Connection conn = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:26257/?reWriteBatchedInserts=true&applicationanme=123&sslmode=disable\", \"root\", \"\");\n conn.setAutoCommit(false); // true and false do not make the difference\n // rewrite batch does not make the difference\n\n try {\n // Create the \"accounts\" table.\n conn.createStatement().execute(\"CREATE TABLE IF NOT EXISTS accounts (id serial PRIMARY KEY, balance INT)\");\n\n // Insert two rows into the \"accounts\" table.\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO accounts (balance) VALUES (?), (?) returning id, balance\", \n ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n st.setInt(1, 100); \n st.setInt(2, 200); \n\n ResultSet rs = st.executeQuery();\n\n st = conn.prepareStatement(\"select id1, id2, link_type, visibility, data, time, version from linkbench.linktable where id1 = 9307741 and link_type = 123456790 and time >= 0 and time <= 9223372036854775807 and visibility = 1 order by time desc limit 0 offset 10000\",\n ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n rs = st.executeQuery();\n rs.last();\n int count = rs.getRow();\n rs.beforeFirst();\n System.out.printf(\"# of row in return set is %d\\n\", count);\n\n while (rs.next()) {\n System.out.printf(\"\\taccount %s: %s\\n\", rs.getLong(\"id\"), rs.getInt(\"balance\"));\n }\n } finally {\n // Close the database connection.\n conn.close();\n }\n }", "private void insertTestTransactionsForAccount(SmsAccount smsAccount) {\n\n\t\tint g = 10000;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tSmsTransaction smsTransaction = new SmsTransaction();\n\t\t\tsmsTransaction.setCreditBalance(10L);\n\t\t\tsmsTransaction.setSakaiUserId(\"sakaiUserId\" + i);\n\t\t\tsmsTransaction.setTransactionDate(new Date(System\n\t\t\t\t\t.currentTimeMillis()\n\t\t\t\t\t+ g));\n\t\t\tsmsTransaction.setTransactionTypeCode(\"TC\");\n\t\t\tsmsTransaction.setTransactionCredits(666);\n\t\t\tsmsTransaction.setSmsAccount(smsAccount);\n\t\t\tsmsTransaction.setSmsTaskId(1L);\n\t\t\tg += 1000;\n\t\t\thibernateLogicLocator.getSmsTransactionLogic()\n\t\t\t\t\t.insertReserveTransaction(smsTransaction);\n\t\t}\n\t}", "int insert(cskaoyan_mall_order_goods record);", "public int[] batch(String[] sqls) throws SQLException {\n Statement st = null;\n try {\n st = conn.createStatement();\n for (String sql : sqls) {\n logger.debug(\"SQL= \\n\" + sql);\n st.addBatch(sql);\n }\n return st.executeBatch();\n } catch (SQLException e) {\n throw e;\n } finally {\n if (st != null) {\n st.close();\n }\n }\n }", "public void insertBillFood(Bill billFood) {\nString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n \ntry {\n\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t \n\t\n\t\tps.setInt(1, billFood.getIdF());\n\t\tps.setString(2,null);\n\t ps.setInt(3, billFood.getIdE());\n\t\tps.setDouble(4, billFood.getPrice());\n\t\tps.setString(5, billFood.getSerialNumber());\n\t\tps.setDouble(6, billFood.getTotal());\n\t\tps.execute();\n\t\t\n\t\n\t \n} catch (SQLException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n}\n\n\t\n\t\n}", "private void addAnotherBatch(int position){\n \t\tif(position%provide.getBatchSize() == 2*provide.getBatchSize()/3\n \t\t\t\t&& position/provide.getBatchSize() == provide.getItemCache().getNextPage()-1){\n \t\t\tprovide.fillItemCache();\n \t\t}\n \t}", "int insertSelective(UserCount record);", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "public void insert(Limit limit);", "@Override\n\tpublic boolean insertBatch(List<Student> list) {\n\t\ttry {\n\t\t\tfor (Student s : list) {\n\t\t\t\tsDao.insert(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "private void insertData() {\n\n for (int i = 0; i < 3; i++) {\n ProveedorEntity proveedor = factory.manufacturePojo(ProveedorEntity.class);\n BonoEntity entity = factory.manufacturePojo(BonoEntity.class);\n int noOfDays = 8;\n Date dateOfOrder = new Date();\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n Date date = calendar.getTime();\n entity.setExpira(date);\n noOfDays = 1;\n calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n date = calendar.getTime();\n entity.setAplicaDesde(date);\n entity.setProveedor(proveedor);\n em.persist(entity);\n ArrayList lista=new ArrayList<>();\n lista.add(entity);\n proveedor.setBonos(lista);\n em.persist(proveedor);\n pData.add(proveedor);\n data.add(entity); \n }\n }", "private void InsertBillItems() {\r\n\r\n // Inserted Row Id in database table\r\n long lResult = 0;\r\n\r\n // Bill item object\r\n BillItem objBillItem;\r\n\r\n // Reset TotalItems count\r\n iTotalItems = 0;\r\n\r\n Cursor crsrUpdateItemStock = null;\r\n\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n objBillItem = new BillItem();\r\n\r\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n // Increment Total item count if row is not empty\r\n if (RowBillItem.getChildCount() > 0) {\r\n iTotalItems++;\r\n }\r\n\r\n\r\n\r\n // Bill Number\r\n objBillItem.setBillNumber(tvBillNumber.getText().toString());\r\n Log.d(\"InsertBillItems\", \"InvoiceNo:\" + tvBillNumber.getText().toString());\r\n\r\n // richa_2012\r\n //BillingMode\r\n objBillItem.setBillingMode(String.valueOf(jBillingMode));\r\n Log.d(\"InsertBillItems\", \"Billing Mode :\" + String.valueOf(jBillingMode));\r\n\r\n // Item Number\r\n if (RowBillItem.getChildAt(0) != null) {\r\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\r\n objBillItem.setItemNumber(Integer.parseInt(ItemNumber.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Item Number:\" + ItemNumber.getText().toString());\r\n\r\n crsrUpdateItemStock = dbBillScreen.getItem(Integer.parseInt(ItemNumber.getText().toString()));\r\n }\r\n\r\n // Item Name\r\n if (RowBillItem.getChildAt(1) != null) {\r\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\r\n objBillItem.setItemName(ItemName.getText().toString());\r\n Log.d(\"InsertBillItems\", \"Item Name:\" + ItemName.getText().toString());\r\n }\r\n\r\n if (RowBillItem.getChildAt(2) != null) {\r\n TextView HSN = (TextView) RowBillItem.getChildAt(2);\r\n objBillItem.setHSNCode(HSN.getText().toString());\r\n Log.d(\"InsertBillItems\", \"Item HSN:\" + HSN.getText().toString());\r\n }\r\n\r\n // Quantity\r\n double qty_d = 0.00;\r\n if (RowBillItem.getChildAt(3) != null) {\r\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\r\n String qty_str = Quantity.getText().toString();\r\n if(qty_str==null || qty_str.equals(\"\"))\r\n {\r\n Quantity.setText(\"0.00\");\r\n }else\r\n {\r\n qty_d = Double.parseDouble(qty_str);\r\n }\r\n\r\n objBillItem.setQuantity(Float.parseFloat(String.format(\"%.2f\",qty_d)));\r\n Log.d(\"InsertBillItems\", \"Quantity:\" + Quantity.getText().toString());\r\n\r\n if (crsrUpdateItemStock!=null && crsrUpdateItemStock.moveToFirst()) {\r\n // Check if item's bill with stock enabled update the stock\r\n // quantity\r\n if (BillwithStock == 1) {\r\n UpdateItemStock(crsrUpdateItemStock, Float.parseFloat(Quantity.getText().toString()));\r\n }\r\n\r\n\r\n }\r\n }\r\n\r\n // Rate\r\n double rate_d = 0.00;\r\n if (RowBillItem.getChildAt(4) != null) {\r\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\r\n String rate_str = Rate.getText().toString();\r\n if((rate_str==null || rate_str.equals(\"\")))\r\n {\r\n Rate.setText(\"0.00\");\r\n }else\r\n {\r\n rate_d = Double.parseDouble(rate_str);\r\n }\r\n\r\n objBillItem.setValue(Float.parseFloat(String.format(\"%.2f\",rate_d)));\r\n Log.d(\"InsertBillItems\", \"Rate:\" + Rate.getText().toString());\r\n }\r\n\r\n\r\n // oRIGINAL rate in case of reverse tax\r\n if (RowBillItem.getChildAt(27) != null) {\r\n TextView originalRate = (TextView) RowBillItem.getChildAt(27);\r\n objBillItem.setOriginalRate(Double.parseDouble(originalRate.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Original Rate :\" + objBillItem.getOriginalRate());\r\n }\r\n if (RowBillItem.getChildAt(28) != null) {\r\n TextView TaxableValue = (TextView) RowBillItem.getChildAt(28);\r\n objBillItem.setTaxableValue(Double.parseDouble(TaxableValue.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"TaxableValue :\" + objBillItem.getTaxableValue());\r\n }\r\n\r\n // Amount\r\n if (RowBillItem.getChildAt(5) != null) {\r\n TextView Amount = (TextView) RowBillItem.getChildAt(5);\r\n objBillItem.setAmount(Double.parseDouble(Amount.getText().toString()));\r\n String reverseTax = \"\";\r\n if (!(crsrSettings.getInt(crsrSettings.getColumnIndex(\"Tax\")) == 1)) { // reverse tax\r\n reverseTax = \" (Reverse Tax)\";\r\n objBillItem.setIsReverTaxEnabled(\"YES\");\r\n }else\r\n {\r\n objBillItem.setIsReverTaxEnabled(\"NO\");\r\n }\r\n Log.d(\"InsertBillItems\", \"Amount :\" + objBillItem.getAmount()+reverseTax);\r\n }\r\n\r\n // oRIGINAL rate in case of reverse tax\r\n if (RowBillItem.getChildAt(27) != null) {\r\n TextView originalRate = (TextView) RowBillItem.getChildAt(27);\r\n objBillItem.setOriginalRate(Double.parseDouble(originalRate.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Original Rate :\" + objBillItem.getOriginalRate());\r\n }\r\n\r\n // Discount %\r\n if (RowBillItem.getChildAt(8) != null) {\r\n TextView DiscountPercent = (TextView) RowBillItem.getChildAt(8);\r\n objBillItem.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc %:\" + DiscountPercent.getText().toString());\r\n }\r\n\r\n // Discount Amount\r\n if (RowBillItem.getChildAt(9) != null) {\r\n TextView DiscountAmount = (TextView) RowBillItem.getChildAt(9);\r\n objBillItem.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc Amt:\" + DiscountAmount.getText().toString());\r\n // dblTotalDiscount += Float.parseFloat(DiscountAmount.getText().toString());\r\n }\r\n\r\n\r\n // Service Tax Percent\r\n float sgatTax = 0;\r\n if (RowBillItem.getChildAt(15) != null) {\r\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\r\n sgatTax = Float.parseFloat(ServiceTaxPercent.getText().toString());\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setSGSTAmount(0.00f);\r\n Log.d(\"InsertBillItems\", \"SGST Tax %: 0\");\r\n\r\n } else {\r\n objBillItem.setSGSTRate(Float.parseFloat(ServiceTaxPercent.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"SGST Tax %: \" + objBillItem.getSGSTRate());\r\n }\r\n }\r\n\r\n // Service Tax Amount\r\n double sgstAmt = 0;\r\n if (RowBillItem.getChildAt(16) != null) {\r\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\r\n sgstAmt = Double.parseDouble(ServiceTaxAmount.getText().toString());\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setSGSTAmount(0);\r\n Log.d(\"InsertBillItems\", \"SGST Amount : 0\" );\r\n\r\n } else {\r\n objBillItem.setSGSTAmount(Double.parseDouble(String.format(\"%.2f\", sgstAmt)));\r\n Log.d(\"InsertBillItems\", \"SGST Amount : \" + objBillItem.getSGSTAmount());\r\n }\r\n }\r\n\r\n // Sales Tax %\r\n if (RowBillItem.getChildAt(6) != null) {\r\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\r\n float cgsttax = (Float.parseFloat(SalesTaxPercent.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n //objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", cgsttax + sgatTax)));\r\n // Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\r\n objBillItem.setCGSTRate(0.00f);\r\n Log.d(\"InsertBillItems\", \" CGST Tax %: 0.00\");\r\n }else{\r\n // objBillItem.setIGSTRate(0.00f);\r\n // Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\r\n objBillItem.setCGSTRate(Float.parseFloat(String.format(\"%.2f\",Float.parseFloat(SalesTaxPercent.getText().toString()))));\r\n Log.d(\"InsertBillItems\", \" CGST Tax %: \" + SalesTaxPercent.getText().toString());\r\n }\r\n }\r\n // Sales Tax Amount\r\n if (RowBillItem.getChildAt(7) != null) {\r\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\r\n double cgstAmt = (Double.parseDouble(SalesTaxAmount.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n //objBillItem.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",cgstAmt+sgstAmt)));\r\n //Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\r\n objBillItem.setCGSTAmount(0);\r\n Log.d(\"InsertBillItems\", \"CGST Amt: 0\");\r\n } else {\r\n // objBillItem.setIGSTAmount(0.00f);\r\n //Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\r\n objBillItem.setCGSTAmount(Double.parseDouble(String.format(\"%.2f\", cgstAmt)));\r\n Log.d(\"InsertBillItems\", \"CGST Amt: \" + SalesTaxAmount.getText().toString());\r\n }\r\n }\r\n // IGST Tax %\r\n if (RowBillItem.getChildAt(23) != null) {\r\n TextView IGSTTaxPercent = (TextView) RowBillItem.getChildAt(23);\r\n float igsttax = (Float.parseFloat(IGSTTaxPercent.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", igsttax)));\r\n Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\r\n }else{\r\n objBillItem.setIGSTRate(0.00f);\r\n Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\r\n }\r\n }\r\n // IGST Tax Amount\r\n if (RowBillItem.getChildAt(24) != null) {\r\n TextView IGSTTaxAmount = (TextView) RowBillItem.getChildAt(24);\r\n float igstAmt = (Float.parseFloat(IGSTTaxAmount.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setIGSTAmount(Double.parseDouble(String.format(\"%.2f\",igstAmt)));\r\n Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\r\n } else {\r\n objBillItem.setIGSTAmount(0);\r\n Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\r\n }\r\n }\r\n\r\n // cess Tax %\r\n if (RowBillItem.getChildAt(25) != null) {\r\n TextView cessTaxPercent = (TextView) RowBillItem.getChildAt(25);\r\n float cesstax = (Float.parseFloat(cessTaxPercent.getText().toString()));\r\n objBillItem.setCessRate(Float.parseFloat(String.format(\"%.2f\", cesstax)));\r\n Log.d(\"InsertBillItems\", \" cess Tax %: \" + objBillItem.getCessRate());\r\n }\r\n // cess amount per unit\r\n if (RowBillItem.getChildAt(26) != null) {\r\n TextView cessPerUnitAmt = (TextView) RowBillItem.getChildAt(26);\r\n double cessPerunit = (Double.parseDouble(cessPerUnitAmt.getText().toString()));\r\n if (objBillItem.getCessRate() > 0)\r\n objBillItem.setDblCessAmountPerUnit(0.00);\r\n else\r\n objBillItem.setDblCessAmountPerUnit(Double.parseDouble(String.format(\"%.2f\", cessPerunit)));\r\n objBillItem.setCessAmount(Double.parseDouble(String.format(\"%.2f\", cessPerunit * objBillItem.getQuantity())));\r\n Log.d(\"InsertBillItems\", \"cess Amt: \" + objBillItem.getDblCessAmountPerUnit());\r\n }\r\n // additional cess amount\r\n if (RowBillItem.getChildAt(29) != null) {\r\n TextView tvadditionalcess = (TextView) RowBillItem.getChildAt(29);\r\n double additionalCess = (Double.parseDouble(tvadditionalcess.getText().toString()));\r\n objBillItem.setDblAdditionalCessAmount(additionalCess);\r\n objBillItem.setDblTotalAdditionalCessAmount(Double.parseDouble(String.format(\"%.2f\", additionalCess * objBillItem.getQuantity())));\r\n Log.d(\"InsertBillItems\", \"cess Amt: \" + objBillItem.getDblAdditionalCessAmount());\r\n }\r\n\r\n // Discount %\r\n if (RowBillItem.getChildAt(8) != null) {\r\n TextView DiscountPercent = (TextView) RowBillItem.getChildAt(8);\r\n objBillItem.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc %:\" + DiscountPercent.getText().toString());\r\n }\r\n\r\n // Discount Amount\r\n if (RowBillItem.getChildAt(9) != null) {\r\n TextView DiscountAmount = (TextView) RowBillItem.getChildAt(9);\r\n objBillItem.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc Amt:\" + DiscountAmount.getText().toString());\r\n\r\n // dblTotalDiscount += Float.parseFloat(DiscountAmount.getText().toString());\r\n }\r\n\r\n // Department Code\r\n if (RowBillItem.getChildAt(10) != null) {\r\n TextView DeptCode = (TextView) RowBillItem.getChildAt(10);\r\n objBillItem.setDeptCode(Integer.parseInt(DeptCode.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Dept Code:\" + DeptCode.getText().toString());\r\n }\r\n\r\n // Category Code\r\n if (RowBillItem.getChildAt(11) != null) {\r\n TextView CategCode = (TextView) RowBillItem.getChildAt(11);\r\n objBillItem.setCategCode(Integer.parseInt(CategCode.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Categ Code:\" + CategCode.getText().toString());\r\n }\r\n\r\n // Kitchen Code\r\n if (RowBillItem.getChildAt(12) != null) {\r\n TextView KitchenCode = (TextView) RowBillItem.getChildAt(12);\r\n objBillItem.setKitchenCode(Integer.parseInt(KitchenCode.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Kitchen Code:\" + KitchenCode.getText().toString());\r\n }\r\n\r\n // Tax Type\r\n if (RowBillItem.getChildAt(13) != null) {\r\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\r\n objBillItem.setTaxType(Integer.parseInt(TaxType.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Tax Type:\" + TaxType.getText().toString());\r\n }\r\n\r\n // Modifier Amount\r\n if (RowBillItem.getChildAt(14) != null) {\r\n TextView ModifierAmount = (TextView) RowBillItem.getChildAt(14);\r\n objBillItem.setModifierAmount(Float.parseFloat(ModifierAmount.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Modifier Amt:\" + ModifierAmount.getText().toString());\r\n }\r\n\r\n\r\n\r\n if (RowBillItem.getChildAt(17) != null) {\r\n TextView SupplyType = (TextView) RowBillItem.getChildAt(17);\r\n objBillItem.setSupplyType(SupplyType.getText().toString());\r\n Log.d(\"InsertBillItems\", \"SupplyType:\" + SupplyType.getText().toString());\r\n /*if (GSTEnable.equals(\"1\")) {\r\n objBillItem.setSupplyType(SupplyType.getText().toString());\r\n Log.d(\"InsertBillItems\", \"SupplyType:\" + SupplyType.getText().toString());\r\n } else {\r\n objBillItem.setSupplyType(\"\");\r\n }*/\r\n }\r\n if (RowBillItem.getChildAt(22) != null) {\r\n TextView UOM = (TextView) RowBillItem.getChildAt(22);\r\n objBillItem.setUom(UOM.getText().toString());\r\n Log.d(\"InsertBillItems\", \"UOM:\" + UOM.getText().toString());\r\n\r\n }\r\n\r\n // subtotal\r\n double subtotal = objBillItem.getAmount() + objBillItem.getIGSTAmount() + objBillItem.getCGSTAmount() + objBillItem.getSGSTAmount();\r\n objBillItem.setSubTotal(subtotal);\r\n Log.d(\"InsertBillItems\", \"Sub Total :\" + subtotal);\r\n\r\n // Date\r\n String date_today = tvDate.getText().toString();\r\n //Log.d(\"Date \", date_today);\r\n try {\r\n Date date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(date_today);\r\n objBillItem.setInvoiceDate(String.valueOf(date1.getTime()));\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n // cust name\r\n String custname = edtCustName.getText().toString();\r\n objBillItem.setCustName(custname);\r\n Log.d(\"InsertBillItems\", \"CustName :\" + custname);\r\n\r\n String custgstin = etCustGSTIN.getText().toString().trim().toUpperCase();\r\n objBillItem.setGSTIN(custgstin);\r\n Log.d(\"InsertBillItems\", \"custgstin :\" + custgstin);\r\n\r\n if (chk_interstate.isChecked()) {\r\n String str = spnr_pos.getSelectedItem().toString();\r\n int length = str.length();\r\n String sub = \"\";\r\n if (length > 0) {\r\n sub = str.substring(length - 2, length);\r\n }\r\n objBillItem.setCustStateCode(sub);\r\n Log.d(\"InsertBillItems\", \"CustStateCode :\" + sub+\" - \"+str);\r\n } else {\r\n objBillItem.setCustStateCode(db.getOwnerPOS());// to be retrieved from database later -- richa to do\r\n Log.d(\"InsertBillItems\", \"CustStateCode :\"+objBillItem.getCustStateCode());\r\n }\r\n\r\n\r\n // BusinessType\r\n if (etCustGSTIN.getText().toString().equals(\"\")) {\r\n objBillItem.setBusinessType(\"B2C\");\r\n } else // gstin present means b2b bussiness\r\n {\r\n objBillItem.setBusinessType(\"B2B\");\r\n }\r\n\r\n Log.d(\"InsertBillItems\", \"BusinessType : \" + objBillItem.getBusinessType());\r\n\r\n // richa to do - hardcoded b2b bussinies type\r\n //objBillItem.setBusinessType(\"B2B\");\r\n if (jBillingMode == 4) {\r\n objBillItem.setBillStatus(2);\r\n Log.d(\"InsertBillItem\", \"Bill Status:2\");\r\n } else {\r\n objBillItem.setBillStatus(1);\r\n Log.d(\"InsertBillItem\", \"Bill Status:1\");\r\n }\r\n\r\n if(jBillingMode == 3){\r\n if(etOnlineOrderNo != null && !etOnlineOrderNo.getText().toString().isEmpty()){\r\n objBillItem.setStrOnlineOrderNo(etOnlineOrderNo.getText().toString());\r\n }\r\n }\r\n\r\n lResult = db.addBillItems(objBillItem);\r\n Log.d(\"InsertBillItem\", \"Bill item inserted at position:\" + lResult);\r\n }\r\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "public void insertBillDrink(Bill billDrink) {\n\tString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n\n\ttry {\n\t\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\t\tps.setString(1, null);\n\t\t\tps.setInt(2, billDrink.getIdD());\n\t\t ps.setInt(3, billDrink.getIdE());\n\t\t\tps.setDouble(4, billDrink.getPrice());\n\t\t\tps.setString(5, billDrink.getSerialNumber());\n\t\t\tps.setDouble(6, billDrink.getTotal());\n\t\t\tps.execute();\n\t\t \n\t\t \n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\n}\n\t\n}", "public void DepositMoneyInBank() {\n\n for (int i = 0; i < commands.length; i++) {\n commands[i].execute();\n storage.push(commands[i]);\n }\n }", "@Override\n\tpublic int insert(List<BaseEntity> entities) throws DaoException {\n\t\treturn 0;\n\t}", "@RequestMapping(value = \"/insertMultiple\", method = RequestMethod.POST)\n\tpublic ResponseEntity<List<RestResponse>> insertMultiple(@RequestBody List<Expense> list) {\n List<RestResponse> listResults=new ArrayList<>();\n System.out.println(list.size());\n\t list.stream().forEach(expense ->\n {\n listResults.add(expenseService.insertOne(expense));\n System.out.println(\"*** Amount : \"+expense.getAmount());\n });\n\n\t\treturn new ResponseEntity<List<RestResponse>>(listResults, HttpStatus.OK);\n\t }", "WriteRequest insert(Iterable<? extends PiEntity> entities);", "int insert(FundsPackageRatio record);", "@Test\n public void reduceNumber() throws Exception {\n Date date = new Date();\n int updateCount = seckillDao.reduceNumber(1000,date);\n System.out.println(updateCount);\n }", "@Test\n public void testBatchSink() throws Exception {\n List<WALEntry> entries = new ArrayList<>(TestReplicationSink.BATCH_SIZE);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < (TestReplicationSink.BATCH_SIZE); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(TestReplicationSink.BATCH_SIZE, scanRes.next(TestReplicationSink.BATCH_SIZE).length);\n }", "@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }", "void addToBatch(String rows) {\n // split multiple rows into row\n String[] rowArray = rows.split(\"\\n\");\n // for each row, insert row to batch\n for (String row : rowArray) {\n String[] values = row.trim().split(\"\\\\s+\");\n if (values.length != 16) {\n values = row.trim().split(\",\");\n }\n addToBatch(values);\n }\n }", "InsertAllResponse insert(Iterable<InsertAllRequest.RowToInsert> rows) throws BigQueryException {\n return bigquery.insertAll(InsertAllRequest.of(info.tableId(), rows));\n }", "void bulkInsertOrReplace (List<Consumption> entities);", "public int insert(CabinetItemInventoryCountBean cabinetItemInventoryCountBean)\n\t\tthrows BaseException {\n\n\t\tConnection connection = null;\n\t\tint result = 0;\n\t\ttry {\n\t\t\tconnection = getDbManager().getConnection();\n\t\t\tresult = insert(cabinetItemInventoryCountBean, connection);\n\t\t}\n\t\tfinally {\n\t\t\tthis.getDbManager().returnConnection(connection);\n\t\t}\n\t\treturn result;\n\t}", "private void InsertBillItems() {\n\n // Inserted Row Id in database table\n long lResult = 0;\n\n // Bill item object\n BillItem objBillItem;\n\n // Reset TotalItems count\n iTotalItems = 0;\n\n Cursor crsrUpdateItemStock = null;\n\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\n objBillItem = new BillItem();\n\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\n\n // Increment Total item count if row is not empty\n if (RowBillItem.getChildCount() > 0) {\n iTotalItems++;\n }\n\n // Bill Number\n objBillItem.setBillNumber(tvBillNumber.getText().toString());\n Log.d(\"InsertBillItems\", \"InvoiceNo:\" + tvBillNumber.getText().toString());\n\n // richa_2012\n //BillingMode\n objBillItem.setBillingMode(String.valueOf(jBillingMode));\n Log.d(\"InsertBillItems\", \"Billing Mode :\" + String.valueOf(jBillingMode));\n\n // Item Number\n if (RowBillItem.getChildAt(0) != null) {\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\n objBillItem.setItemNumber(Integer.parseInt(ItemNumber.getText().toString()));\n Log.d(\"InsertBillItems\", \"Item Number:\" + ItemNumber.getText().toString());\n\n crsrUpdateItemStock = db.getItemss(Integer.parseInt(ItemNumber.getText().toString()));\n }\n\n // Item Name\n if (RowBillItem.getChildAt(1) != null) {\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\n objBillItem.setItemName(ItemName.getText().toString());\n Log.d(\"InsertBillItems\", \"Item Name:\" + ItemName.getText().toString());\n }\n\n if (RowBillItem.getChildAt(2) != null) {\n TextView HSN = (TextView) RowBillItem.getChildAt(2);\n objBillItem.setHSNCode(HSN.getText().toString());\n Log.d(\"InsertBillItems\", \"Item HSN:\" + HSN.getText().toString());\n }\n\n // Quantity\n double qty_d = 0.00;\n if (RowBillItem.getChildAt(3) != null) {\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\n String qty_str = Quantity.getText().toString();\n if(qty_str==null || qty_str.equals(\"\"))\n {\n Quantity.setText(\"0.00\");\n }else\n {\n qty_d = Double.parseDouble(qty_str);\n }\n\n objBillItem.setQuantity(Float.parseFloat(String.format(\"%.2f\",qty_d)));\n Log.d(\"InsertBillItems\", \"Quantity:\" + Quantity.getText().toString());\n\n if (crsrUpdateItemStock!=null && crsrUpdateItemStock.moveToFirst()) {\n // Check if item's bill with stock enabled update the stock\n // quantity\n if (BillwithStock == 1) {\n UpdateItemStock(crsrUpdateItemStock, Float.parseFloat(Quantity.getText().toString()));\n }\n\n\n }\n }\n\n // Rate\n double rate_d = 0.00;\n if (RowBillItem.getChildAt(4) != null) {\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\n String rate_str = Rate.getText().toString();\n if((rate_str==null || rate_str.equals(\"\")))\n {\n Rate.setText(\"0.00\");\n }else\n {\n rate_d = Double.parseDouble(rate_str);\n }\n\n objBillItem.setValue(Float.parseFloat(String.format(\"%.2f\",rate_d)));\n Log.d(\"InsertBillItems\", \"Rate:\" + Rate.getText().toString());\n }\n // oRIGINAL rate in case of reverse tax\n\n if (RowBillItem.getChildAt(27) != null) {\n TextView originalRate = (TextView) RowBillItem.getChildAt(27);\n objBillItem.setOriginalRate(Double.parseDouble(originalRate.getText().toString()));\n Log.d(\"InsertBillItems\", \"Original Rate :\" + objBillItem.getOriginalRate());\n }\n if (RowBillItem.getChildAt(28) != null) {\n TextView TaxableValue = (TextView) RowBillItem.getChildAt(28);\n objBillItem.setTaxableValue(Double.parseDouble(TaxableValue.getText().toString()));\n Log.d(\"InsertBillItems\", \"TaxableValue :\" + objBillItem.getTaxableValue());\n }\n\n // Amount\n if (RowBillItem.getChildAt(5) != null) {\n TextView Amount = (TextView) RowBillItem.getChildAt(5);\n objBillItem.setAmount(Double.parseDouble(Amount.getText().toString()));\n String reverseTax = \"\";\n if (!(crsrSettings.getInt(crsrSettings.getColumnIndex(\"Tax\")) == 1)) { // forward tax\n reverseTax = \" (Reverse Tax)\";\n objBillItem.setIsReverTaxEnabled(\"YES\");\n }else\n {\n objBillItem.setIsReverTaxEnabled(\"NO\");\n }\n Log.d(\"InsertBillItems\", \"Amount :\" + objBillItem.getAmount()+reverseTax);\n }\n\n // oRIGINAL rate in case of reverse tax\n\n\n // Discount %\n if (RowBillItem.getChildAt(8) != null) {\n TextView DiscountPercent = (TextView) RowBillItem.getChildAt(8);\n objBillItem.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\n Log.d(\"InsertBillItems\", \"Disc %:\" + DiscountPercent.getText().toString());\n }\n\n // Discount Amount\n if (RowBillItem.getChildAt(9) != null) {\n TextView DiscountAmount = (TextView) RowBillItem.getChildAt(9);\n objBillItem.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\n Log.d(\"InsertBillItems\", \"Disc Amt:\" + DiscountAmount.getText().toString());\n // fTotalDiscount += Float.parseFloat(DiscountAmount.getText().toString());\n }\n\n // Service Tax Percent\n float sgatTax = 0;\n if (RowBillItem.getChildAt(15) != null) {\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\n sgatTax = Float.parseFloat(ServiceTaxPercent.getText().toString());\n if (chk_interstate.isChecked()) {\n objBillItem.setSGSTRate(0);\n Log.d(\"InsertBillItems\", \"SGST Tax %: 0\");\n\n } else {\n objBillItem.setSGSTRate(Float.parseFloat(ServiceTaxPercent.getText().toString()));\n Log.d(\"InsertBillItems\", \"SGST Tax %: \" + objBillItem.getSGSTRate());\n }\n }\n\n // Service Tax Amount\n double sgstAmt = 0;\n if (RowBillItem.getChildAt(16) != null) {\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\n sgstAmt = Double.parseDouble(ServiceTaxAmount.getText().toString());\n if (chk_interstate.isChecked()) {\n objBillItem.setSGSTAmount(0.00f);\n Log.d(\"InsertBillItems\", \"SGST Amount : 0\" );\n\n } else {\n objBillItem.setSGSTAmount(Double.parseDouble(String.format(\"%.2f\", sgstAmt)));\n Log.d(\"InsertBillItems\", \"SGST Amount : \" + objBillItem.getSGSTAmount());\n }\n }\n\n // Sales Tax %\n if (RowBillItem.getChildAt(6) != null) {\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\n float cgsttax = (Float.parseFloat(SalesTaxPercent.getText().toString()));\n if (chk_interstate.isChecked()) {\n //objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", cgsttax + sgatTax)));\n //Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\n objBillItem.setCGSTRate(0.00f);\n Log.d(\"InsertBillItems\", \" CGST Tax %: 0.00\");\n }else{\n //objBillItem.setIGSTRate(0.00f);\n //Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\n objBillItem.setCGSTRate(Float.parseFloat(String.format(\"%.2f\",Float.parseFloat(SalesTaxPercent.getText().toString()))));\n Log.d(\"InsertBillItems\", \" CGST Tax %: \" + SalesTaxPercent.getText().toString());\n }\n }\n // Sales Tax Amount\n if (RowBillItem.getChildAt(7) != null) {\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\n double cgstAmt = (Double.parseDouble(SalesTaxAmount.getText().toString()));\n if (chk_interstate.isChecked()) {\n //objBillItem.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",cgstAmt+sgstAmt)));\n //Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\n objBillItem.setCGSTAmount(0.00f);\n Log.d(\"InsertBillItems\", \"CGST Amt: 0\");\n } else {\n //objBillItem.setIGSTAmount(0.00f);\n //Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\n objBillItem.setCGSTAmount(Double.parseDouble(String.format(\"%.2f\", cgstAmt)));\n Log.d(\"InsertBillItems\", \"CGST Amt: \" + SalesTaxAmount.getText().toString());\n }\n }\n\n // IGST Tax %\n if (RowBillItem.getChildAt(23) != null) {\n TextView IGSTTaxPercent = (TextView) RowBillItem.getChildAt(23);\n float igsttax = (Float.parseFloat(IGSTTaxPercent.getText().toString()));\n if (chk_interstate.isChecked()) {\n objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", igsttax)));\n Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\n }else{\n objBillItem.setIGSTRate(0.00f);\n Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\n }\n }\n // IGST Tax Amount\n if (RowBillItem.getChildAt(24) != null) {\n TextView IGSTTaxAmount = (TextView) RowBillItem.getChildAt(24);\n float igstAmt = (Float.parseFloat(IGSTTaxAmount.getText().toString()));\n if (chk_interstate.isChecked()) {\n objBillItem.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",igstAmt)));\n Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\n } else {\n objBillItem.setIGSTAmount(0.00f);\n Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\n }\n }\n\n // cess Tax %\n if (RowBillItem.getChildAt(25) != null) {\n TextView cessTaxPercent = (TextView) RowBillItem.getChildAt(25);\n float cesstax = (Float.parseFloat(cessTaxPercent.getText().toString()));\n objBillItem.setCessRate(Float.parseFloat(String.format(\"%.2f\", cesstax)));\n Log.d(\"InsertBillItems\", \" cess Tax %: \" + objBillItem.getCessRate());\n }\n // cessTax Amount\n if (RowBillItem.getChildAt(26) != null) {\n TextView cessTaxAmount = (TextView) RowBillItem.getChildAt(26);\n double cessAmt = (Double.parseDouble(cessTaxAmount.getText().toString()));\n objBillItem.setCessAmount(Double.parseDouble(String.format(\"%.2f\",cessAmt)));\n Log.d(\"InsertBillItems\", \"cess Amt: \" + objBillItem.getCessAmount());\n }\n\n\n\n // Department Code\n if (RowBillItem.getChildAt(10) != null) {\n TextView DeptCode = (TextView) RowBillItem.getChildAt(10);\n objBillItem.setDeptCode(Integer.parseInt(DeptCode.getText().toString()));\n Log.d(\"InsertBillItems\", \"Dept Code:\" + DeptCode.getText().toString());\n }\n\n // Category Code\n if (RowBillItem.getChildAt(11) != null) {\n TextView CategCode = (TextView) RowBillItem.getChildAt(11);\n objBillItem.setCategCode(Integer.parseInt(CategCode.getText().toString()));\n Log.d(\"InsertBillItems\", \"Categ Code:\" + CategCode.getText().toString());\n }\n\n // Kitchen Code\n if (RowBillItem.getChildAt(12) != null) {\n TextView KitchenCode = (TextView) RowBillItem.getChildAt(12);\n objBillItem.setKitchenCode(Integer.parseInt(KitchenCode.getText().toString()));\n Log.d(\"InsertBillItems\", \"Kitchen Code:\" + KitchenCode.getText().toString());\n }\n\n // Tax Type\n if (RowBillItem.getChildAt(13) != null) {\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\n objBillItem.setTaxType(Integer.parseInt(TaxType.getText().toString()));\n Log.d(\"InsertBillItems\", \"Tax Type:\" + TaxType.getText().toString());\n }\n\n // Modifier Amount\n if (RowBillItem.getChildAt(14) != null) {\n TextView ModifierAmount = (TextView) RowBillItem.getChildAt(14);\n objBillItem.setModifierAmount(Float.parseFloat(ModifierAmount.getText().toString()));\n Log.d(\"InsertBillItems\", \"Modifier Amt:\" + ModifierAmount.getText().toString());\n }\n\n if (RowBillItem.getChildAt(17) != null) {\n TextView SupplyType = (TextView) RowBillItem.getChildAt(17);\n objBillItem.setSupplyType(SupplyType.getText().toString());\n Log.d(\"InsertBillItems\", \"SupplyType:\" + SupplyType.getText().toString());\n\n }\n if (RowBillItem.getChildAt(22) != null) {\n TextView UOM = (TextView) RowBillItem.getChildAt(22);\n objBillItem.setUom(UOM.getText().toString());\n Log.d(\"InsertBillItems\", \"UOM:\" + UOM.getText().toString());\n\n }\n\n // subtotal\n double subtotal = objBillItem.getAmount() + objBillItem.getIGSTAmount() + objBillItem.getCGSTAmount() + objBillItem.getSGSTAmount();\n\n objBillItem.setSubTotal(subtotal);\n Log.d(\"InsertBillItems\", \"Sub Total :\" + subtotal);\n\n // Date\n String date_today = tvDate.getText().toString();\n //Log.d(\"Date \", date_today);\n try {\n Date date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(date_today);\n objBillItem.setInvoiceDate(String.valueOf(date1.getTime()));\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n\n // cust name\n String custname = editTextName.getText().toString();\n objBillItem.setCustName(custname);\n Log.d(\"InsertBillItems\", \"CustName :\" + custname);\n\n String custGstin = etCustGSTIN.getText().toString().trim().toUpperCase();\n objBillItem.setGSTIN(custGstin);\n Log.d(\"InsertBillItems\", \"custGstin :\" + custGstin);\n\n // cust StateCode\n if (chk_interstate.isChecked()) {\n String str = spnr_pos.getSelectedItem().toString();\n int length = str.length();\n String sub = \"\";\n if (length > 0) {\n sub = str.substring(length - 2, length);\n }\n objBillItem.setCustStateCode(sub);\n Log.d(\"InsertBillItems\", \"CustStateCode :\" + sub+\" - \"+str);\n } else {\n objBillItem.setCustStateCode(db.getOwnerPOS_counter());// to be retrieved from database later -- richa to do\n Log.d(\"InsertBillItems\", \"CustStateCode :\"+objBillItem.getCustStateCode());\n }\n\n // BusinessType\n if (etCustGSTIN.getText().toString().equals(\"\")) {\n objBillItem.setBusinessType(\"B2C\");\n } else // gstin present means b2b bussiness\n {\n objBillItem.setBusinessType(\"B2B\");\n }\n Log.d(\"InsertBillItems\", \"BusinessType : \" + objBillItem.getBusinessType());\n objBillItem.setBillStatus(1);\n Log.d(\"InsertBillItems\", \"Bill Status:1\");\n // richa to do - hardcoded b2b bussinies type\n //objBillItem.setBusinessType(\"B2B\");\n lResult = db.addBillItems(objBillItem);\n Log.d(\"InsertBillItem\", \"Bill item inserted at position:\" + lResult);\n }\n }", "int insertSelective(ResPartnerBankEntityWithBLOBs record);", "public static void incrInsertions() { ++insertions; }", "@Test\n public void bulkUploadTest() throws IOException {\n\n JsonArray result = searchService.matchAllQuery(getIndexes(), 10);\n assertEquals(6, result.size());\n }", "private void fillOutgoing(int runId, long duration, long commitRows, long sleepMs, int payloadColumns) {\n long currentRows = outgoingCounts.containsKey(runId) ? outgoingCounts.get(runId) : 0;\n long startTime = System.currentTimeMillis();\n long durationMs = duration * 60000;\n\n String sql = buildInsertSql(STRESS_TEST_ROW_OUTGOING, payloadColumns);\n while (System.currentTimeMillis() - startTime < durationMs) {\n for (long commitRow = 0; commitRow < commitRows; commitRow++) {\n insert(sql, currentRows + commitRow, runId, payloadColumns);\n }\n currentRows += commitRows;\n AppUtils.sleep(sleepMs);\n }\n\n outgoingCounts.put(runId, currentRows);\n }", "public void fillProducts(int totalEntries) {\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n storeOperations.addProduct(i, text.sentence(getRandomNumber(1, 10)), text.paragraph(getRandomNumber(1, 50)), (float) getRandomNumber(1, 3000), getRandomNumber(1, 5000));\n }\n }" ]
[ "0.68169045", "0.6582419", "0.6495625", "0.63857317", "0.6373682", "0.63501996", "0.6346541", "0.6284132", "0.6282078", "0.62440324", "0.61623955", "0.6154596", "0.6124512", "0.6015919", "0.59907496", "0.5969294", "0.59564894", "0.5938286", "0.593785", "0.5844447", "0.5843157", "0.5835496", "0.58314896", "0.57988113", "0.5795463", "0.5785671", "0.57514566", "0.570683", "0.57048047", "0.570318", "0.5692886", "0.56812304", "0.5660274", "0.56257474", "0.5610772", "0.5576865", "0.5558904", "0.55460495", "0.5545589", "0.5543399", "0.5539612", "0.55393386", "0.5523017", "0.5513882", "0.5506786", "0.5505734", "0.54923254", "0.5488107", "0.5484729", "0.5474321", "0.5470813", "0.546872", "0.5468703", "0.5463455", "0.5427982", "0.54267454", "0.5422138", "0.54203993", "0.54138213", "0.5403833", "0.5402636", "0.54020107", "0.5389996", "0.5384904", "0.5384091", "0.53766733", "0.53755075", "0.53744686", "0.5369438", "0.5332997", "0.5329369", "0.53252363", "0.53241056", "0.5317861", "0.5312187", "0.53119814", "0.5309491", "0.530481", "0.5302398", "0.5301739", "0.5300153", "0.5283955", "0.52730876", "0.5269965", "0.5243736", "0.52400756", "0.52369606", "0.5236683", "0.52334434", "0.5231017", "0.5227923", "0.5227526", "0.5226234", "0.5223104", "0.5217807", "0.52164185", "0.5216049", "0.5215603", "0.52109486", "0.52003944" ]
0.5238744
86
return logical value true if x is even number
boolean isEven(int x) { if((x%2)==0) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final boolean even(int x) {\n \t\treturn ((x & 0x1) == 0);\n \t}", "public static final boolean even(long x) {\n \t\treturn ((x & 0x1) == 0);\n \t}", "public static final boolean even(short x) {\n \t\treturn ((x & 0x1) == 0);\n \t}", "public static final boolean odd(int x) {\n \t\treturn !even(x);\n \t}", "public boolean isEven(){\r\n\t\tif (value%2==0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\t}", "public static final boolean odd(long x) {\n \t\treturn !even(x);\n \t}", "public boolean isEven()\n\t{\n\t\treturn isEven(value);\n\t}", "public static boolean isEven(int value)\n\t{\n\t\treturn (value % 2) == 0;\n\t}", "public boolean isEven() {\n boolean isEven = false;\n if (value % 2 == 0)\n isEven = true;\n return isEven;\n }", "private static boolean isEven(Integer element) {\n return element % 2 == 0;\n }", "boolean isOddOrEven(int n){\n return (n & 1) == 0;\n }", "@Override\n\tpublic boolean isEvenNumber(long number) {\n\t\tif(number%2 == 0) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isEven(int n) {\n\r\n\t\treturn (n % 2) == 0 ? true : false;\r\n\r\n\t}", "public static boolean isEven(MyInteger n1){\n return n1.isEven();\n }", "public static final boolean odd(short x) {\n \t\treturn !even(x);\n \t}", "public static boolean isEven(int a) {\n return a % 2 == 0;\n }", "public static boolean isEven(MyInteger number1){\r\n\t\tif (number1.getInt()%2==0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\t}", "public static boolean isEven(int number){\r\n\t\tif (number%2==0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\t}", "public static boolean isEven(int num) {\n\t\t\treturn num%2==0;\n\t\n\t\t}", "public static boolean isEven(MyInteger value)\n\t{\n\t\treturn isEven(value.getValue());\n\t}", "public static boolean isEven(int num){\n\n boolean isEven = (num%2==0)? true: false;\n\n return isEven;\n }", "bool isEven(int n)\r\n{\n\tif (n ^ 1 == n + 1)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}", "boolean odd(int x) {\n if (x == 0) {\n return false;\n } else {\n y = x - 1;\n even(y);\n }\n}", "static boolean isEvenNumber(int number) {\n\t\tif (number < 0 || number % 2 == 1) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn isEvenNumber(number - 1);\n\t\t}\n\t}", "public static boolean isEven(int a) {\r\n //8th error redundancy ? wonder consider or not\r\n return a % 2 == 0;\r\n }", "public boolean isOdd(){\r\n\t\tif (value % 2 == 0){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isEven(int a) {\n if (a % 2 == 0) {\n return true;\n }\n return false;\n }", "public static PerformOperation isOdd() {\n return (num) -> num % 2 != 0;\n }", "public PerformOperation isOdd() {\n return n -> ((n & 1) == 1);\n }", "private boolean isPowerOfTwo(int x) {\n return (x & (x - 1)) == 0;\n }", "default boolean isEven(int a){\n return a % 2 ==0;\n }", "public static boolean isOdd(int value)\n\t{\n\t\treturn (value % 2) != 0;\n\t}", "public boolean isOdd() {\n boolean isOdd = false;\n if (value % 2 != 0)\n isOdd = true;\n return isOdd;\n }", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\tint tmp = t;\n\t\t\t\tif (tmp % 2 == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public boolean checkEven(int size){\n \t\tif((size % 2)==1){return false;} else {return true;}\n \t}", "public boolean isOdd()\n\t{\n\t\treturn isOdd(value);\n\t}", "public static void isEven(int n)\n\t{\n\t\tif (n % 2 == 0)\n\t\t\tSystem.out.println(n + \" is even\");\n\t\telse\n\t\t\tSystem.out.println(n + \" is odd\");\n\t}", "public static boolean isOdd(int iValue) {\n boolean result = (iValue % 2) != 0;\n return result;\n }", "public static boolean isOdd(int number){\r\n\t\tif (number % 2 == 0){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isOdd(int i){\n if((i & 1) == 0){\n return false;\n }\n return true;\n }", "private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Number is even and greater than 20...!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Number is odd...!!\");\n\t\t}\n\t}", "public boolean isOdd() {\n int lc = left == null ? 0 : left.isOdd() ? 1 : 0;\n int rc = right == null ? 0 : right.isOdd() ? 1 : 0;\n return (lc + rc + 1) % 2 == 1;\n }", "if(x%2)\r\n\r\n\tpublic static void main(String[] args) {\r\n\r\n\t\t\r\n\t}", "public static boolean isOdd(MyInteger n1){\n return n1.isOdd();\n }", "boolean multipleOf2(int num)\n {\n return (num & 0b1) != 1;\n }", "public static boolean isOdd(MyInteger number1){\r\n\t\tif (number1.getInt() % 2 == 0){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static void oddEven(int a) {\n\t\tif(a%2 ==0) {\n\t\t\tSystem.out.println(\"number is even\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"number is odd\");\n\t\t}\n\t}", "public static boolean isOdd(int num){\n boolean isOdd = true;\n if(num%2!=0){\n isOdd= true;\n }else if( num%2==0){\n isOdd=false;\n }\n\n return isOdd;\n\n }", "@Test\n public void testIsEven_0() {\n NaturalNumber n = new NaturalNumber2(0);\n boolean result = CryptoUtilities.isEven(n);\n assertEquals(\"0\", n.toString());\n assertTrue(result);\n }", "public static boolean isOdd(MyInteger value)\n\t{\n\t\treturn isOdd(value.getValue());\n\t}", "public boolean isPowerOfTwo2(int n) {\n return n>0 && Integer.bitCount(n) == 1;\n }", "static boolean isPowerOfTwo(int testNum)\r\n\t{\r\n\t\t//set ret to false\r\n\t\tboolean ret = false;\r\n\t\tfor (int i = 9; i < 15 || ret==false; i++)\r\n\t\t{\r\n\t\t\t//if 2 to the i power is equal to testNum (systemPage)\r\n\t\t\tif (Math.pow(2, i) == testNum)\r\n\t\t\t{\r\n\t\t\t\t//set ret to true\r\n\t\t\t\tret = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public static int getEven() {\n int even = getValidNum();\n\n while ((even % 2) == 1) {\n System.out.print(\"Please enter an EVEN number: \");\n even = getValidNum();\n }\n return even;\n }", "public boolean isDivisibleBy(int x, int y)\n\t{\n\t\tif(x % y == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\t//System.out.println(\"isDivisibleBy NOT IMPLEMENTED\");\n\t\t\treturn false;\n\t\t}\n\n\t}", "public static boolean evenlyDivisible (int num1, int num2) {\r\n if(num1 % num2 == 0) {\r\n return true;\r\n } \r\n return false;\r\n }", "private boolean isOddPrime(int t) // Not the most efficient method, but it will serve\n {\n int test = 3;\n boolean foundFactor = false;\n while(test*test < t && !foundFactor)\n {\n foundFactor = (t%test == 0); // is it divisible by test\n test += 2;\n }\n\n return !foundFactor;\n }", "public boolean isAPrimeNumber(int x){\n for(int i = 1; i <= x;i++){\n\n //if the mod = 0 then it is a divisor\n if(x % i == 0) {\n\n //increment count\n count++;\n\n }\n //if count is greater than 2 we return true because prime numbers\n //Can only be divisble by 1 and itself\n if(count > 2){\n\n return false;\n }\n\n\n\n }\n\n //If the entire loop finishes then we return true\n return true;\n }", "public boolean hasOdds()\n {\n return hasOdds;\n }", "private static boolean isPrime(int x) {\n if (x<=1)\n return false;\n else\n return !isDivisible(x, 2);\n }", "public static void main(String[] args) {\r\n // create a scanner for user input \n Scanner input = new Scanner(System.in);\r\n \n //prompt user for their number\n System.out.println(\"Enter your number\"); \n //intialize user's number\n int number = input.nextInt();\n //intialize the remainder\n int remainder = number % 2; \n \n //Determin whether user's number is odd or even\n if (remainder >= 1){\n System.out.println(number + \" is an odd number \");\n }else{\n System.out.println(number +\" is an even number\");\n } \n\n\r\n }", "public boolean isPowerOfTwo2(int n) {\n\t\tboolean is = false;\n\t\tif (n > 0) {\n\t\t\tis = ((n - 1) & n) == 0;\n\t\t}\n\t\treturn is;\n\t}", "private boolean isPrime(int x) {\n for (int i = 2; i <= x / i; i++) {\n if (x % i == 0) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPowerOfTwo(Expression expr) {\n\t\tint n;\n\t\ttry {\n\t\t\tn = new ExpressionEvaluator().evaluateAsInteger(expr);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn isPowerOfTwo(n);\n\t}", "boolean hasNum2();", "public static boolean checkOdious(int num) {\n\t\tint numberOfOnes = 0;\n\t\tint numberOfZeros = 0;\n\n\t\t// See how many 1s and 0s in number\n\t\twhile (num != 0) {\n\t\t\tif (num % 2 == 1) {\n\t\t\t\tnumberOfOnes++;\n\t\t\t} else {\n\t\t\t\tnumberOfZeros++;\n\t\t\t}\n\t\t\tnum = num / 2;\n\t\t}\n\n\t\t// Check if there is an odd number of 1s\n\t\tif (numberOfOnes % 2 == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isOdd(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn !isOdd(n - 1);\n\t\t}\n\t}", "public int setNextEven() {\n\t\twhile(x % 2 != 0) {\n\t\t\tx++;\n\t\t}\n\n\t\t// sets the new even number equal to x\n\t\tRuntimeThr.evenOddSequence = x;\n\n\t\t// Returns the next even number\n\t\treturn x;\n\t}", "public boolean isPingFang(int x){\n for(int i = 1; i < x/2; ++i){\n if(i * i == x){\n return true;\n }\n }\n return false;\n }", "public boolean evenWeek() {\r\n boolean even = false;\r\n int week = this.getWeekOfYear();\r\n if ((week % 2) == 0) {\r\n even = true;\r\n }\r\n return even;\r\n }", "boolean checkOdd(int[] table)\n{\n boolean found = false;\n for (int count : table)\n if (count % 2 == 1)\n {\n if (found) return false;\n found = true;\n }\n return true;\n}", "private boolean isPowerOfTwo(int num) {\n if (num == 0) {\n return false;\n }\n \n // check using modulus\n else {\n while (num != 1) {\n if (num % 2 != 0) {\n return false;\n }\n num /= 2;\n }\n return true;\n }\n }", "public static boolean isPrime(int x){ \n\t\t\n\t\tfor(int i = 2; i <= Math.sqrt(x); i++){\n\t\t\tif(x%i == 0){\n\t\t\t return false; \n\t\t\t}\n\t\t}\t\n\t\treturn true; \t\n\t}", "public static void main(String[]args){\r\n\tint x = 101;\r\n\r\n\tif ((x%2)==0)\r\n\t{\r\n\t\tx = (x/2);\r\n\t\tSystem.out.println(\"X is even, so new value is: \" + x);\r\n\t}//end if\r\n\telse\r\n\t{\r\n\t x = ((x * 3) - 1);\r\n\t System.out.println(\"X is odd, so new value is: \" + x);\r\n\t}//end else\r\n}", "public boolean isPowerOfTwo(int n) {\n if (n <= 0) return false;\n if (n == 1) return true;\n if (n % 2 != 0) return false;\n return isPowerOfTwo(n / 2);\n }", "static boolean isPowerOfTwo(int n) \n{\n\tif (n==0) return false;\n \treturn (n & (n-1)) == 0;\n}", "public static void main(String[] args) {\r\n // create a scanner for user import\r\n Scanner input = new Scanner(System.in);\n\n // declare a variable to see if a number is divisible by two\n final int DIVISIBLE_TWO = 2;\n\n // find out user number\n System.out.println(\"Please enter a number\");\n int number = input.nextInt();\n\n // declare a variable for the divided number\n int number2 = number%DIVISIBLE_TWO;\n\n //figure out if number is divisible by two\n if (number/DIVISIBLE_TWO == number2){\n System.out.println(\"Your number is odd\");\n } else {\n System.out.println (\"Your number is even\");\n }\n\r\n }", "public boolean or35(int n) {\n return (n % 3 == 0 || n % 5 == 0);\n}", "private boolean isPowerOfTwo(int i){\n return (i & (i - 1)) == 0;\n }", "public boolean isPowerOfTwo(int n) {\n\t\tint count1 = 0;\n\t\tfor (; n > 0;) {\n\t\t\tint tmp = n & 1;\n\t\t\tcount1 += tmp;\n\t\t\tn = n >> 1;\n\t\t}\n\t\tboolean is = (count1 == 1);\n\t\treturn is;\n\t}", "public static void main(String[] args) {\n\n System.out.println(\"Let's find if the number is even or odd\");\n\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter a number: \");\n\n int num = input.nextInt();\n if (num % 2 == 0) {\n System.out.println(\"The number entered is even number\");\n } else {\n System.out.println(\"The number entered is odd number\");\n }\n }", "@Test\n // boundary\n public void testIsPrime2_2() {\n NaturalNumber n = new NaturalNumber2(2);\n boolean truth = true;\n assertEquals(truth, CryptoUtilities.isPrime2(n));\n }", "@Test public void evenOddTest() {\n check(\"declare function local:odd($n) {\" +\n \" if($n = 0) then false()\" +\n \" else local:even($n - 1)\" +\n \"};\" +\n \"declare function local:even($n) {\" +\n \" if($n = 0) then true()\" +\n \" else local:odd($n - 1)\" +\n \"};\" +\n \"local:odd(12345)\",\n\n true,\n\n count(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'false']\", 1)\n );\n }", "public boolean isPowerOfTwo(int n) {\n return n > 0 && ((n & (-n)) == n);\n }", "public static boolean isPowerOfTwo(int n) {\n\t\treturn (n > 0) && (n & (n - 1)) == 0;\n\t}", "public boolean isPowerOfTwo(int n) {\n\t\tif(n <= 0) return false;\n\t\tfor(int max = 1<<30,i = 1; 1 <= max ; i<<=1 ){\n\t\t\tif((n & i) != 0){\n\t\t\t\tif(n == i) return true;\n\t\t\t\telse return false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public String determineEvenOrOdd(int number){\n\t\t if((number%2)==0) { return \"even\"; } else { return \"odd\"; }\n\t\t }", "public static String oddEven(int n){\n // Returning String as an \"Even\" or \"Odd\"\n return n%2==0?\"Even\":\"Odd\";\n }", "public static boolean isPowerOfTwo(int n) {\n\t\t if (n < 1) return false;\n\t\t return (n & (n - 1)) == 0;\n\t\t }", "public boolean isOvert() {\n\t\t// Even columns indices are overts in the upper half of the board\n\t\treturn (row + column) % 2 != 0;\n\t}", "public boolean or35 (int n) {\n if ( (n % 3 == 0) || (n % 5 == 0)){\n return true;\n }\n return false;\n}", "public static boolean\ttwoTwo(int[] nums) {\n\n\t\tif (nums.length == 0) {\n\t\t\treturn true;\n\t\t}\n\t\tif (nums.length == 1) {\n\t\t\tif (nums[0] == 2) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (nums[nums.length - 1] == 2) {\n\t\t\tif (nums[nums.length - 1] != nums[nums.length - 2]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\t\n\t\t\tif (nums[i] == 2) {\n\t\t\t\tif (nums[i+1] != 2) {\n\t\t\t\t\treturn false;\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ti++;\n\t\t\t\t}\t\t\t\n\t\t\t}\t\t\n\n\t\t}\n\n\n\t\treturn true;\n\n\n\t}", "public static boolean w(long n) {\r\n boolean boo2 = true;\r\n // boo = true if the number is prime; otherwise false.\r\n if (n <= 1) {\r\n boo2 = false;\r\n } else {\r\n int i = 2;\r\n while (i < n) {\r\n if (n % i == 0)\r\n boo2 = false;\r\n i ++;\r\n }\r\n }\r\n return boo2;\r\n }", "public static final boolean isPowerOfTwo(final int value) {\r\n return BitHacks.IsPowerOfTwo(value);\r\n }", "public static boolean isPrime(int x) {\n boolean isPrime = false;\n if (x > 1) {\n isPrime = true;\n for (int i = 2; i <= x / 2; ++i) {\n if (x % i == 0) {\n isPrime = false;\n break;\n }\n }\n }\n return isPrime;\n }", "public void getEvenOdd(int num) {\r\n\t\t\r\n\t\tSystem.out.println(\"The given number is : \"+num);\r\n\t\t\r\n\t\tif(num % 2 == 0) {\r\n\t\t\tSystem.out.println(\"This is Even number\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"This is odd number\");\r\n\t\t}\r\n\r\n\t}", "public static boolean dividesEvenly(int a, int b) {\n if ((a % b) == 0) {\n return true;\n } else {\n return false;\n }\n }", "static public int evenCalc (int[] a){\n int counter = 0;\n for (int i = 0; i < a.length; i++){\n if(a[i] % 2 == 0)\n counter ++;\n }\n return counter;\n }", "public boolean isHalfCarry() {\n\t\treturn ((get() >> 5) & 1) == 1;\n\t}", "public static boolean f(long n) {\r\n boolean boo1 = true;\r\n // boo = true if the number is prime, & false otherwise.\r\n if (n <= 1) { // 0 and 1 arent prime numbers.\r\n boo1 = false;\r\n } else {\r\n for (int i = 2; i < n; i++) {\r\n // the condition has to be i < n so n (especially prime) wouldn't be divided itself.\r\n if (n % i == 0)\r\n boo1 = false;\r\n }\r\n }\r\n return boo1;\r\n }", "@Override\n public boolean test(Long o) {\n Double sqrt = Math.sqrt(o.doubleValue());\n return LongStream.rangeClosed(2, sqrt.intValue()).noneMatch(i -> o % i == 0);\n }" ]
[ "0.8683322", "0.83601826", "0.8071308", "0.8050362", "0.7901117", "0.77842754", "0.7699728", "0.76289594", "0.7568835", "0.751496", "0.7509861", "0.7476895", "0.74375075", "0.7430141", "0.74251854", "0.74027467", "0.73945683", "0.73486143", "0.73128265", "0.72892654", "0.7254945", "0.72537416", "0.7224467", "0.72147256", "0.7213522", "0.71970904", "0.71053696", "0.70797", "0.69879544", "0.68778414", "0.68737376", "0.68596613", "0.6857954", "0.6847422", "0.6792164", "0.65862095", "0.65320814", "0.65289336", "0.64856184", "0.6468665", "0.64085275", "0.63318056", "0.63294584", "0.6328569", "0.6319456", "0.6284413", "0.6254359", "0.6245792", "0.62308747", "0.6204021", "0.61315507", "0.6130648", "0.61277", "0.61179215", "0.6115314", "0.6102436", "0.60821444", "0.60458505", "0.6043753", "0.6039554", "0.6006039", "0.60049963", "0.5985621", "0.5983811", "0.59721655", "0.5969973", "0.5965239", "0.59617203", "0.5954691", "0.5924864", "0.59021014", "0.5887593", "0.5886426", "0.58495694", "0.5846764", "0.5832924", "0.5819186", "0.5819066", "0.57726175", "0.5751515", "0.57501704", "0.5742453", "0.57039744", "0.56974447", "0.5677636", "0.566249", "0.5660313", "0.5655341", "0.5650668", "0.56405807", "0.56342113", "0.56319445", "0.56110096", "0.56044805", "0.55971694", "0.55882907", "0.5555133", "0.55511", "0.55377465", "0.5524164" ]
0.8490624
1
quand on definit des objets on veut pouvoir les afficher: il faut donc definir une methode toString
@Override public String toString() { return "(" + idn + "," + this.n + ")"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() ;", "@Override\r\n String toString();", "@Override String toString();", "@Override public String toString();", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n\tpublic String toString();", "@Override\n\tString toString();", "@Override\n\tpublic abstract String toString();", "@Override\n\tpublic String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\r\n public String toString();", "@Override\n\tpublic abstract String toString ();", "public String toString() {\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();", "@Override\n public String toString();", "@Override\n public String toString();", "@Override\n\tpublic String toString(){\n\n\t}", "@Override\n 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();", "abstract public String toString();", "@Override\n public String toString(){\n return toString(false);\n }", "@Override\n public abstract String toString();", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "public String toString() {\n \t\treturn super.toString();\n \t}", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "public String toString(){\n return \"Salir carcel\";\n }", "public String toString() {\n return \"\" +getNombre() + \",\" + getPuntos();\n }", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn this.titolo + \" \" +this.autore + \" \" + this.genere;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}" ]
[ "0.7925538", "0.77156854", "0.7714889", "0.770456", "0.7688527", "0.7688527", "0.76849824", "0.7668969", "0.76656306", "0.7638738", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.7628439", "0.7612998", "0.7608121", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7597975", "0.7580202", "0.7580202", "0.75702417", "0.7556952", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.75250536", "0.7506642", "0.749168", "0.74911284", "0.74598324", "0.74598324", "0.7431175", "0.74310434", "0.7426285", "0.7407794", "0.74073875", "0.7386637", "0.7386637", "0.7386637", "0.7386637", "0.7386637", "0.7386637", "0.73865515", "0.7368813", "0.73668945", "0.73649", "0.7358839", "0.7353283", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176", "0.73488176" ]
0.0
-1
pour avoir position de l'appui Px sur segment
@Override public double calPx() { return this.n.getPx(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getPos() {\n return ((spos-xpos))/(sposMax-sposMin);// * ratio;\n }", "double getPositionX();", "double getPositionX();", "double getPositionX();", "protected double xPixelToPosition(double pixel) {\r\n// double axisV = xPositionToPixel(originX);\r\n// return (pixel - axisV) * (maxX - minX) / (double) getWidth();\r\n return minX + pixel * (maxX - minX) / getWidth();\r\n }", "public double getPlanPosition(double percentPos){\n return percentPos * (illustration.getOriginalWidth()/horizontalMeter);\n }", "public int getX() { return position.x; }", "public int getX(){ return xPosition; }", "private int xpos(final PlatformEvent event) {\n // To support Noncontiguous NodeId, the index of the NodeId in the address book is used.\n final int nodeIndex = platform.getAddressBook().getIndexOfNodeId(event.getCreatorId());\n return (nodeIndex + 1) * width / (numColumns + 1);\n }", "public Point relativePoint(Point p){\n System.out.println(\"DENSITY:\"+getResources().getDisplayMetrics().density);\n DisplayMetrics dm = getResources().getDisplayMetrics();\n System.out.println(dm);\n\n //--good for MOUNTAIN_SIZE==1.5\n// float scale = 1 * getResources().getDisplayMetrics().density /( dm.xdpi/dm.densityDpi) ;\n// float y_move = mountain_max;\n//\n// System.out.println(\"POOOINT: \"+p+\" => \"+new Point((int)(p.x*scale/MOUNTAIN_SIZE), (int)((p.y)*scale/MOUNTAIN_SIZE-y_move)));\n// return new Point((int)(p.x*scale/MOUNTAIN_SIZE), (int)((p.y)*scale/MOUNTAIN_SIZE-y_move));\n\n\n //a bit too big when increasing mountine_size\n// float scale = 1 /( dm.xdpi/dm.densityDpi) ;\n// float y_move = mountain_max;\n//\n// Point ret = new Point((int)(p.x*MOUNTAIN_SIZE/scale), (int)((p.y)*MOUNTAIN_SIZE/scale-y_move));\n// System.out.println(\"POOOINT: \"+p+\" => \"+ret);\n// System.out.println(\"POOOINT: \"+icons.getLayoutParams().width+\", \"+ icons.getLayoutParams().height);\n\n float scale = 1 /( dm.xdpi/dm.densityDpi) ;\n float y_move = mountain_max;\n\n\n\n Point ret = new Point((int)(p.x*MOUNTAIN_SIZE/scale/mountain.getLayoutParams().width*icons.getLayoutParams().width),\n (int)((p.y)*MOUNTAIN_SIZE/scale/mountain.getLayoutParams().height*icons.getLayoutParams().height)-mountain_max);\n //Point ret = new Point((int)((float)p.x/(float)mountain.getLayoutParams().width*icons.getLayoutParams().width),\n // (int)((float)p.y/(float)mountain.getLayoutParams().height*icons.getLayoutParams().height)-(int)(mountain_max));\n System.out.println(\"POOOINT: \"+p+\" => \"+ret);\n System.out.println(\"POOOINT: \"+(float)p.x/(float)mountain.getLayoutParams().width+\", \"+ (float)p.y/(float)mountain.getLayoutParams().height);\n\n\n return ret;\n\n\n }", "private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }", "private int getRegion(Point p) {\n // divide top segment equally\n Segment topSegment = Segment.fromStartAndWidth(this.topLeft.getX(), getWidth());\n EqualSegmentDivision partsOfPaddle = new EqualSegmentDivision(topSegment, REGIONS);\n\n // get index on the line division\n int index = partsOfPaddle.getIndexForPosition(p.getX());\n\n // do validity checks\n if (index < 0) {\n return 0;\n } else if (index >= REGIONS) {\n return REGIONS - 1;\n } else {\n return index;\n }\n }", "double getXPosition();", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}", "int getPosition();", "public float getPos() {\n return (spos - xpos) / (swidth - sheight);\n }", "public int getPosicaoX() {\r\n\t\treturn posicaoX;\r\n\t}", "public double getPosition(double value) {\n return getRelPosition(value) * (size - nanW - negW - posW) + (min < max ? negW : posW);\n }", "void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}", "public int getXPos();", "public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }", "@Override\n public int getXOffset(float xpos) {\n return -(getWidth() / 2);\n }", "private int get_x() {\n return center_x;\n }", "public int getX(){\n return this.position[0];\n }", "public int getDesplaceOffsetX(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -10;\r\n\t\t}else{\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t}", "public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }", "public float getPosX(){return px;}", "private double xPos(double xMetres){\r\n\t\treturn xMetres*14+canvas.getWidth()/2;\r\n\t}", "int getStartSegment();", "private int rowPos(int pos) {\r\n return pos / squareDimension;\r\n }", "public int getDireccionX(){\n return this.ubicacion.x;\n }", "public void getSegmentSimPositions()\n {\n Wormsim.getBody(wormBody);\n float s = (float)Agar.SIZE.width * Agar.SCALE / 0.001f;\n for (int i = 0; i < NBAR; i++)\n {\n double x = ((wormBody[i * 3]) * s) + agar.x_off;\n double y = ((wormBody[i * 3 + 1]) * s) + agar.y_off;\n wormVerts[i] = new Point2D.Double(x, y);\n }\n double w = (double)Agar.SIZE.width / (double)Agar.GRID_SIZE.width;\n double h = (double)Agar.SIZE.height / (double)Agar.GRID_SIZE.height;\n for (int i = 0; i < NUM_SEGMENTS; i++)\n {\n double x = 0.0;\n double y = 0.0;\n for (int j = 0, k = i * 4; j < 4; j++, k++)\n {\n x += wormVerts[k].x;\n y += wormVerts[k].y;\n }\n x /= 4.0;\n y /= 4.0;\n segmentSimPositions[i] = new Point((int)(x / w), (int)(y / h));\n }\n }", "public double getPlanPosition(double percentPos, int width){\n return percentPos * (width/horizontalMeter);\n }", "private int computeDotPosY(Beacon beacon) {\n double distance = Math.min(Utils.computeAccuracy(beacon), 6.0);\n return startY + (int) (segmentLength * (distance / 6.0));\n }", "void locate(int pos, int[] ind) {\r\n\t\tind[0] = (int) pos / (dimx * dimy); // t\r\n\t\tind[1] = (pos % (dimx * dimy)) / dimy; // x\r\n\t\tind[2] = pos % (dimy); // y\r\n\t}", "private Point calculaLocal(JDesktopPane dpArea, JInternalFrame p) {\n return new Point(((dpArea.getWidth() - p.getWidth()) / 2), ((dpArea.getHeight() - p.getHeight()) / 2));\n }", "public int stapelPosition(Farbe farbe);", "@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 }", "int getStartPosition();", "int getStartPosition();", "private void ActualizaPosicionesFondos() {\n xFondo-=10; //Es el cursor de la posición\n xFondoBase-=10; //Aqui se puede implementar metodo de modificacion de velocidad de fondo.\n xFondoApoyo-=10;\n if (xFondo == -texturaFondoBase.getWidth()){\n xFondoBase = xFondoApoyo+texturaFondoApoyo.getWidth();\n cambiosFondo++;\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())) {\n xFondoApoyo = xFondoBase+texturaFondoBase.getWidth();\n cambiosFondo++;\n }\n }", "public abstract int ranXPos();", "public abstract int getStartPosition();", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "double getStartX();", "int getSegment();", "public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }", "public void mou(){\n\n this.setY(getY() + getVelocitatY());\n this.setX(getX() + getVelocitatX());\n\n }", "public short getXPos(){\n return xPos;\n }", "public int getFirstPos ()\r\n {\r\n return glyph.getBounds().y;\r\n }", "public int getPosition();", "void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "public float getStartX() {return startX;}", "@Override\n public MPPointF getOffset() {\n return new MPPointF(-(getWidth() / 2.0f), -getHeight() - (getHeight() / 4.0f));\n }", "Point getPosition();", "Point getPosition();", "private int getPos(Label l) {\n\t\tRectangle2D pRect = l.getRect();\n\t\t//System.out.println(pRect);\n\t\tint index = -1;\n\t\tdouble verticalMidpoint = bounds.getX() + (bounds.getWidth() / 2.0d);\n\t\tdouble horizontalMidpoint = bounds.getY() + (bounds.getHeight() / 2.0d);\n\t \n\t\t//drawPoint(new Vector2f((double)verticalMidpoint,(double)horizontalMidpoint), 0.05f, Color.WHITE);\n\t\t\n\t\t// Object can completely fit within the top quadrants\n\t\tboolean topQuadrant = (\n\t\t\t\tpRect.getY() < \n\t\t\t\thorizontalMidpoint && \n\t\t\t\tpRect.getY() + \n\t\t\t\tpRect.getHeight() < \n\t\t\t\thorizontalMidpoint);\n\t\t// Object can completely fit within the bottom quadrants\n\t\tboolean bottomQuadrant = (pRect.getY() > horizontalMidpoint);\n\t\t\n\t\t//System.out.println(topQuadrant);\n\t\t\n\t\t// Object can completely fit within the left quadrants\n\t\tif (pRect.getX() < verticalMidpoint && pRect.getX() + pRect.getWidth() < verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 1;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 2;\n\t\t\t}\n\t\t}\n\t\t// Object can completely fit within the right quadrants\n\t\telse if (pRect.getX() > verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 0;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 3;\n\t\t\t}\n\t\t}\n\t \n\t\treturn index;\n\t}", "private Point getMainPoint()\n {\n // Center of screen\n int x = (findViewById(R.id.the_canvas).getWidth() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteWidth())/2;\n // Very bottom of screen\n int y = findViewById(R.id.the_canvas).getHeight() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteHeight();\n\n return new Point (x,y);\n }", "RealLocalizable getPosition();", "public int getPos();", "public int getPos();", "NavePosicao(int frame, double angulo) {\r\n\t\tthis.frame = frame;\r\n\t\tthis.angulo = angulo;\r\n }", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "public int getPositionX(){\n\t\treturn positionx;\n\t}", "Vaisseau_positionner createVaisseau_positionner();", "public int[] calculateAutoAdjustPosition() {\n int[] result = new int[2];\n if (mMainView.getLayoutParams() == null || !(mMainView.getLayoutParams() instanceof MarginLayoutParams)) {\n return result;\n }\n // adjust position so it will align pdfviewctrl layout\n measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);\n MarginLayoutParams mlp = (MarginLayoutParams) mMainView.getLayoutParams();\n\n\n int y;\n int verticalGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK;\n switch (verticalGravity) {\n case Gravity.TOP:\n y = mPDFViewCtrl.getTop() + mlp.topMargin;\n break;\n case Gravity.CENTER_VERTICAL:\n y = mPDFViewCtrl.getTop() + mPDFViewCtrl.getHeight() / 2 - getMeasuredHeight() / 2 + mlp.topMargin;\n break;\n default:\n y = mPDFViewCtrl.getBottom() - getMeasuredHeight() - mlp.bottomMargin;\n break;\n }\n\n result[1] = y;\n\n int x;\n int gravity = Utils.isJellyBeanMR1() ? Gravity.getAbsoluteGravity(mGravity, getLayoutDirection()) : mGravity;\n int horizontalGravity = gravity & Gravity.HORIZONTAL_GRAVITY_MASK;\n switch (horizontalGravity) {\n case Gravity.RIGHT:\n x = mPDFViewCtrl.getRight() - getMeasuredWidth()\n - mlp.leftMargin - mlp.rightMargin;\n break;\n case Gravity.CENTER_HORIZONTAL:\n x = mPDFViewCtrl.getLeft() + mPDFViewCtrl.getWidth() / 2 - getMeasuredWidth() / 2 + mlp.leftMargin;\n break;\n default:\n x = mPDFViewCtrl.getLeft() + mlp.leftMargin;\n break;\n }\n result[0] = x;\n return result;\n }", "public int getX() {\r\n return xpos;\r\n }", "private int getX(int arg) {\n\n\t\targ = (arg * Width) / 1000;\n\n\t\treturn arg;\n\t}", "private int getX(int arg) {\n\n\t\targ = (arg * Width) / 1000;\n\n\t\treturn arg;\n\t}", "void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }", "private int getPosition(int row, int col) {\n\t\treturn (side * (row - 1)) + (col - 1);\n\t}", "double getMapPositionX();", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "private int getParentIdx(int pos) {\n return (pos - 1) / 2;\n }", "public abstract int positionBonus();", "public void setDireccionX(int i){\n this.ubicacion.x=i;\n }", "int getBoundsX();", "public float getSizeX(){return sx;}", "@Override\n\tpublic int findSegment(int x, int y) {\n\t\treturn -1;\n\t}", "public void drawLine(Position scanPos, Position mypos)// in\n \t\t// ver�nderter\n \t\t// Form von\n \t\t// http://www-lehre.informatik.uni-osnabrueck.de\n \t\t\t{\n \t\t\t\tint x, y, error, delta, schritt, dx, dy, inc_x, inc_y;\n \n \t\t\t\tx = mypos.getX(); // \n \t\t\t\ty = mypos.getY(); // As i am center\n \n \t\t\t\tdx = scanPos.getX() - x;\n \t\t\t\tdy = scanPos.getY() - y; // Hoehenzuwachs\n \n \t\t\t\t// Schrittweite\n \n \t\t\t\tif (dx > 0) // Linie nach rechts?\n \t\t\t\t\tinc_x = 1; // x inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach links\n \t\t\t\t\tinc_x = -1; // x dekrementieren\n \n \t\t\t\tif (dy > 0) // Linie nach oben ?\n \t\t\t\t\tinc_y = 1; // y inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach unten\n \t\t\t\t\tinc_y = -1; // y dekrementieren\n \n \t\t\t\tif (Math.abs(dy) < Math.abs(dx))\n \t\t\t\t\t{ // flach nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dx); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dy); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (x != scanPos.getX())\n \t\t\t\t\t\t\t{\n \n \t\t\t\t\t\t\t\tif (x != mypos.getX())\n \t\t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY()); // Fuer\n \t\t\t\t\t\t\t\t\t\t// jede\n \t\t\t\t\t\t\t\t\t\t// x-Koordinate\n \t\t\t\t\t\t\t\t\t\t// System.out.println(\"inc pos \"+ (x +\n \t\t\t\t\t\t\t\t\t\t// mypos.getX()));\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\tx += inc_x; // naechste x-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Spalte erreicht?\n \t\t\t\t\t\t\t\t\t\ty += inc_y; // y-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t} else\n \t\t\t\t\t{ // steil nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dy); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dx); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (y != scanPos.getY())\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tif (y != mypos.getY())\n \t\t\t\t\t\t\t\t\t{// fuer jede y-Koordinate\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY());\n \t\t\t\t\t\t\t\t\t}// setze\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\ty += inc_y; // naechste y-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Zeile erreicht?\n \t\t\t\t\t\t\t\t\t\tx += inc_x; // x-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\tif ((x != scanPos.getX() && y != scanPos.getY()))\n \t\t\t\t\t{\n \t\t\t\t\t\tdecPix(scanPos.getX() + x, scanPos.getY() + y);\n \t\t\t\t\t}\n \t\t\t}", "public int getXOffset(float xpos) {\n return -(getWidth() / 2);\n }", "protected abstract int getXOffset();", "@Override\n\tpublic int getX() {\n\t\treturn this.posicionX;\n\t}", "String getPosX();", "public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }", "protected abstract void calcOrigin();", "public int PositionGet();", "public Ndimensional getStartPoint();", "public float getPositionX() {return this.position.getX();}", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "void getPosRelPoint(double px, double py, double pz, DVector3 result);", "public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }", "private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "public int getX() {\n return positionX;\n }", "public double getX() { return _width<0? _x + _width : _x; }" ]
[ "0.6284658", "0.612352", "0.612352", "0.612352", "0.6030339", "0.5973275", "0.5966206", "0.5961991", "0.59382945", "0.5931422", "0.5929874", "0.59296405", "0.5898462", "0.5890515", "0.58831316", "0.5882001", "0.5865392", "0.58631253", "0.58602095", "0.58449936", "0.58284634", "0.5827015", "0.58157355", "0.58070785", "0.58007663", "0.5799316", "0.5794724", "0.5789782", "0.5779121", "0.5778299", "0.5777403", "0.57651764", "0.57558596", "0.5745177", "0.5744426", "0.5744175", "0.5738709", "0.5730356", "0.5720161", "0.57115674", "0.57115674", "0.5706798", "0.5697611", "0.56933826", "0.56899685", "0.5673309", "0.5672724", "0.5656058", "0.5655325", "0.56453884", "0.564511", "0.56414384", "0.56348145", "0.56276554", "0.5596242", "0.5584811", "0.5583043", "0.5583043", "0.55803096", "0.55800927", "0.55776983", "0.5575085", "0.5575085", "0.5572027", "0.55716926", "0.5570542", "0.55656856", "0.55548805", "0.5549668", "0.5546299", "0.5546012", "0.5546012", "0.5538986", "0.5532242", "0.55321354", "0.5528654", "0.5528628", "0.5528506", "0.5528077", "0.5520894", "0.5516101", "0.5512477", "0.5512198", "0.550611", "0.55050683", "0.5500197", "0.54990965", "0.5491634", "0.54896826", "0.5488334", "0.5486238", "0.5479844", "0.54778117", "0.547422", "0.54724973", "0.54712427", "0.5459797", "0.545236", "0.54415953", "0.5441034" ]
0.55221486
79
RUNTIME ERROR: When fields are blank or values do not match data types, the system cannot handle the action event. The try/catch code catches these errors Modify event
@FXML void onActionModifyPart(ActionEvent event) throws IOException { try { int id = currPart.getId(); String name = partNameTxt.getText(); int stock = Integer.parseInt(partInvTxt.getText()); double price = Double.parseDouble(partPriceTxt.getText()); int max = Integer.parseInt(maxInvTxt.getText()); int min = Integer.parseInt(minInvTxt.getText()); int machineId; String companyName; boolean partAdded = false; if (name.isEmpty()) { //RUNTIME ERROR: Name empty exception errorLabel.setVisible(true); errorTxtLabel.setText("Name cannot be empty."); errorTxtLabel.setVisible(true); } else { if (minVerify(min, max) && inventoryVerify(min, max, stock)) { if(inHouseRBtn.isSelected()) { try { machineId = Integer.parseInt(partIDTxt.getText()); InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId); newInHousePart.setId(currPart.getId()); Inventory.addPart(newInHousePart); partAdded = true; } catch (Exception e) { //LOGICAL ERROR: Invalid machine ID error errorLabel.setVisible(true); errorTxtLabel.setText("Invalid machine ID."); errorTxtLabel.setVisible(true); } } if (outsourcedRBtn.isSelected()) { companyName = partIDTxt.getText(); OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName); newOutsourcedPart.setId(currPart.getId()); Inventory.addPart(newOutsourcedPart); partAdded = true; } if (partAdded){ errorLabel.setVisible(false); errorTxtLabel.setVisible(false); Inventory.deletePart(currPart); //Confirm modify Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Modify Part"); alert.setContentText("Save changes and return to main menu?"); Optional<ButtonType> result = alert.showAndWait(); if (result.isPresent() && result.get() == ButtonType.OK) { stage = (Stage) ((Button)event.getSource()).getScene().getWindow(); scene = FXMLLoader.load(getClass().getResource("/View/Main.fxml")); stage.setScene(new Scene(scene)); stage.show(); } } } } } catch(Exception e) { //RUNTIME ERROR: Blank fields exception errorLabel.setVisible(true); errorTxtLabel.setText("Form contains blank fields or errors."); errorTxtLabel.setVisible(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void editOccured(ModifyEvent e) {\n \n \t\tString aValue = text.getText();\n \t\tif (aValue == null) {\n \t\t\taValue = StringStatics.BLANK;\n \t\t}\n \t\tObject typedValue = aValue;\n \t\tboolean oldValidState = isValueValid();\n \t\tboolean newValidState = isCorrect(typedValue);\n \t\tif (typedValue == null && newValidState) {\n \t\t\tassert (false) : \"Validator isn't limiting the cell editor's type range\"; //$NON-NLS-1$\n \t\t}\n \t\tif (!newValidState) {\n \t\t\t// try to insert the current value into the error message.\n \t\t\tsetErrorMessage(\n \t\t\t\tMessageFormat.format(\n \t\t\t\t\tgetErrorMessage(),\n \t\t\t\t\tnew Object[] { aValue }));\n \t\t}\n \t\tvalueChanged(oldValidState, newValidState);\n \t}", "@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}", "@Override\n protected void validateEdit(Fornecedor post) {\n\n }", "@Override\n public void errorOnUpdate(String buxError) {\n }", "public void tryEdit() throws SQLException, DataStoreException, Exception {\r\n\t\tif (isDataModified()) {\r\n\t\t\tscrollToMe();\r\n if (getValidator().getUseAlertsForErrors()) {\r\n addConfirmScript(_okToEditQuestion, _okToEditValue);\r\n }\r\n else {\r\n _validator.setErrorMessage(_okToEditQuestion, null, -1, _okToEdit);\r\n }\r\n\t\t}\r\n else {\r\n\t\t\tdoEdit();\r\n }\r\n\t}", "@Override\n public void handleEditStart ()\n {\n\n }", "public void updateNonDynamicFields() {\n\n\t}", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "public void editOperation() {\n\t\t\r\n\t}", "@Override\r\n public void EditMap() throws Exception {\r\n printInvalidCommandMessage();\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t if (tf.isEditValid()) { //The text is invalid.\n\t\t\t //The text is valid,\n\t\t try {\n\t\t\t\t\t\t\ttf.commitEdit();\n\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} //so use it.\n\t\t tf.postActionEvent(); //stop editing\n\t\t\t }\n\t\t\t\t}", "@Override\n public void checkEditing() {\n }", "private void modifyActionPerformed(ActionEvent evt) throws Exception {\n String teaID = this.teaIDText.getText();\n String teaCollege = this.teaCollegeText.getText();\n String teaDepartment = this.teaDepartmentText.getText();\n String teaType = this.teaTypeText.getText();\n String teaPhone = this.teaPhoneText.getText();\n String teaRemark = this.teaRemarkText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null, \"请先选择一条老师信息!\");\n return;\n }\n if(StringUtil.isEmpty(teaCollege)){\n JOptionPane.showMessageDialog(null, \"学院不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaDepartment)){\n JOptionPane.showMessageDialog(null, \"系不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaType)){\n JOptionPane.showMessageDialog(null, \"类型不能为空!\");\n return;\n }\n if(StringUtil.isEmpty(teaPhone)){\n JOptionPane.showMessageDialog(null, \"手机不能为空!\");\n return;\n }\n if(!StringUtil.isAllNumber(teaPhone)){\n JOptionPane.showMessageDialog(null, \"请输入合法的手机号!\");\n return;\n }\n if(teaPhone.length() != 11){\n JOptionPane.showMessageDialog(null, \"请输入11位的手机号!\");\n return;\n }\n int confirm = JOptionPane.showConfirmDialog(null, \"确认修改?\");\n if(confirm == 0){//确认修改\n Teacher tea = new Teacher(teaID,teaCollege,teaDepartment,teaType,teaPhone,teaRemark);\n Connection con = dbUtil.getConnection();\n int modify = teacherInfo.updateInfo(con, tea);\n if(modify == 1){\n JOptionPane.showMessageDialog(null, \"修改成功!\");\n resetValues();\n }\n else{\n JOptionPane.showMessageDialog(null, \"修改失败!\");\n return;\n }\n initTable(new Teacher());//初始化表格\n }\n }", "protected void processAction(Event e) {\n\n\t\t// First check to see if the fields are empty.\n\t\tif (typeNameTF.getText().isEmpty() || unitsTF.getText().isEmpty() || unitMeasureTF.getText().isEmpty()\n\t\t\t\t|| validityDaysTF.getText().isEmpty() || reorderPointTF.getText().isEmpty()\n\t\t\t\t|| notesTF.getText().isEmpty())\n\t\t\tmessageLBL.setText(\"All Item Type data must be filled\");\n\t\telse if(!isInt(unitsTF.getText())) {\n\t\t\tmessageLBL.setText(\"Units must be an integer.\");\n\t\t}\n\t\telse if(!isInt(validityDaysTF.getText())) {\n\t\t\tmessageLBL.setText(\"Validity days must be an integer.\");\n\t\t}\n\t\telse if(!isInt(reorderPointTF.getText())) {\n\t\t\tmessageLBL.setText(\"Reorder point must be an integer.\");\n\t\t}\n\t\t// Then check to see if it is the submit button.\n\t\telse if (e.getSource() == submitBTN)\n\t\t\taddInventoryItemType();\n\t}", "@Override\n\tpublic void changedUpdate(DocumentEvent e) {\n\t\tvalidateNameField();\n\t}", "@Override\n\tpublic void insertUpdate(DocumentEvent e) {\n\t\tvalidateNameField();\n\t}", "private void editAccountType() throws Exception, EditUserException {\n String userChange = userIDInput.getText();\n String accountTypeInput = accountTypeValueEdit;\n try {\n Admin.editAccountType(userChange, accountTypeInput);\n String msg = \"Change user \" + userChange + \" to \" + accountTypeInput + \" success!\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset values\n userIDInput.setText(\"\");\n } catch (NullPointerException e) {\n String msg = \"Edit User Error: Empty values. Please try again.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new NullPointerException(msg);\n } catch (SQLException e) {\n String msg = \"Edit User SQL Error: Could not add to database.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new Exception(msg);\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "public void setEditable(){\r\n treatmentTabletv.setEditable(true);\r\n //treatment id editable\r\n treatmentIDColumn.setEditable(true);\r\n treatmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment ID\")\r\n .text(\"Treatment ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //if Treatment ID is a duplicate, show error\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //else update treatment ID\r\n else {\r\n String dataUpdate = \"update treatment set treatmentID = ? where treatmentName = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getTreatmentNameProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setIdProperty(t.getNewValue());\r\n }\r\n }\r\n\r\n });\r\n //treatmentName editable\r\n treatmentNameColumn.setEditable(true);\r\n treatmentNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentNameColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment Name\")\r\n .text(\"Treatment Name text field is empty. Text fields may not be left empty. Please insert a valid Treatment Name!\")\r\n .showError();\r\n }\r\n else {\r\n String dataUpdate = \"update treatment set treatmentName = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setTreatmentNameProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n //medicine id editable\r\n medicineIDColumn.setEditable(true);\r\n medicineIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n medicineIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Medicine ID\")\r\n .text(\"Treatment's Medicine ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment's Medicine ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update medicine id\r\n else {\r\n String dataUpdate = \"update treatment set medicineID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setMedicineIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n //department id editable\r\n departmentIDColumn.setEditable(true);\r\n departmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n departmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Department ID\")\r\n .text(\"Treatment's Department ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Department ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment's ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update department ID\r\n else {\r\n String dataUpdate = \"update treatment set departmentID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setDepartmentIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n //disease id editable\r\n diseaseIDColumn.setEditable(true);\r\n diseaseIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n diseaseIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Disease ID\")\r\n .text(\"Treatment's Disease ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Disease ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update disease ID\r\n else {\r\n String dataUpdate = \"update treatment set diseaseID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setDiseaseIDProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n }", "@Override\n\tprotected List<Message> validateUpdate(SecUser entity) {\n\t\treturn null;\n\t}", "public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "private void tblEntryVetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {\n }", "@FXML\n void handleEdit(ActionEvent event) {\n if (checkFields()) {\n\n try {\n //create a pseudo new environment with the changes but same id\n Environment newEnvironment = new Environment(oldEnvironment.getId(), editTxtName.getText(), editTxtDesc.getText(), editClrColor.getValue());\n\n //edit the oldenvironment\n Environment.edit(oldEnvironment, newEnvironment);\n } catch (SQLException exception) {\n //failed to save a environment, IO with database failed\n Manager.alertException(\n resources.getString(\"error\"),\n resources.getString(\"error.10\"),\n this.dialogStage,\n exception\n );\n }\n //close the stage\n dialogStage.close();\n } else {\n //fields are not filled valid\n Manager.alertWarning(\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid.content\"),\n this.dialogStage);\n }\n Bookmark.refreshBookmarksResultsProperty();\n }", "private void jButtonUpdateTupleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonUpdateTupleActionPerformed\n // TODO add your handling code here:\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n ActivityTypeTable at = new ActivityTypeTable(jTextFieldActivityType.getText(),\n sdf.format(jDateChooserStart.getDate()), sdf.format(jDateChooserEnd.getDate()));\n\n dm.updateActivity(at);\n JOptionPane.showMessageDialog(new JFrame(), \"Row is Now Updated (Note: Activity Type Can not be Updated)\", \"Completed\", JOptionPane.INFORMATION_MESSAGE);\n\n } catch (SQLException | HeadlessException ex) {\n\n System.out.println(ex.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), ex.getMessage(), \"An SQL Exception was thrown:\", JOptionPane.ERROR_MESSAGE);\n\n } catch (Exception e) {\n\n System.out.println(e.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"Please Type in Correct Values\", \"Incorrect/Null Vaules\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n\tpublic void preparedUpdateEmployee(Employee e) {\n\t\t\n\t}", "@Test\n public void test097() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"Col componet can be added only toTa TableBlock.\", \"Col componet can be added only toTa TableBlock.\");\n DateInput dateInput0 = new DateInput(hidden0, \"Col componet can be added only toTa TableBlock.\", \"Col componet can be added only toTa TableBlock.\", \"Col componet can be added only toTa TableBlock.\");\n String[] stringArray0 = new String[3];\n // Undeclared exception!\n try {\n dateInput0._setSubmitValue(stringArray0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Failed to initialize SimpleDateFormat with pattern 'Col componet can be added only toTa TableBlock.'.\n //\n }\n }", "private void edit() {\n\n\t}", "public void beforeEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n// strEstCncDia=tblDat.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_CON)==null?\"\":tblDat.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_CON).toString();\n// if(strEstCncDia.equals(\"S\")){\n// mostrarMsgInf(\"<HTML>La cuenta ya fue conciliada.<BR>Desconcilie la cuenta en el documento a modificar y vuelva a intentarlo.</HTML>\");\n//// fireAsiDiaListener(new ZafAsiDiaEvent(this), INT_BEF_EDI_CEL);\n// objTblCelEdiTxtVcoCta.setCancelarEdicion(true);\n// }\n// else if(strEstCncDia.equals(\"B\")){\n// mostrarMsgInf(\"<HTML>No se puede cambiar el valor de la cuenta<BR>Este valor proviene de la transferencia ingresada.</HTML>\");\n// objTblCelEdiTxtVcoCta.setCancelarEdicion(true);\n// }\n// else{\n// //Permitir de manera predeterminada la operaci�n.\n// blnCanOpe=false;\n// //Generar evento \"beforeEditarCelda()\".\n// fireAsiDiaListener(new ZafAsiDiaEvent(this), INT_BEF_EDI_CEL);\n// //Permitir/Cancelar la edici�n de acuerdo a \"cancelarOperacion\".\n// if (blnCanOpe)\n// {\n// objTblCelEdiTxtVcoCta.setCancelarEdicion(true);\n// }\n// }\n }", "public static void editButtonAction(ActionContext actionContext){\n Table dataTable = actionContext.getObject(\"dataTable\");\n Shell shell = actionContext.getObject(\"shell\");\n Thing store = actionContext.getObject(\"store\");\n \n TableItem[] items = dataTable.getSelection();\n if(items == null || items.length == 0){\n MessageBox box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n box.setText(\"警告\");\n box.setMessage(\"请先选择一条记录!\");\n box.open();\n return;\n }\n \n store.doAction(\"openEditForm\", actionContext, \"record\", items[0].getData());\n }", "@Override\r\n\t\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\tboolean failed = false;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString name = desField.getText();\r\n\t\t\t\t\tint prio = Integer.parseInt(prioField.getText());\r\n\t\t\t\t\tint day = Integer.parseInt(dayField.getText());\r\n\t\t\t\t\tint month = Integer.parseInt(monthField.getText());\r\n\t\t\t\t\tchar status = statField.getText().charAt(0);\r\n\t\t\t\t\tstatus = Character.toUpperCase(status);\r\n\t\t\t\t}\r\n\t\t\t\tcatch(NumberFormatException c){\r\n\t\t\t\t\tfailed = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(failed == true) {//check if number is a number\r\n\t\t\t\t\tfireDetailEvent(new DetailEvent(this, 'E'));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString name = desField.getText();\r\n\t\t\t\t\tint prio = Integer.parseInt(prioField.getText());\r\n\t\t\t\t\tint day = Integer.parseInt(dayField.getText());\r\n\t\t\t\t\tint month = Integer.parseInt(monthField.getText());\r\n\t\t\t\t\tchar status = statField.getText().charAt(0);\r\n\t\t\t\t\tstatus = Character.toUpperCase(status);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif( 1 > day || 31 < day || 1 > month || 12 < month || (status != 'W' && status != 'C' && status != 'N')) {\r\n\t\t\t\t\t\tfireDetailEvent(new DetailEvent(this, 'E'));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tfireDetailEvent(new DetailEvent(this, name, prio, month, day, status, 'I'));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdesField.setText(\"\");\r\n\t\t\t\tprioField.setText(\"\");\r\n\t\t\t\tdayField.setText(\"\");\r\n\t\t\t\tmonthField.setText(\"\");\r\n\t\t\t\tstatField.setText(\"\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t}", "@SuppressWarnings({ \"unused\" })\r\n\tprivate void wrongType(final @NonNull PInputEvent e, final String eventType) {\n\t}", "protected void editField(HttpServletRequest request, HttpServletResponse response, ContentFeedRel _ContentFeedRel) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"contentFeedId\"))) {\r\n m_logger.debug(\"updating param contentFeedId from \" +_ContentFeedRel.getContentFeedId() + \"->\" + request.getParameter(\"contentFeedId\"));\r\n _ContentFeedRel.setContentFeedId(WebParamUtil.getLongValue(request.getParameter(\"contentFeedId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"contentId\"))) {\r\n m_logger.debug(\"updating param contentId from \" +_ContentFeedRel.getContentId() + \"->\" + request.getParameter(\"contentId\"));\r\n _ContentFeedRel.setContentId(WebParamUtil.getLongValue(request.getParameter(\"contentId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"timeCreated\"))) {\r\n m_logger.debug(\"updating param timeCreated from \" +_ContentFeedRel.getTimeCreated() + \"->\" + request.getParameter(\"timeCreated\"));\r\n _ContentFeedRel.setTimeCreated(WebParamUtil.getDateValue(request.getParameter(\"timeCreated\")));\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _ContentFeedRel);\r\n m_ds.update(_ContentFeedRel);\r\n m_actionExtent.afterUpdate(request, response, _ContentFeedRel);\r\n }", "@Override\r\n\t\t\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tboolean failed = false;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString name = desField.getText();\r\n\t\t\t\t\tint prio = Integer.parseInt(prioField.getText());\r\n\t\t\t\t\tint day = Integer.parseInt(dayField.getText());\r\n\t\t\t\t\tint month = Integer.parseInt(monthField.getText());\r\n\t\t\t\t\tchar status = statField.getText().charAt(0);\r\n\t\t\t\t\tstatus = Character.toUpperCase(status);\r\n\t\t\t\t}\r\n\t\t\t\tcatch(NumberFormatException c){\r\n\t\t\t\t\tfailed = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(failed == true) {//check if number is a number\r\n\t\t\t\t\tfireDetailEvent(new DetailEvent(this, 'E'));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString name = desField.getText();\r\n\t\t\t\t\tint prio = Integer.parseInt(prioField.getText());\r\n\t\t\t\t\tint day = Integer.parseInt(dayField.getText());\r\n\t\t\t\t\tint month = Integer.parseInt(monthField.getText());\r\n\t\t\t\t\tchar status = statField.getText().charAt(0);\r\n\t\t\t\t\tstatus = Character.toUpperCase(status);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif( 1 > day || 31 < day || 1 > month || 12 < month || (status != 'W' && status != 'C' && status != 'N')) {\r\n\t\t\t\t\t\tfireDetailEvent(new DetailEvent(this, 'E'));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tfireDetailEvent(new DetailEvent(this, name, prio, month, day, status, 'D'));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdesField.setText(\"\");\r\n\t\t\t\tprioField.setText(\"\");\r\n\t\t\t\tdayField.setText(\"\");\r\n\t\t\t\tmonthField.setText(\"\");\r\n\t\t\t\tstatField.setText(\"\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void validateModelSpecificInfo() throws InvalidDataTypeException {\n\t\t// Does each unwind map entry refer to a valid action?\n\t\tProgram program = getProgram();\n\t\tint numEntries = getCount();\n\t\tfor (int unwindBlockOrdinal = 0; unwindBlockOrdinal < numEntries; unwindBlockOrdinal++) {\n\t\t\tAddress actionAddress = getActionAddress(unwindBlockOrdinal);\n\t\t\tif ((actionAddress != null) &&\n\t\t\t\t!EHDataTypeUtilities.isValidForFunction(program, actionAddress)) {\n\t\t\t\tthrow new InvalidDataTypeException(getName() + \" data type at \" + getAddress() +\n\t\t\t\t\t\" doesn't refer to a valid location for an action.\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void modifyText(ModifyEvent me) {\n\t\t\t\tString newValue = newEditor.getText();\r\n\t\t\t\teditor.getItem().setText(VALUE_COLUMN_NO, newValue);\r\n\t\t\t\t//isEditorModify = true;\r\n\t\t\t\t//propertyInfo.setValue(newValue);\r\n\t\t\t}", "private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }", "protected void handleUpdateException(Exception e) throws NbaBaseException {\n setWork(getOrigWorkItem());\n addComment(\"An error occurred while committing workflow changes \" + e.getMessage());\n changeStatus(getAwdErrorStatus());\n try {\n doUpdateWorkItem();\n } catch (NbaBaseException e1) {\n e1.forceFatalExceptionType();\n throw e1;\n }\n setResult(new NbaAutomatedProcessResult(NbaAutomatedProcessResult.FAILED, getAwdErrorStatus(), getAwdErrorStatus()));\n }", "@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }", "public void setDocAction (String DocAction)\n{\nif (DocAction.equals(\"AP\") || DocAction.equals(\"CL\") || DocAction.equals(\"PR\") || DocAction.equals(\"IN\") || DocAction.equals(\"CO\") || DocAction.equals(\"--\") || DocAction.equals(\"RC\") || DocAction.equals(\"RJ\") || DocAction.equals(\"RA\") || DocAction.equals(\"WC\") || DocAction.equals(\"XL\") || DocAction.equals(\"RE\") || DocAction.equals(\"PO\") || DocAction.equals(\"VO\"));\n else throw new IllegalArgumentException (\"DocAction Invalid value - Reference = DOCACTION_AD_Reference_ID - AP - CL - PR - IN - CO - -- - RC - RJ - RA - WC - XL - RE - PO - VO\");\nif (DocAction == null) throw new IllegalArgumentException (\"DocAction is mandatory\");\nif (DocAction.length() > 2)\n{\nlog.warning(\"Length > 2 - truncated\");\nDocAction = DocAction.substring(0,2);\n}\nset_Value (\"DocAction\", DocAction);\n}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\tString[] arr= new String[colName.length];\n\t\t\t\t\tfor(int i =0 ; i<colName.length; i++){\n\t\t\t\t\t\tarr[i] =tfInsert[i].getText();\n\t\t\t\t\t}\n\n\t\t\t\t\tboolean insertOrDelete = false; \n\t\t\t\t\tboolean full = checkInput(arr);\n\t\t\t\t\tboolean right = isRightType(arr);\n\t\t\t\t\t\n\t\t\t\t\tif(full && right){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif(whichAction.getText().equals(\"Insert\")){\n\t\t\t\t\t\t\t\tinsertOrDelete= db.insertData(arr);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tinsertOrDelete = db.deleteData(arr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tAlertBox noInsertDelete = new AlertBox();\n\t\t\t\t\t\t\tnoInsertDelete.display(whichAction.getText() + \" Fail\", \"Unable to \" +whichAction.getText() +\". Please try again.\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(!full){\n\t\t\t\t\t\t\tAlertBox noInsertDelete = new AlertBox();\n\t\t\t\t\t\t\tnoInsertDelete.display(\"Not enough data\", \"Unable to \" +whichAction.getText() +\". All inputs are required.\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tAlertBox notRight= new AlertBox();\n\t\t\t\t\t\t\tnotRight.display(\"Incorrect Data\", \"Unable to \" +whichAction.getText() +\".One of your inputs is not a valid type\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(insertOrDelete){\n\t\t\t\t\t\tAlertBox done = new AlertBox();\n\t\t\t\t\t\tdone.display(whichAction.getText() + \" Successful.\",\n\t\t\t\t\t\t\t\twhichAction.getText()+\" completed.\");\n\t\t\t\t\t}else;\n\n\t\t\t\t}", "private void performDirectEdit() {\n\t}", "@FXML\n void edit_button1(ActionEvent event) {\n\n String visitType = returnVisitType();\n String attended = returnAttended();\n String attendType = returnAttendType();\n\n Queries q = table_view_in_edit.getSelectionModel().getSelectedItem();\n\n // check for required fields\n if (reserveDate_picker_In_edit.getValue() == null || reserveTime_picker_In_edit.getValue() == null\n || attendDate_picker_In_edit.getValue() == null || attendTime_picker_In_edit.getValue() == null || visitType.isEmpty()){\n\n error1.setVisible(true);\n\n }else {\n\n // confirmation message\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"تأكيد\");\n alert.setHeaderText(\"تاكيد التعديل\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n\n try {\n\n //TODO needs to be handled in the server\n messageToServer = \"edit1ES;\" + reserveDate_picker_In_edit.getValue().toString() + \",\"\n + reserveTime_picker_In_edit.getValue().toString() + \",\"\n + attendDate_picker_In_edit.getValue().toString() + \",\"\n + attendTime_picker_In_edit.getValue().toString() + \",\"\n + visitType + \",\"\n + attended + \",\"\n + attendType + \",\"\n + q.getId() + \"\";\n n.output(messageToServer);\n\n // original code\n// ps = con.prepareStatement(\"update visitInfo set reserve_date = ?,\" +\n// \" reserve_time= ?,\" +\n// \" attend_date = ?,\" +\n// \" attend_time = ?,\" +\n// \" visit_type = ?,\" +\n// \" attend = ?,\" +\n// \" attend_type = ?\" +\n// \" where id = ? \");\n// ps.setString(1, reserveDate_picker_In_edit.getValue().toString());\n// ps.setString(2, reserveTime_picker_In_edit.getValue().toString());\n// ps.setString(3, attendDate_picker_In_edit.getValue().toString());\n// ps.setString(4, attendTime_picker_In_edit.getValue().toString());\n// ps.setString(5, visitType);\n// ps.setString(6, attended);\n// ps.setString(7, attendType);\n// ps.setString(8, q.getId());\n//\n// ps.executeUpdate();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n alert.close();\n }\n\n error1.setVisible(false);\n clearfields1();\n\n }\n\n }", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to edit data\";\n if (flag){\n message = \"Success to edit data\";\n }\n JOptionPane.showMessageDialog(this, message, \"Notification\", JOptionPane.INFORMATION_MESSAGE);\n bindingTable();\n reset();\n }", "public void handleEditAll(ActionEvent actionEvent) throws Exception {\n\t\tString id = txtDisID.getText();\n\t\tItem preSelected = selectedItem;\n\n\t\tif(!id.isEmpty() && id != null){\n\t\t\tStage newItemWindow = new Stage();\n\t\t\tnewItemWindow.setTitle(\"Edit Item\");\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/views/editItem.fxml\"));\n\t\t\tnewItemWindow.setScene(new Scene(loader.load()));\n\t\t\tnewItemWindow.initModality(Modality.APPLICATION_MODAL);\n//\t\t\tnewItemWindow.getIcons().add(new Image(MainWindowController.class.getResourceAsStream(\"../IMS icon.png\")));\n\t\t\tnewItemWindow.setResizable(false);\n\n\t\t\tEditItemController controller = loader.<EditItemController>getController();\n\t\t\tcontroller.setItemId(id);\n\n\t\t\tnewItemWindow.showAndWait();\n\t\t\trefreshTable();\n\t\t} else {\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"There is no item to Edit\");\n\t\t\talert.setContentText(\"Please select the item before edit !\");\n\n\t\t\talert.showAndWait();\n\t\t}\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if(isTableValid() && isTextFieldValid()) {\n window.changeToOutputPanel();\n }\n }", "@Override\n\t\t\t\tpublic String isValid(Object value) {\n\t\t\t\t\treturn \"Editing not allowed!\";\n\t\t\t\t}", "private void validator() throws Exception {\n if (getDBTable() == null) throw new Exception(\"getDBTable missing\");\n if (getColumnsString() == null) throw new Exception(\"getColumnsString missing\");\n if (getColumnsType() == null || getColumnsType().size() <= 0) throw new Exception(\"getColumnsType missing\");\n if (getDuplicateUpdateColumnString() == null) {\n if (getColumnsString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n\n } else {\n if (getColumnsString().split(\",\").length +\n getDuplicateUpdateColumnString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n }\n }", "@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }", "@Override\n public void inputTypeChange(ModelInputTypes m) {\n \n }", "@Override\r\n\tpublic void validateEntity(TableEntity entity, EntityEvent event) throws InvalidModelException, NotFoundException,\r\n\t\t\tDatastoreException, UnauthorizedException {\n\t\tif(EventType.CREATE == event.getType() || EventType.UPDATE == event.getType() || EventType.NEW_VERSION == event.getType()){\r\n\t\t\tboolean isNew = false;\r\n\t\t\tif(EventType.CREATE == event.getType()){\r\n\t\t\t\tisNew = true;\r\n\t\t\t}\r\n\t\t\tList<String> columnIds = entity.getColumnIds();\r\n\t\t\t// Bind the entity to these columns\r\n\t\t\tcolumnModelManager.bindColumnToObject(event.getUserInfo(), columnIds, entity.getId(), isNew);\r\n\t\t}\t\r\n\t}", "public void onRowEdit(RowEditEvent event) {\n dbConn.logUIMsg(RLogger.MSG_TYPE_INFO, RLogger.LOGGING_LEVEL_DEBUG, \"TableManagerBean.class :: onRowEdit() :: \" + ((ColList) event.getObject()).toString());\n\n // FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public void modify() {\n }", "public void changeFields() throws Exception {\n jTextField1.setText(String.valueOf(article.getItemCode()));\n jTextField2.setText(article.getName());\n jTextField3.setText(String.valueOf(article.getBrandCode()));\n jTextField4.setText(String.valueOf(article.getSalePrice()));\n jTextField5.setText(String.valueOf(article.getCostPrice()));\n jTextField6.setText(String.valueOf(article.getStock()));\n jTextField7.setText(article.getObservation());\n jTextField8.setText(String.valueOf(article.getHeadingCode()));\n \n }", "BaseRecord editRecord(String id, String fieldName, String newValue, String clientId) throws Exception;", "private void EnterChange() {\r\n\r\n //try block to check if the customer enters an except integer for the Time field\r\n try{\r\n // create a reservation\r\n Reservation p1 = new Reservation(textName.getText(), Integer.parseInt(textTime.getText()));\r\n // TODO: add obj to arraylist\r\n _ReservationList.saveData(p1);\r\n\r\n }\r\n catch (Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Please type an Integer only. For Example, to book for 7:00 p.m, type just 7.\");\r\n alert.showAndWait();\r\n return;\r\n }\r\n }", "boolean editEntry(String id, String val, String colName) throws Exception;", "@Override\n public void insertUpdate(DocumentEvent e) {\n verifierSaisie();\n }", "private void gridMain_CellLeave(Object sender, OpenDental.UI.ODGridClickEventArgs e) throws Exception {\n long codeNum = PIn.Long(ProcTable.Rows[e.getRow()][\"CodeNum\"].ToString());\n long feesched = FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum;\n Fee fee = Fees.getFee(codeNum,feesched);\n String strOld = \"\";\n if (fee != null)\n {\n strOld = fee.Amount.ToString(\"n\");\n }\n \n String strNew = gridMain.getRows().get___idx(e.getRow()).getCells()[e.getCol()].Text;\n if (StringSupport.equals(strOld, strNew))\n {\n return ;\n }\n \n if (!Security.isAuthorized(Permissions.Setup))\n {\n //includes dialog\n gridMain.getRows().get___idx(e.getRow()).getCells()[e.getCol()].Text = strOld;\n gridMain.Invalidate();\n return ;\n }\n \n double dNew = -1;\n if (!StringSupport.equals(strNew, \"\"))\n {\n try\n {\n dNew = PIn.Double(strNew);\n }\n catch (Exception __dummyCatchVar2)\n {\n gridMain.setSelected(new Point(e.getCol(), e.getRow()));\n MessageBox.Show(Lan.g(this,\"Please fix data entry error first.\"));\n return ;\n }\n\n gridMain.getRows().get___idx(e.getRow()).getCells()[e.getCol()].Text = dNew.ToString(\"n\");\n }\n \n //to standardize formatting. They probably didn't type .00\n //invalidate doesn't seem to be necessary here\n if (StringSupport.equals(strOld, \"\"))\n {\n //if no fee was originally entered and since it's no longer empty, then we need to insert a fee.\n //Somehow duplicate fees were being inserted so double check that this fee does not already exist.\n Fee tmpFee = Fees.getFee(codeNum,feesched);\n //Looks in cache.\n if (tmpFee != null)\n {\n return ;\n }\n \n //Fee exists. Must be unknown bug.\n fee = new Fee();\n fee.FeeSched = feesched;\n fee.CodeNum = codeNum;\n fee.Amount = dNew;\n Fees.insert(fee);\n Fees.getListt().Add(fee);\n }\n else\n {\n //if fee existed\n if (StringSupport.equals(strNew, \"\"))\n {\n //delete old fee\n Fees.delete(fee);\n Fees.getListt().Remove(fee);\n }\n else\n {\n //change fee\n fee.Amount = dNew;\n Fees.update(fee);\n Fees.getListt()[Fees.getListt().IndexOf(fee)].Amount = dNew;\n } \n } \n SecurityLogs.MakeLogEntry(Permissions.ProcFeeEdit, 0, Lan.g(this,\"Procedure\") + \": \" + ProcedureCodes.getStringProcCode(fee.CodeNum) + \", \" + Lan.g(this,\"Fee: \") + \"\" + fee.Amount.ToString(\"c\") + \", \" + Lan.g(this,\"Fee Schedule\") + \": \" + FeeScheds.getDescription(fee.FeeSched) + \". \" + Lan.g(this,\"Manual edit in grid from Procedure Codes list.\"), fee.CodeNum);\n }", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem1 = tf[0].getText();\n\t\t\t\titem2 = tf[4].getText();\n\t\t\t\tif (!item1.equals(\"\")) {\n\t\t\t\t\tsql = transaction.T3(inx1,item1);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t\telse if(!item2.equals(\"\")){\n\t\t\t\t\tsql = transaction.T4(inx3,item2);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,1);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\t\t\t\tpublic void onCheckUpdateFail(ErrorInfoBean errorInfo) {\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"errInfo:\" + errorInfo.toString());\r\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"init_fail\");\r\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tbe.setNom(textFieldMarque.getText());\r\n\t\t\t\t\t\tbe.setPrenom(textFieldModele.getText());\r\n\t\t\t\t\t\tbe.setAge(Integer.valueOf(textFieldAge.getText()));\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tbs.update(be);\r\n\t\t\t\t\t\t} catch (DaoException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t}", "private void updateRecord() {\r\n int empId = -1;\r\n boolean hasError = false;\r\n try {\r\n empId = Integer.parseInt(employeeYearsOfWorkJTextField.getText());\r\n } catch (NumberFormatException e) {\r\n hasError = true;\r\n JOptionPane.showMessageDialog(this, \"Employee id must be integer\");\r\n }\r\n String telephone = employeeNumberJTextField.getText();\r\n String name = employeeNameJTextField.getText();\r\n int years = -1;\r\n try {\r\n years = Integer.parseInt(employeeYearsOfWorkJTextField.getText());\r\n } catch (NumberFormatException e) {\r\n hasError = true;\r\n JOptionPane.showMessageDialog(this, \"Years of works must be an integer\");\r\n }\r\n if (!hasError) {\r\n records.add(new Record(empId, telephone, name, years));\r\n }\r\n }", "@Override\n\tpublic int admin_modify(BoardVO obj) {\n\t\treturn 0;\n\t}", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@Override\n\tpublic void update(finalDataBean t, String[] fields) throws Exception {\n\t\t\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void editButtonClicked(){\n String first = this.firstNameInputField.getText();\n String last = this.lastNameInputField.getText();\n String email = this.emailInputField.getText();\n String dep = \"\";\n String role=\"\";\n if(this.departmentDropdown.getSelectionModel().getSelectedItem() == null){\n dep= this.departmentDropdown.promptTextProperty().get();\n //this means that the user did not change the dropdown\n \n }else{\n dep = this.departmentDropdown.getSelectionModel().getSelectedItem();\n }\n \n if(this.roleDropdown.getSelectionModel().getSelectedItem()== null){\n role = this.roleDropdown.promptTextProperty().get();\n }else{\n role = this.roleDropdown.getSelectionModel().getSelectedItem();\n }\n \n if(this.isDefaultValue(first) && \n this.isDefaultValue(last) && \n this.isDefaultValue(email) && \n this.isDefaultValue(role) && \n this.isDefaultValue(dep)){\n //this is where we alert the user that no need for update is needed\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setContentText(\"User information has not changed...no update performed\");\n alert.showAndWait();\n \n }else{\n \n if(this.userNameLabel.getText().equals(\"User\")){\n System.out.println(\"This is empty\");\n }else{\n //create a new instance of the connection class\n this.dbConnection = new Connectivity();\n //this is where we do database operations\n if(this.dbConnection.ConnectDB()){\n //we connected to the database \n \n boolean update= this.dbConnection.updateUser(first, last, email, dep,role , this.userNameLabel.getText());\n \n \n }else{\n System.out.println(\"Could not connect to the database\");\n }\n \n }\n }\n }", "@Override\n protected void onConvertTransfer(Contrato values, DataSetEvent e) throws SQLException, UnsupportedOperationException\n {\n if (e.getDML() == insertProcedure)\n {\n e.setString(1, values.getNombre(), 45); //\"vnombre\"\n e.setBytes(2, values.getContenido());//\"vcontenido\"\n e.setString(3, values.getFormato(), 45);//\"vformato\"\n e.setInt(4, values.getLongitud());//\"vlongitud\"\n }\n }", "void validateActivoUpdate(Activo activo);", "@Override\n\t\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n //Modified for COEUSDEV-413 : Subcontract Custom data bug - Data getting wiped out - Start\r\n// if( isDataChanged() ){\r\n\t\tif( isDataChanged() || getFunctionType() == NEW_ENTRY_SUBCONTRACT || getFunctionType() == NEW_SUBCONTRACT) { //COEUSDEV-413 : End\r\n Vector genericColumnValues = customElementsForm.getOtherColumnElementData();\r\n\t\t\tif( genericColumnValues != null && genericColumnValues.size() > 0 ){\r\n\t\t\t\tCustomElementsInfoBean genericCustElementsBean = null;\r\n\t\t\t\tint dataSize = genericColumnValues.size();\r\n\t\t\t\tfor( int indx = 0; indx < dataSize; indx++ ) {\r\n\t\t\t\t\tgenericCustElementsBean = (CustomElementsInfoBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tSubContractCustomDataBean subContractCustomDataBean\r\n\t\t\t\t\t= new SubContractCustomDataBean(genericCustElementsBean);\r\n SubContractCustomDataBean oldSubContractCustomDataBean = (SubContractCustomDataBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tif(getFunctionType() == NEW_ENTRY_SUBCONTRACT) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setAcType(\"I\");\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif( INSERT_RECORD.equals(subContractCustomDataBean.getAcType()) ) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif( genericCustElementsBean instanceof SubContractCustomDataBean ) {\r\n//\t\t\t\t\t\t\tSubContractCustomDataBean oldSubContractCustomDataBean =\r\n//\t\t\t\t\t\t\t(SubContractCustomDataBean)genericCustElementsBean;\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setAcType(genericCustElementsBean.getAcType());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(oldSubContractCustomDataBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(oldSubContractCustomDataBean.getSequenceNumber());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\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\ttry {\r\n\t\t\t\t\t\tString custAcType = subContractCustomDataBean.getAcType();\r\n\t\t\t\t\t\tif( UPDATE_RECORD.equals(custAcType) ){\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.update(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}else if( INSERT_RECORD.equals(custAcType)){\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.insert(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}catch ( CoeusException ce ) {\r\n\t\t\t\t\t\tce.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcustomElementsForm.setSaveRequired(false);\r\n\t\t}\r\n\t}", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TablaAmortiDetalleConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "private void modifyExec(){\r\n\t\ttry {\r\n\t\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\t\tif(selectedDatas.size()!=1){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please select 1 item to Modify\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tMap<String,String>selectedMap=NameConverter.convertViewMap2PhysicMap(selectedDatas.get(0), \"Discount\");\r\n\t\t\tDiscountBean selectedDiscountBean=new DiscountBean();\r\n\t\t\tBeanUtil.transMap2Bean(selectedMap, selectedDiscountBean);\r\n\t\t\tViewManager.goToSubFunctionScreen(new AddDiscountPanel(selectedDiscountBean,AddDiscountPanel.MODIFY_DISCOUNT));\r\n\t\t} catch (ServiceNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n protected void onConvertTransfer(Persona_tiene_Existencia values, DataSetEvent e) throws SQLException, UnsupportedOperationException\n {\n if (e.getDML() == insertProcedure)\n {\n e.setInt(1, values.getIdPersona());//\"vid_persona\"\n e.setInt(2, values.getEntrada());//\"ventrada\"\n e.setInt(3, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(4, values.getExistencia());//\"vexistencia\"\n }\n\n else if (e.getDML() == updateProcedure)\n {\n e.setInt(1, values.getLinea_Viejo());//\"vlinea_old\"\n e.setInt(2, values.getIdPersona_Viejo());//\"vid_persona_old\"\n e.setInt(3, values.getIdPersona());//\"vid_persona_new\"\n e.setInt(4, values.getEntrada());//\"ventrada\"\n e.setInt(5, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(6, values.getExistencia());//\"vexistencia\"\n }\n }", "public void setC_POSDocType_ID (int C_POSDocType_ID)\n{\nif (C_POSDocType_ID < 1) throw new IllegalArgumentException (\"C_POSDocType_ID is mandatory.\");\nset_ValueNoCheck (COLUMNNAME_C_POSDocType_ID, Integer.valueOf(C_POSDocType_ID));\n}", "@Override\n protected void executeUpdate(final String requestId, DSRequest request, final DSResponse response)\n {\n JavaScriptObject data = request.getData();\n final ListGridRecord rec = new ListGridRecord(data);\n ContactDTO testRec = new ContactDTO();\n copyValues(rec, testRec);\n service.update(testRec, new AsyncCallback<Void>()\n {\n @Override\n public void onFailure(Throwable caught)\n {\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have NOT been saved!\");\n }\n\n @Override\n public void onSuccess(Void result)\n {\n ListGridRecord[] list = new ListGridRecord[1];\n // We do not receive removed record from server.\n // Return record from request.\n list[0] = rec;\n response.setData(list);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have been saved!\");\n }\n });\n }", "private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n \n }", "public abstract void checkEditing();", "@Override\n\tpublic void editingStopped(ChangeEvent arg0) {\n\n\t}", "private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }", "private void Edit_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Edit_btnActionPerformed\n\n try {\n\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Edit!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n // isIncome --> true if radio selected\n boolean isIncome = income_Rad.isSelected();\n\n // dueDate --> converted from: Date => String value\n Date dateDue = dueDate_date.getDate();\n String dueDate = DateFormat.getDateInstance().format(dateDue);\n\n // title --> String var\n String title = ToFrom_Txt.getText();\n\n // amount --> cast to Double; round to 2 places\n double amountRaw = Double.parseDouble(Amount_Txt.getText());\n String rounded = String.format(\"%.2f\", amountRaw);\n double amount = Double.parseDouble(rounded);\n\n // amount converted to negative value in isIncome is false\n if (!isIncome == true) {\n amount = (abs(amount) * (-1));\n } else {\n amount = abs(amount);\n }\n\n // category --> cast to String value of of box selected\n String category = (String) category_comb.getSelectedItem();\n\n // freuency --> cast to String value of of box selected\n String frequency = (String) frequency_comb.getSelectedItem();\n\n // dateEnd --> converted from: Date => String value\n Date dateEnd = endBy_date.getDate();\n String endBy = DateFormat.getDateInstance().format(dateEnd);\n\n // Update table with form data\n model.setValueAt(isIncome, remindersTable.getSelectedRow(), 0);\n model.setValueAt(dueDate, remindersTable.getSelectedRow(), 1);\n model.setValueAt(title, remindersTable.getSelectedRow(), 2);\n model.setValueAt(amount, remindersTable.getSelectedRow(), 3);\n model.setValueAt(category, remindersTable.getSelectedRow(), 4);\n model.setValueAt(frequency, remindersTable.getSelectedRow(), 5);\n model.setValueAt(endBy, remindersTable.getSelectedRow(), 6);\n\n dm.messageReminderEdited();// user message\n clearReminderForm();// clear the form\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n\n } else {\n // edit canceled\n }\n }\n } catch (NullPointerException e) {\n dm.messageFieldsIncomplete();\n\n } catch (NumberFormatException e) {\n dm.messageNumberFormat();\n }\n }", "private void applyChanges() {\n mProgressBar.setVisibility(View.VISIBLE);\n\n String name = mNameBox.getText().toString().trim();\n String priceStr = mPriceBox.getText().toString().trim();\n\n if (!name.isEmpty() /* && !priceStr.isEmpty() */) {\n float price = Float.parseFloat(priceStr);\n ReformType reformType = new ReformType();\n reformType.setId(mReformTypeId);\n reformType.setName(name);\n reformType.setPrice(price);\n\n mReformTypeRepo.patchReformType(reformType).observe(this, isPatched -> {\n if (isPatched) {\n mReformType.setName(name);\n mReformType.setPrice(price);\n mReformTypeRepo.insertLocalReformType(mReformType);\n Toast.makeText(this, \"Reform type successfully updated.\", Toast.LENGTH_SHORT).show();\n } else {\n mIsError = true;\n mIsEditMode = !mIsEditMode;\n toggleSave();\n mNameBox.setText(mReformType.getName());\n mPriceBox.setText(String.valueOf(mReformType.getPrice()));\n }\n });\n }\n\n mProgressBar.setVisibility(GONE);\n }", "@FXML void editbtnpushed(ActionEvent event5) {\t\n\tLabel Orig[] = { TitleLabel, PositionLabel, RetributionLabel, DegreeLabel, BonusLabel, ContractTypeLabel, ContractTimeLabel, SectorLabel, RegionLabel, RetxTLabel, ExpLabel };\n\tint i = 0, k = -1;\n\tTextField TxtEd[] = { EditTitleField, EditPositionField, EditRetribution, EditDegreeField, EditBonusField };\n\tChoiceBox ChbEd[] = { EditTypeContBox, EditTimeContBox, EditSectorBOx, EditRegionBox, EditRetxTField, EditExpbox };\n\tString preset[] = { \"Modifica Tipo Contratto\", \"Modifica Tempo Contratto\", \"Modifica Settore\", \"Modifica Regione\", \n\t\t\t\"Modifica Tempo Retribuzione\", \"Modifica Esperienza\" };\n\tString s1[] = new String [12];\t\n\tfor ( i = 0; i < 11; i++ ) {\n\tif ( i < 5 ) { \n\t\tif (!TxtEd[i].getText().isEmpty()) {\n\t\ts1[i] = TxtEd[i].getText().toString(); }\n\telse { s1[i] = Orig[i].getText().toString(); }\n\t} \n\tif ( i > 4 ) { \n\t\t++k;\n\t\t if ( !ChbEd[k].getValue().toString().contentEquals(preset[k])) {\n\t\t\ts1[i] = ChbEd[k].getValue().toString(); }\n\t\telse { s1[i] = Orig[i].getText().toString(); } \n\t\t}\n\t} s1[11] = EditWorkInfoArea.getText().toString(); \n\t\tk = -1;\n\tfor ( i = 0; i < 11; i++ ) {\n\t\tif ( i < 5 ) { TxtEd[i].setText(s1[i]); } \n\t\tif ( i > 4 ) { \n\t\t\t++k;\n\t\t\tChbEd[k].setValue(s1[i]); }\n\t} \t\n\ttry {\n\t\tint n = 0, j = 0, p = 1, q = 2, email = 3, r = 4, s = 5, t = 6, u = 7, w = 8, v = 9, x = 10, y = 11, z = 12; i = 0; k = 0; \n\t BufferedReader reader = new BufferedReader(new FileReader(FileCerqoLavoroBusinessFactoryImpl.OFFERS_FILE_NAME));\n\t int lines = 0;\n\t while (reader.readLine() != null) {\n\t lines++; }\n\t reader.close(); int cont = lines / 13;\n\t File f = new File(FileCerqoLavoroBusinessFactoryImpl.OFFERS_FILE_NAME);\n \t StringBuilder sb = new StringBuilder();\n \t try (Scanner sc = new Scanner(f)) {\n \t String currentLine;\n \t boolean trovato = false;\n \t while ( sc.hasNext() && n < (lines) ) {\n \t currentLine = sc.nextLine();\n \t if ( n == j ) { sb.append(EditRegionBox.getValue().toString()+\"\\n\"); }\n\t if ( n == p ) { sb.append(EditSectorBOx.getValue().toString()+\"\\n\"); }\n\t if ( n == q ) { sb.append(EditTitleField.getText().toString()+\"\\n\"); }\n \t if ( n == r ) { sb.append(EditPositionField.getText().toString()+\"\\n\"); }\n \t if ( n == s ) { sb.append(EditTypeContBox.getValue().toString()+\"\\n\"); }\n \t if ( n == t ) { sb.append(EditTimeContBox.getValue().toString()+\"\\n\"); }\n \t if ( n == u ) { sb.append(EditRetribution.getText().toString()+\"\\n\"); }\n \t if ( n == v ) { sb.append(EditExpbox.getValue().toString()+\"\\n\"); }\n \t if ( n == w ) { sb.append(EditRetxTField.getValue().toString()+\"\\n\"); }\n \t if ( n == x ) { sb.append(EditBonusField.getText().toString()+\"\\n\"); }\n \t if ( n == y ) { sb.append(EditDegreeField.getText().toString()+\"\\n\"); }\n \t if ( n == z ) { sb.append(EditWorkInfoArea.getText().toString()+\"\\n\"); }\n \t if ( n != j && n != p && n != q && n != r && n != s && n != t && n != u && n != v && n != w && n != x && n != y && n != z ) {\n \t \tif ( n == (lines-1) ) { sb.append(currentLine); }\n\t \telse { sb.append(currentLine).append(\"\\n\"); }\n \t } n++; \n \t }\n \t }\n \t PrintWriter pw = new PrintWriter(f); pw.close();\n \t BufferedWriter writer = new BufferedWriter(new FileWriter(f, true));\n \t writer.append(sb.toString()); writer.close(); \t \n \t\tif ( !EditTitleField.getText().isEmpty() ) { TitleLabel.setText(EditTitleField.getText()); } \t\t\n \t\tif ( !EditPositionField.getText().isEmpty() ) { PositionLabel.setText(EditPositionField.getText()); } \t\t\n \t\tif ( !EditTypeContBox.getValue().contentEquals(\"Modifica Tipo Contratto\") ) { ContractTypeLabel.setText(EditTypeContBox.getValue()); } \t\t\n \t\tif ( !EditTimeContBox.getValue().contentEquals(\"Modifica Tempo Contratto\") ) { ContractTimeLabel.setText(EditTimeContBox.getValue()); } \t\t\n \t\tif ( !EditRetribution.getText().isEmpty()) { RetributionLabel.setText(EditRetribution.getText() ); } \t\t\n \t\tif ( !EditSectorBOx.getValue().contentEquals(\"Modifica Settore\") ) { SectorLabel.setText(EditSectorBOx.getValue()); } \t\t\n \t\tif ( !EditRegionBox.getValue().contentEquals(\"Modifica Regione\") ) { RegionLabel.setText(EditRegionBox.getValue()); } \t\t\n \t\tif ( !EditRetxTField.getValue().contentEquals(\"Modifica Tempo Retribuzione\") ) { RetxTLabel.setText(EditRetxTField.getValue()); } \t\t\n \t\tif ( !EditBonusField.getText().isEmpty() ) { BonusLabel.setText(EditBonusField.getText()); } \t\t\n \t\tif ( !EditDegreeField.getText().isEmpty() ) { DegreeLabel.setText(EditDegreeField.getText()); }\t\t \n Alert offmodAlert = new Alert(AlertType.CONFIRMATION);\n offmodAlert.setHeaderText(\"Operazione completata\");\n offmodAlert.setContentText(\"Hai modificato questa offerta\");\n offmodAlert.showAndWait(); \n\t} catch (Exception e) {\n\t e.printStackTrace();\n Alert ripmodAlert = new Alert(AlertType.ERROR);\n ripmodAlert.setHeaderText(\"Attenzione\");\n ripmodAlert.setContentText(\"Si è verificato un errore\");\n ripmodAlert.showAndWait();\n\t} \n}", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {\n edit();\n clear();\n readData();\n clearControl();\n\n }", "public void editOrder() throws FlooringDaoException {\n boolean validData = true;\n do {\n try {\n boolean validDateOrderNumber = true;\n do {\n try {\n String date = view.getOrdersDate();\n int orderNumber = view.getOrderNumber();\n Order originalOrder = service.getOrderToEdit(date, orderNumber);//validation happens here for edit method which is why i don't need it in the service edit method?\n validDateOrderNumber = true;\n service.editOrder(view.getEditedOrderInfo(originalOrder), date, orderNumber);\n validDateOrderNumber = true;\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDateOrderNumber = false;\n } catch (NumberFormatException ex) {\n view.displayError(\"Invalid order number. Order number must consist of digits 0-9 only with no decimal points.\"); //issue here or below\n validDateOrderNumber = false;\n } catch (InvalidOrderNumberException ex) {\n view.displayError(ex.getMessage());\n validDateOrderNumber = false;\n }\n } while (!validDateOrderNumber);\n } catch (InvalidDataException ex) {\n view.displayError(ex.getMessage());\n validData = false;\n } catch (NumberFormatException ex) {\n view.displayError(\"Area must consist of digits 0-9 with or without a decimal point.\");//issue here or below\n validData = false;\n }\n } while (!validData);\n }", "public void insertUpdate(DocumentEvent e) {\r\n changed();\r\n }", "public void modifybutton(ActionEvent event) throws Exception{\n\t\t\n\t\tSystem.out.println(\"Editable\");\n\t\ttxtfield2.setEditable(true);\n\t\ttxtfield3.setEditable(true);\n\t\ttxtfield4.setEditable(true);\n\t\ttxtfield5.setEditable(true);\n\t\ttxtfield6.setEditable(true);\n\t\tsave.setVisible(true);\n\t\t\n\t\tStage subStage = new Stage();\n\t\tsubStage.setTitle(\"Alert\");\n\t\t FlowPane root = new FlowPane();\n\t root.setAlignment(Pos.CENTER);\n\t Scene scene = new Scene(root, 300, 200);\n\t Label conf = new Label(\"You can modify your information now\");\n\t conf.setTranslateX(40);\n\t conf.setTranslateY(-10);\n\t Button buton = new Button(\"OK\");\n\t buton.setTranslateX(-50);\n\t buton.setTranslateY(50);\n\t buton.setOnAction(e -> subStage.close());\n\t root.getChildren().addAll(conf,buton);\n\t subStage.setScene(scene);\n\t subStage.show();\n\t}", "public void mmEditClick(ActionEvent event) throws Exception{\r\n displayEditProfile();\r\n }", "@Override\n\tpublic void preProcessAction(GwtEvent e) {\n\t\t\n\t}", "protected abstract void editItem();", "public void insertUpdate(DocumentEvent ev) {\n String stack = Log.getStack(Log.FULL_STACK);\n if (stack.indexOf(\"JTextComponent.setText\") != -1) {\n revertText = textField.getText();\n }\n if (continuousFire) {\n fireActionPerformed(ACTION_TEXT_INSERTED);\n }\n }", "public void setFields(FieldSet editedData) throws Exception {\n\t\tfor (String controlName : editedData.keySet()) {\n\t\t\tif (editedData.get(controlName) != null) {\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Editing field: \" + controlName);\n\t\t\t\tString toSet = editedData.get(controlName);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Setting \" + controlName + \" field to: \"\n\t\t\t\t\t\t+ toSet);\n\t\t\t\tgetEditField(controlName).set(toSet);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tuserIdfield.setText(\"\");\n\t\tactTypeField.setText(\"\");\n\t\tloginNamField.setText(\"\");\n\t\tloginpwdField.setText(\"\");\n\t\tnamefield.setText(\"\");\n\t\tsexIdfield.setText(\"\");\n\t\thomephonefield.setText(\"\");\n\t\tcallphonefield.setText(\"\");\n\t\tofcphonefield.setText(\"\");\n\t\tshortphonefield.setText(\"\");\n\t\totherphonefield.setText(\"\");\n\t\tfaxfield.setText(\"\");\n\t\temailfield.setText(\"\");\n\t\taddrfield.setText(\"\");\n\t\ttitlefield.setText(\"\");\n\t\tdeptIdfield.setText(\"\");\n\t\tuserLevelfield.setText(\"\");\n\t\troleIdfield.setText(\"\");\n\t\tactIdfield.setText(\"\");\n\t\toldPwdField.setText(\"\");\n\t\tnewPwdField.setText(\"\");\t\t\n\t\totherphone2field.setText(\"\");\n\t\tzipfield.setText(\"\");\n\t\tstaffNumfield.setText(\"\");\n\t\tforeignfield.setText(\"\");\n\t\tuserstatefield.setText(\"\");\n\t\tnotesmailfield.setText(\"\");\n\t\tbirthdayfield.setText(\"\");\n\t\tdesfield.setText(\"\");\n\t\twebsitefield.setText(\"\");\n\t\tqPinyinfield.setText(\"\");\n\t\tjPinyinfield.setText(\"\");\n\n\t}", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LiquidacionImpuestoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@FXML\r\n\tprivate void editEmployee(ActionEvent event) {\r\n\t\tbtEditar.setDisable(true);\r\n\t\tbtGuardar.setDisable(false);\r\n\t\tconmuteFields();\r\n\t}", "public void handleUpdateItemConfirmButtonAction(ActionEvent event) {\n try{\n String itemID = this.tempItemID;\n String title = updateItemTitle.getText();\n String author = updateItemAuthor.getText();\n GregorianCalendar publishDate = parseDate(updateItemPublishDate.getText());\n String description = updateItemDescription.getText();\n String ISBN = updateItemISBN.getText();\n String genre = updateItemGenre.getText();\n if (title.length()>0 && author.length()>0 && description.length()>0 && ISBN.length()>0 && genre.length()>0){ \n updateMgr.updateBook(itemID, title, author, publishDate, description, ISBN, genre);\n this.displaySuccess(\"Updated\", \"Item information has successfully been updated\");\n this.clearUpdateItemFields();\n }\n else{ \n displayWarning(\"Item Information incomplete\", \"Please fill in the necessary fields\");\n } \n }\n catch(ArrayIndexOutOfBoundsException | NumberFormatException e){\n displayWarning(\"Sorry\",\"Date format is wrong\\n\" + e.getMessage());\n }\n catch(Exception e){\n displayWarning(\"Sorry\",\"One of the fields is wrong:\\n\" + e.getMessage());\n }\n }", "private static void validateChangeManagement(ValidationError error, boolean isInsideChangeManagement, boolean isChangeManagementOutstanding) {\n String fieldName = \"change\";\n if (!isInsideChangeManagement && isChangeManagementOutstanding) {\n logger.error(\"Change managemt requests are pending for this model.\");\n error.addFieldError(fieldName, \"Change managemt requests are pending for this model.\");\n }\n }" ]
[ "0.6349329", "0.59037745", "0.58556", "0.5854053", "0.58211654", "0.5806664", "0.57544047", "0.5711016", "0.56176585", "0.5596958", "0.5593807", "0.55905044", "0.5576491", "0.5556697", "0.55458504", "0.55436164", "0.5540613", "0.55300343", "0.55015725", "0.54928935", "0.54445523", "0.54424626", "0.5441467", "0.54380023", "0.5437874", "0.5430394", "0.5405121", "0.5391699", "0.53697073", "0.5356755", "0.53551906", "0.53512645", "0.5350146", "0.53488487", "0.53407305", "0.5333055", "0.53217626", "0.53018725", "0.5296951", "0.52969", "0.5293567", "0.5288757", "0.52884126", "0.5277392", "0.52748173", "0.5271211", "0.5225608", "0.52248675", "0.5220599", "0.51934737", "0.5190018", "0.51896966", "0.518754", "0.51869464", "0.518556", "0.5175843", "0.5173539", "0.51569396", "0.5146344", "0.5145697", "0.5143524", "0.5139611", "0.5139427", "0.5136312", "0.51304716", "0.5127043", "0.5125682", "0.51236606", "0.5120235", "0.51190144", "0.5116451", "0.5111811", "0.51036084", "0.5101708", "0.5100588", "0.50959915", "0.50956696", "0.5090629", "0.5077719", "0.507379", "0.50713944", "0.5066732", "0.50653386", "0.5064149", "0.5063874", "0.5062703", "0.505939", "0.50574774", "0.50527364", "0.50514853", "0.5051241", "0.505068", "0.5050426", "0.5049656", "0.5044469", "0.50423706", "0.50411373", "0.5041119", "0.50391144", "0.50351095", "0.5033739" ]
0.0
-1
Method for checking for min inventory logical error
private boolean minVerify(int min, int max) { boolean minLess = true; if (min <= 0 || min >= max) { minLess = false; //LOGICAL ERROR: Min value error errorLabel.setVisible(true); errorTxtLabel.setText("Min must be less than Max."); errorTxtLabel.setVisible(true); } return minLess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean inventoryValid(int min, int max, int stock) {\n\n boolean isValid = true;\n\n if (stock < min || stock > max) {\n isValid = false;\n AlartMessage.displayAlertAdd(4);\n }\n\n return isValid;\n }", "private boolean validInventory(int min, int max, int stock) {\r\n\r\n boolean isTrue = true;\r\n\r\n if (stock < min || stock > max) {\r\n isTrue = false;\r\n alertDisplay(4);\r\n }\r\n\r\n return isTrue;\r\n }", "private boolean partIsValid(){\r\n int min = Integer.parseInt(partMin.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int inventory = Integer.parseInt(partInv.getText());\r\n if(max < min || min >= max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error: Change Max and Min Values\");\r\n alert.setContentText(\"Change Max value to be greater than min\");\r\n alert.showAndWait();\r\n return false;\r\n } else if(max < inventory || min > inventory){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error: Invalid Inventory number\");\r\n alert.setContentText(\"Inventory must be less than max and more than min\");\r\n alert.showAndWait();\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }", "private boolean inventoryVerify(int min, int max, int stock) {\r\n\r\n boolean invBetween = true;\r\n\r\n if (stock < min || stock > max) {\r\n invBetween = false;\r\n //LOGICAL ERROR: Inventory value error\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Inventory must be less than Max and greater than Min.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n\r\n return invBetween;\r\n }", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypePreOrderWhenOutOfStock() {\n\t\tassertInventoryWithAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_FOR_PRE_ORDER);\n\t}", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "public boolean lowQuantity(){\r\n if(getToolQuantity() < 40)\r\n return true;\r\n return false;\r\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"-15\", \"0\", \"0\");\n\t}", "public String getVlidationMinimumQuantity()\n\t{\n\t\twaitForVisibility(validationMinimumQuantity);\n\t\treturn validationMinimumQuantity.getText();\n\t}", "public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }", "public void checkLowStock()\n {\n for(Product product: stock)\n {\n if(product.getQuantity() < 10)\n {\n System.out.println(product.getID() + \": \" +\n product.name + \" is low on stock, only \" + \n product.getQuantity() + \" in stock\");\n }\n }\n }", "private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }", "public static void validateInventorySummaryRequest(final InvInventoryRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }", "public static void validateInventoryRequest(final InvInventoryRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "private void validateInventoryType(final boolean mineral, final InventoryType inventoryType) {\n\t\tif (inventoryType.isMineral() != mineral) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"The type with id %d is a %s but needed a %s\", inventoryType.getTypeID(),\n\t\t\t\t\tmineral ? \"component\" : \"mineral\", mineral ? \"mineral\" : \"component\"));\n\t\t}\n\t}", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"-15\", \"0\");\n\t}", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testScanItemLowException(){\n instance.scanItem(-0.5);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"abcd\", \"0\", \"0\");\n\t}", "public static boolean inventoryIsFull() {\n\t\treturn Inventory.getCount() == 28;\n\t}", "public boolean isItemValid(ItemStack par1ItemStack)\n {\n return true;\n }", "final boolean isValidCartQty() {\n Map<Integer, ReturnedItemDTO> cartMap = returnTable.getIdAndQuantityMap();\n for (Entry<Integer, ReturnedItemDTO> entry : cartMap.entrySet()) {\n ReturnedItemDTO ret = entry.getValue();\n int qty = ret.qty;\n int damageStatus = ret.damageStatus;\n if (qty > 0 && damageStatus > 0) {\n return true;\n }\n }\n return false;\n\n }", "@Test\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"0\");\r\n coffeeMaker.addInventory(\"3\", \"6\", \"9\", \"12\"); // this should not fail\r\n coffeeMaker.addInventory(\"10\", \"10\", \"10\", \"10\");// this should not fail\r\n }", "@Test\n\tpublic void orderingBadItemsThrowsException() {\n\t\tItemQuantity wrongItem = new ItemQuantity(201, 5);\n\t\tList<ItemQuantity> wrongItemQuantities = new ArrayList<ItemQuantity>();\n\t\twrongItemQuantities.add(wrongItem);\n\t\t\n\t\tOrderStep wrongStep = new OrderStep(1, wrongItemQuantities);\n\t\t\n\t\tboolean exceptionWasThrown = false;\n\t\ttry {\n\t\t\titemSupplier.executeStep(wrongStep);\n\t\t}\n\t\tcatch (OrderProcessingException ex) {\n\t\t\texceptionWasThrown = true;\n\t\t}\n\t\tassertTrue(exceptionWasThrown);\n\t\t\n\t\t/* \n\t\t * Check that items with negative quantity get rejected \n\t\t */\n\t\twrongItem = new ItemQuantity(101, -5);\n\t\twrongItemQuantities = new ArrayList<ItemQuantity>();\n\t\twrongItemQuantities.add(wrongItem);\n\t\t\n\t\twrongStep = new OrderStep(1, wrongItemQuantities);\n\t\t\n\t\texceptionWasThrown = false;\n\t\ttry {\n\t\t\titemSupplier.executeStep(wrongStep);\n\t\t}\n\t\tcatch (OrderProcessingException ex) {\n\t\t\texceptionWasThrown = true;\n\t\t}\n\t\tassertTrue(exceptionWasThrown);\n\t}", "public void stateForUnavailableItems_InMiniCart() {\n int count = 0;\n List<WebElement> itemInMiniCart = getDriver().findElements(By.xpath(\"//*[@id='itemList']//li\"));\n for (WebElement unavailable : itemInMiniCart) {\n if (count != itemInMiniCart.size()) {\n if (!String.valueOf(unavailable.getAttribute(\"class\")).contains(\"outofstock\")) {\n continue;\n }\n count++;\n System.out.println(\"unavailable ===>> \" + String.valueOf(unavailable.findElement(By.xpath(\"//*[@class='productNameInner']\")).getText()));\n WebElement childQtyStepper = unavailable.findElement(By.xpath(\".//*[@class='mjr-qtyButton plus noSelect']\"));\n Assert.assertFalse(\"Verify Qty Stepper NOT displayed for Unavailable Product via Mini-Cart\", (childQtyStepper.isDisplayed()));\n }\n }\n System.out.println(\"=== Total Number of Products [\" + itemInMiniCart.size() + \"]\");\n System.out.println(\"=== Number of Unavailable Products In Mini-Cart [\" + count + \"]\");\n Assert.assertEquals(\"Verify there is at least one (1) unavailable product \", 1, count);\n }", "boolean isNilSingleBetMinimum();", "public static String partValidation(String name, int min, int max, int inv, double price, String errorMsg) {\n if (name.trim().isEmpty()) {\n errorMsg = errorMsg + (\"Name field is blank.\");\n }\n if (inv < 1) {\n errorMsg = errorMsg + (\"Inventory level must be greater than 0.\");\n }\n if (price < 1) {\n errorMsg = errorMsg + (\"Price must be greater than $0\");\n }\n if (inv < min || inv > max) {\n errorMsg = errorMsg + (\"Inventory level must be a value between minimum and maximum values.\");\n }\n if (min > max) {\n errorMsg = errorMsg + (\"Inventory level minimum must be less than the maximum.\");\n }\n return errorMsg;\n }", "private int findFreeSlot(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public static boolean isValidInventory(final Inventory inventory) {\n if (inventory == null) {\n return false;\n }\n if (inventory.getSize() < 1) {\n return false;\n }\n return true;\n }", "public boolean isValidPart() {\n boolean result = false;\n boolean isComplete = !partPrice.getText().equals(\"\")\n && !partName.getText().equals(\"\")\n && !inventoryCount.getText().equals(\"\")\n && !partId.getText().equals(\"\")\n && !maximumInventory.getText().equals(\"\")\n && !minimumInventory.getText().equals(\"\")\n && !variableTextField.getText().equals(\"\");\n boolean isValidPrice = isDoubleValid(partPrice);\n boolean isValidName = isCSVTextValid(partName);\n boolean isValidId = isIntegerValid(partId);\n boolean isValidMax = isIntegerValid(maximumInventory);\n boolean isValidMin = isIntegerValid(minimumInventory);\n boolean isMinLessThanMax = false;\n if (isComplete)\n isMinLessThanMax = Integer.parseInt(maximumInventory.getText()) > Integer.parseInt(minimumInventory.getText());\n\n if (!isComplete) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Missing Information\");\n errorMessage.setHeaderText(\"You didn't enter required information!\");\n errorMessage.setContentText(\"All fields are required! Your part has not been saved. Press \\\"OK\\\" and try again.\");\n errorMessage.show();\n } else if (!isMinLessThanMax) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Invalid Entry\");\n errorMessage.setHeaderText(\"Min must be less than Max!\");\n errorMessage.setContentText(\"Re-enter your data! Your part has not been saved.Press \\\"OK\\\" and try again.\");\n errorMessage.show();\n } else if (!isValidPrice) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Price is not valid\");\n errorMessage.setHeaderText(\"The value you entered for price is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered does\" +\n \" not include more than one decimal point (.), does not contain any letters, and does not \" +\n \"have more than two digits after the decimal. \");\n errorMessage.show();\n } else if (!isValidName) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Invalid Name\");\n errorMessage.setHeaderText(\"The value you entered for name is not valid.\");\n errorMessage.setContentText(\"Please ensure that the text you enter does not\" +\n \" include any quotation marks,\" +\n \"(\\\"), or commas (,).\");\n errorMessage.show();\n } else if (!isValidId) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect ID\");\n errorMessage.setHeaderText(\"The value you entered for ID is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else if (!isValidMax) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect Max Inventory\");\n errorMessage.setHeaderText(\"The value you entered for Max is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else if (!isValidMin) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect Min Inventory\");\n errorMessage.setHeaderText(\"The value you entered for Min is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else {\n result = true;\n }\n\n return result;\n }", "public void dailyInventoryCheck(){\n\n\t\tint i;\n\t\tStock tempStock, tempRestockTracker;\n\t\tint listSizeInventory = this.inventory.size();\n\t\tfor(i = 0; i < listSizeInventory; i++){\n\n\t\t\t\tif(this.inventory.get(i).getStock() == 0){\n\t\t\t\t\t//If stock is 0 add 1 to the out of stock counnter then reset it to the inventory level\n\t\t\t\t\tthis.inventory.get(i).setStock(inventoryLevel);\n\t\t\t\t\tthis.inventoryOrdersDone.get(i).addStock(1);\n\t\t\t\t\t//inventoryOrdersDone.set(i,tempRestockTracker);\n\t\t\t\t\t//tempStock.setStock(inventoryLevel);\n\t\t\t\t\t//this.inventory.set(i,tempStock);\n\t\t\t\t}\n\t\t\t}\n\n\t}", "private void validateQuantity() {\n if (numQuantity.isEmpty()) {\n numQuantity.setErrorMessage(\"This field cannot be left blank.\");\n numQuantity.setInvalid(true);\n removeValidity();\n }\n // Check that quantity is in acceptable range (range check)\n else if (!validator.checkValidQuantity(numQuantity.getValue().intValue())) {\n numQuantity.setErrorMessage(\"Please enter a number between 1 and \" + researchDetails.MAX_QUANTITY + \" (inclusively)\");\n numQuantity.setInvalid(true);\n removeValidity();\n }\n\n }", "default int minimumHit(Player player) {\n\t\treturn -1;\n\t}", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeInStockWhenOutOfStock() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_OF_10);\n\t\tinventory.setReservedQuantity(QUANTITY_OF_5);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\torderSku.setQuantity(QUANTITY_OF_5);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal IndexNotificationService indexNotificationService = context.mock(IndexNotificationService.class);\n\t\tproductInventoryManagementService.setIndexNotificationService(indexNotificationService);\n\n\t\tfinal InventoryKey inventoryKey = new InventoryKey();\n\t\tinventoryKey.setSkuCode(SKU_CODE);\n\t\tinventoryKey.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tatLeast(1).of(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\n\t\t\t\toneOf(indexNotificationService).addNotificationForEntityIndexUpdate(IndexType.PRODUCT, product.getUidPk());\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_5);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_OF_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(0, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_OF_5, inventoryDto.getAllocatedQuantity());\n\n\t\tfinal Inventory inventory3 = assembler.assembleDomainFromDto(inventoryDto);\n\t\tfinal InventoryDao inventoryDao3 = context.mock(InventoryDao.class, \"inventoryDao3\");\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao3);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryDao3).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory3));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\t}", "public void extendedErrorCheck(int station) throws JposException {\r\n boolean[][] relevantconditions = new boolean[][]{\r\n new boolean[]{Data.JrnEmpty, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.RecEmpty, Data.RecCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.RecCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.RecCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.SlpEmpty, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_CLEANING }\r\n };\r\n int[][] exterrors = new int[][]{\r\n new int[]{POSPrinterConst.JPOS_EPTR_JRN_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_REC_EMPTY, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_REC_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_SLP_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_HEAD_CLEANING},\r\n };\r\n String[] errortexts = { \"Paper empty\", \"Cartridge removed\", \"Cartridge empty\", \"Head cleaning\" };\r\n Device.check(Data.PowerNotify == JposConst.JPOS_PN_ENABLED && Data.PowerState != JposConst.JPOS_PS_ONLINE, JposConst.JPOS_E_FAILURE, \"POSPrinter not reachable\");\r\n Device.checkext(Data.CoverOpen, POSPrinterConst.JPOS_EPTR_COVER_OPEN, \"Cover open\");\r\n for (int j = 0; j < relevantconditions.length; j++) {\r\n if (station == SingleStations[j]) {\r\n for (int k = 0; k < relevantconditions[j].length; k++) {\r\n Device.checkext(relevantconditions[j][k], exterrors[j][k], errortexts[k]);\r\n }\r\n }\r\n }\r\n }", "public static int checkSlotsAvailable(Inventory inv) {\n ItemStack[] items = inv.getContents(); //Contents of player inventory\n int emptySlots = 0;\n\n for (ItemStack is : items) {\n if (is == null) {\n emptySlots = emptySlots + 1;\n }\n }\n\n return emptySlots;\n }", "@Test\n\tpublic void testInventoryNotEnoughMilk() {\n\t\tcoffeeMaker.addRecipe(recipe7);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}", "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "public int getInventoryStackLimit()\n {\n return 64;\n }", "public int getInventoryStackLimit()\n {\n return 64;\n }", "public int getInventoryStackLimit()\n {\n return 64;\n }", "boolean isNilMultipleBetMinimum();", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"-15\", \"0\", \"0\", \"0\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"abcd\", \"0\");\n\t}", "boolean isSetSingleBetMinimum();", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeBackOrderWhenOutOfStock() {\n\t\tassertInventoryWithAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_FOR_BACK_ORDER);\n\t}", "public boolean setSlot(int debug1, ItemStack debug2) {\n/* */ EquipmentSlot debug3;\n/* 2048 */ if (debug1 >= 0 && debug1 < this.inventory.items.size()) {\n/* 2049 */ this.inventory.setItem(debug1, debug2);\n/* 2050 */ return true;\n/* */ } \n/* */ \n/* */ \n/* 2054 */ if (debug1 == 100 + EquipmentSlot.HEAD.getIndex()) {\n/* 2055 */ debug3 = EquipmentSlot.HEAD;\n/* 2056 */ } else if (debug1 == 100 + EquipmentSlot.CHEST.getIndex()) {\n/* 2057 */ debug3 = EquipmentSlot.CHEST;\n/* 2058 */ } else if (debug1 == 100 + EquipmentSlot.LEGS.getIndex()) {\n/* 2059 */ debug3 = EquipmentSlot.LEGS;\n/* 2060 */ } else if (debug1 == 100 + EquipmentSlot.FEET.getIndex()) {\n/* 2061 */ debug3 = EquipmentSlot.FEET;\n/* */ } else {\n/* 2063 */ debug3 = null;\n/* */ } \n/* */ \n/* 2066 */ if (debug1 == 98) {\n/* 2067 */ setItemSlot(EquipmentSlot.MAINHAND, debug2);\n/* 2068 */ return true;\n/* 2069 */ } if (debug1 == 99) {\n/* 2070 */ setItemSlot(EquipmentSlot.OFFHAND, debug2);\n/* 2071 */ return true;\n/* */ } \n/* */ \n/* 2074 */ if (debug3 != null) {\n/* 2075 */ if (!debug2.isEmpty()) {\n/* 2076 */ if (debug2.getItem() instanceof net.minecraft.world.item.ArmorItem || debug2.getItem() instanceof ElytraItem) {\n/* 2077 */ if (Mob.getEquipmentSlotForItem(debug2) != debug3) {\n/* 2078 */ return false;\n/* */ }\n/* 2080 */ } else if (debug3 != EquipmentSlot.HEAD) {\n/* 2081 */ return false;\n/* */ } \n/* */ }\n/* 2084 */ this.inventory.setItem(debug3.getIndex() + this.inventory.items.size(), debug2);\n/* 2085 */ return true;\n/* */ } \n/* 2087 */ int debug4 = debug1 - 200;\n/* 2088 */ if (debug4 >= 0 && debug4 < this.enderChestInventory.getContainerSize()) {\n/* 2089 */ this.enderChestInventory.setItem(debug4, debug2);\n/* 2090 */ return true;\n/* */ } \n/* 2092 */ return false;\n/* */ }", "@Test(expected = InsufficientStockException.class)\n\tpublic void testInventoryCheckOnAddingItemsToShoppingCart() throws InsufficientStockException {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\tBigDecimal orderQuantity = TestProductInventory.iphoneInventory.getAvailableStock().add(new BigDecimal(1));\n\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), orderQuantity);\n\n\t}", "private boolean row_number_error(int min, int max) {\n int row_size = getHighlightedRows() / 2;\n if ( (min <= row_size) && (row_size <= max))\n return false;\n String dup = (min > 1)? \"s\": \"\";\n if (min > row_size) {\n String status = \"Please select at least \" + min + \" meaning\" + dup;\n statusView.setText(status);\n } else if (row_size > max) {\n String status = (max > min)? \"Please select between \" + min + \" and \" + max + \" meanings\":\n \"Please select \" + min + \" meaning\" + dup;\n statusView.setText(status);\n }\n return true;\n }", "public boolean isItemValid(ItemStack itemstack)\n {\n return itemstack.getItem() == Items.water_bucket;\n }", "public Boolean canAddItem(ItemStack item, Player player){\n\t\tint freeSpace = 0;\n\t\tfor(ItemStack i : player.getInventory() ){\n\t\t\tif(i == null){\n\t\t\t\tfreeSpace += item.getType().getMaxStackSize();\n\t\t\t} else if (i.getType() == item.getType() ){\n\t\t\t\tfreeSpace += (i.getType().getMaxStackSize() - i.getAmount());\n\t\t\t}\n\t\t}\n\t\tdebugOut(\"Item has: \"+item.getAmount()+\" and freeSpace is: \"+freeSpace);\n\t\tif(item.getAmount() > freeSpace){\n\t\t\tdebugOut(\"There is not enough freeSpace in the inventory\");\n\t\t\treturn false;\n\t\t}else{\n\t\t\tdebugOut(\"There is enough freeSpace in the inventory\");\n\t\t\treturn true;\n\t\t}\n\t}", "boolean isSetMultipleBetMinimum();", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"-15\");\n\t}", "public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isItemValidForSlot(int slot, ItemStack stack){\n\t return true;\n\t}", "boolean hasQuantity();", "private void tryEquipItem() {\n if (fakePlayer.get().getHeldItem(EnumHand.MAIN_HAND).isEmpty()) {\n ItemStack unbreakingPickaxe = new ItemStack(Items.DIAMOND_PICKAXE, 1);\n unbreakingPickaxe.addEnchantment(Enchantments.EFFICIENCY, 3);\n unbreakingPickaxe.setTagCompound(new NBTTagCompound());\n unbreakingPickaxe.getTagCompound().setBoolean(\"Unbreakable\", true);\n fakePlayer.get().setItemStackToSlot(EntityEquipmentSlot.MAINHAND, unbreakingPickaxe);\n }\n }", "@Test\n\tpublic void testInventoryNotEnoughSugar() {\n\t\tcoffeeMaker.addRecipe(recipe8);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "private boolean canSmelt()\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n if (var1 == null) return false;\n if (this.furnaceItemStacks[2] == null) return true;\n if (!this.furnaceItemStacks[2].isItemEqual(var1)) return false;\n int result = furnaceItemStacks[2].stackSize + var1.stackSize;\n return (result <= getInventoryStackLimit() && result <= var1.getMaxStackSize());\n }", "public boolean isInventoryFull()\n\t{\n\t\tif (myWorker.getLoadInInventory() >= getMyPlayer().getPlayerInfo()\n\t\t\t\t.getMaxCarryingLoadByWorker())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n\tpublic int getInventoryStackLimit(){\n\t return 64;\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testScanItemHighException(){\n instance.scanItem(1E6);\n }", "@Test\n\tpublic void testInventoryNotEnoughCoffee() {\n\t\tcoffeeMaker.addRecipe(recipe6);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_)\n {\n return true;\n }", "@Override\n\tpublic int getInventoryStackLimit() {\n\t\treturn 64;\n\t}", "@Override\n\tpublic int getInventoryStackLimit() {\n\t\treturn 64;\n\t}", "int askForTempMin();", "@Test\r\n public void testUpdateMilkInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"5\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 20\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "public boolean isItemValid(ItemStack var1)\n {\n return canHoldPotion(var1);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"abcd\", \"0\", \"0\", \"0\");\n\t}", "public boolean alertCriticalQuantity(Medical medicalSelected, int specifiedQuantity) {\r\n\t\ttry {\r\n\t\t\tMedical medical = ioOperationsMedicals.getMedical(medicalSelected.getCode());\r\n\t\t\tdouble totalQuantity = medical.getTotalQuantity();\r\n\t\t\tdouble residual = totalQuantity - specifiedQuantity;\t\t\t\r\n\t\t\treturn residual < medical.getMinqty();\r\n\t\t} catch (OHException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "void getMin() {\n if (s.isEmpty()) {\n System.out.println(\"Stack is empty\");\n } else {\n System.out.println(\"minEle is: \" + minEle);\n }\n }", "public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testAddItem_already_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tVendingMachineItem test2 = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test2, \"A\");\r\n\r\n\t}", "public static int checkSlotsAvailable(Player player) {\n return checkSlotsAvailable(player.getInventory());\n }", "private List<ItemBO> checkInventoryProblem(final List<ItemBO> itemList)\n\t{\n\t\tfinal List<ItemBO> itemBOList = new ArrayList<ItemBO>();\n\t\tif (itemList != null && (!itemList.isEmpty()))\n\t\t{\n\t\t\tfinal Iterator<ItemBO> itemListIterator = itemList.iterator();\n\t\t\twhile (itemListIterator.hasNext())\n\t\t\t{\n\t\t\t\tfinal ItemBO itemBO = itemListIterator.next();\n\t\t\t\tboolean isProblemPart = false;\n\t\t\t\tif (null != itemBO.getProblemItemList() && !itemBO.getProblemItemList().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfinal List<ProblemBO> problemBOList = itemBO.getProblemItemList();\n\t\t\t\t\tfor (final ProblemBO problem : problemBOList)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (MessageResourceUtil.NO_INVENTORY.equals(problem.getMessageKey()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisProblemPart = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isProblemPart)\n\t\t\t\t{\n\t\t\t\t\titemBOList.add(itemBO);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn itemBOList;\n\t}", "public void validateMinimum() {\n/* */ double newMin;\n/* */ try {\n/* 373 */ newMin = Double.parseDouble(this.minimumRangeValue.getText());\n/* 374 */ if (newMin >= this.maximumValue) {\n/* 375 */ newMin = this.minimumValue;\n/* */ }\n/* */ }\n/* 378 */ catch (NumberFormatException e) {\n/* 379 */ newMin = this.minimumValue;\n/* */ } \n/* */ \n/* 382 */ this.minimumValue = newMin;\n/* 383 */ this.minimumRangeValue.setText(Double.toString(this.minimumValue));\n/* */ }", "@Override\n\tpublic boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {\n\t\treturn true;\n\t}", "public synchronized void checkAndUpdateInventory(Drink drink) {\n Map<String, Integer> quantityMap = drink.getIngredientQuantityMap();\n boolean canBeMade = true;\n for (Map.Entry<String, Integer> entry : quantityMap.entrySet()) {\n if (inventoryMap.containsKey(entry.getKey())) {\n int currentValue = inventoryMap.get(entry.getKey());\n if (currentValue == 0) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not available\");\n canBeMade = false;\n break;\n } else if (quantityMap.get(entry.getKey()) > inventoryMap.get(entry.getKey())) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not sufficient\");\n canBeMade = false;\n break;\n }\n }\n }\n if (canBeMade) {\n updateInventory(quantityMap);\n System.out.println(drink.getName() + \" is prepared\");\n }\n }", "@Override\n public boolean isCorrectMachinePart(ItemStack itemStack) {\n return true;\n }", "@Test(expected=InvalidItemException.class)\n\tpublic void testInvalidItems() throws Exception {\n\t\tfor (int i = 0; i >= -10; i--) {\n\t\t\td.dispense(50, i);\n\t\t}\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"abcd\");\n\t}", "protected int checkRowForAdd(GenericValue reservation, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId,\n BigDecimal quantity) {\n // check to see if the reservation can hold the requested quantity amount\n String inventoryItemId = reservation.getString(\"inventoryItemId\");\n BigDecimal resQty = reservation.getBigDecimal(\"quantity\");\n VerifyPickSessionRow pickRow = this.getPickRow(orderId, orderItemSeqId, shipGroupSeqId, productId, inventoryItemId);\n\n if (pickRow == null) {\n if (resQty.compareTo(quantity) < 0) {\n return 0;\n } else {\n return 2;\n }\n } else {\n BigDecimal newQty = pickRow.getReadyToVerifyQty().add(quantity);\n if (resQty.compareTo(newQty) < 0) {\n return 0;\n } else {\n pickRow.setReadyToVerifyQty(newQty);\n return 1;\n }\n }\n }", "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "public Integer getMinItems() {\n\t\treturn minItems;\n\t}", "public void handleCrafting() {\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !input.getStackInSlot(0).isEmpty() && !input.getStackInSlot(1).isEmpty()) {\n isRecipeInvalid = true;\n }\n // Handles two compatible items\n else if(input.getStackInSlot(0).getMaxDamage() > 1 && input.getStackInSlot(0).getMaxStackSize() == 1 && input.getStackInSlot(0).getItem() == input.getStackInSlot(1).getItem()) {\n isRecipeInvalid = false;\n ItemStack stack = input.getStackInSlot(0);\n int sum = (stack.getMaxDamage() - stack.getItemDamage()) + (stack.getMaxDamage() - input.getStackInSlot(1).getItemDamage());\n\n sum = sum + (int)(sum * 0.2);\n if(sum > stack.getMaxDamage()) {\n sum = stack.getMaxDamage();\n }\n\n output.setStackInSlot(0, new ItemStack(stack.getItem(), 1, stack.getMaxDamage() - sum));\n }\n // Resets the grid when the two items are incompatible\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !output.getStackInSlot(0).isEmpty()) {\n output.setStackInSlot(0, ItemStack.EMPTY);\n }\n }", "public int getInventoryFull ()\n {\n return (inventoryFull);\n }", "int getMin() {\n\t\tif (stack.size() > 0) {\n\t\t\treturn minEle;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "public float getMinAvailability()\n\t{\n\t\treturn piecePicker.getMinAvailability();\n\t}", "private void validt() {\n\t\t// -\n\t\tnmfkpinds.setPgmInd99(false);\n\t\tstateVariable.setZmsage(blanks(78));\n\t\tfor (int idxCntdo = 1; idxCntdo <= 1; idxCntdo++) {\n\t\t\tproductMaster.retrieve(stateVariable.getXwabcd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00005 Product not found on Product_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0003\", \"XWABCD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - If addition, pull the price from file:\n\t\t\tif (nmfkpinds.funKey06()) {\n\t\t\t\tstateVariable.setXwpric(stateVariable.getXwanpr());\n\t\t\t}\n\t\t\t// -\n\t\t\tstoreMaster.retrieve(stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00006 Store not found on Store_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0369\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstockBalances.retrieve(stateVariable.getXwabcd(), stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00007 Store not found on Stock_Balances or CONDET.Contract_Qty >\n\t\t\t// BR Onhand_Quantity\n\t\t\tif (nmfkpinds.pgmInd99() || (stateVariable.getXwa5qt() > stateVariable.getXwbhqt())) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0370\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Transaction Type:\n\t\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00008 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0371\", \"XWRICD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Unit of measure:\n\t\t\t// BR00009 U_M = 'EAC'\n\t\t\tif (equal(\"EAC\", stateVariable.getXwa2cd())) {\n\t\t\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0372\", \"XWA2CD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddInventoryException() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\n\t}", "public interface SlotConstraint {\n /**\n * Check the entry\n */\n public void check(Item item, int quantity) throws InventoryException;\n}", "@Test\n\tpublic void testUseValidItem() {\n\t\tLightGrenade lightGrenade = new LightGrenade();\n\t\tSquare square = new Square();\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tplayer.addItem(lightGrenade);\n\t\t\n\t\tplayer.useItem(lightGrenade);\n\t\tassertFalse(player.hasItem(lightGrenade));\n\t}", "public void stock (int p, int iF)\n {\n\n if ((p < numberOfProducts * -1)||(iF>10||iF<=0)){\n System.out.println (\"Number of products is invalid and/or inventory fullness isn't 1-10. Try again.\");\n }\n else\n {\n numberOfProducts+=p;\n inventoryFull = iF;\n }\n\n }" ]
[ "0.6674913", "0.6673099", "0.6610241", "0.6511488", "0.63716024", "0.62652266", "0.62059283", "0.6066792", "0.6062656", "0.5989707", "0.5972347", "0.59235805", "0.59094906", "0.5873566", "0.58468735", "0.58147025", "0.58087516", "0.58000934", "0.5784858", "0.5773962", "0.5763351", "0.5756177", "0.57351303", "0.5715008", "0.56972647", "0.5684387", "0.56678265", "0.5666798", "0.56616426", "0.5636524", "0.5634039", "0.5631574", "0.5558956", "0.5553633", "0.5553197", "0.55454046", "0.55415905", "0.5540287", "0.55352604", "0.5526536", "0.55248547", "0.5522948", "0.5521047", "0.55161244", "0.55095834", "0.55095834", "0.55095834", "0.5508348", "0.54982024", "0.5497341", "0.5491286", "0.54887694", "0.5485015", "0.5468981", "0.54613334", "0.5440839", "0.5436478", "0.5415821", "0.53974205", "0.53963083", "0.5392143", "0.5381187", "0.5377141", "0.53756577", "0.53693503", "0.5367531", "0.5363205", "0.53614324", "0.5360572", "0.53545034", "0.53496677", "0.53496677", "0.5346181", "0.5341619", "0.5333558", "0.5324621", "0.5321311", "0.5320972", "0.5317329", "0.5315422", "0.53117055", "0.5300294", "0.5295465", "0.52925724", "0.52864504", "0.5286381", "0.52861065", "0.5281816", "0.5278826", "0.5268424", "0.52667576", "0.5266321", "0.5248125", "0.52441967", "0.5236986", "0.52344126", "0.5231712", "0.5230353", "0.5229005", "0.5226354", "0.52236384" ]
0.0
-1
Method for checking for inventory logical error
private boolean inventoryVerify(int min, int max, int stock) { boolean invBetween = true; if (stock < min || stock > max) { invBetween = false; //LOGICAL ERROR: Inventory value error errorLabel.setVisible(true); errorTxtLabel.setText("Inventory must be less than Max and greater than Min."); errorTxtLabel.setVisible(true); } return invBetween; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "@Test\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"0\");\r\n coffeeMaker.addInventory(\"3\", \"6\", \"9\", \"12\"); // this should not fail\r\n coffeeMaker.addInventory(\"10\", \"10\", \"10\", \"10\");// this should not fail\r\n }", "public static void validateInventoryRequest(final InvInventoryRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"abcd\", \"0\", \"0\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddInventoryException() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"abcd\", \"0\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"-15\", \"0\", \"0\");\n\t}", "public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"-15\", \"0\");\n\t}", "@Test\r\n public void testUpdateMilkInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"5\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 20\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeBackOrderWhenOutOfStock() {\n\t\tassertInventoryWithAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_FOR_BACK_ORDER);\n\t}", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeInStockWhenOutOfStock() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_OF_10);\n\t\tinventory.setReservedQuantity(QUANTITY_OF_5);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\torderSku.setQuantity(QUANTITY_OF_5);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal IndexNotificationService indexNotificationService = context.mock(IndexNotificationService.class);\n\t\tproductInventoryManagementService.setIndexNotificationService(indexNotificationService);\n\n\t\tfinal InventoryKey inventoryKey = new InventoryKey();\n\t\tinventoryKey.setSkuCode(SKU_CODE);\n\t\tinventoryKey.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tatLeast(1).of(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\n\t\t\t\toneOf(indexNotificationService).addNotificationForEntityIndexUpdate(IndexType.PRODUCT, product.getUidPk());\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_5);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_OF_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(0, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_OF_5, inventoryDto.getAllocatedQuantity());\n\n\t\tfinal Inventory inventory3 = assembler.assembleDomainFromDto(inventoryDto);\n\t\tfinal InventoryDao inventoryDao3 = context.mock(InventoryDao.class, \"inventoryDao3\");\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao3);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryDao3).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory3));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypePreOrderWhenOutOfStock() {\n\t\tassertInventoryWithAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_FOR_PRE_ORDER);\n\t}", "private boolean validInventory(int min, int max, int stock) {\r\n\r\n boolean isTrue = true;\r\n\r\n if (stock < min || stock > max) {\r\n isTrue = false;\r\n alertDisplay(4);\r\n }\r\n\r\n return isTrue;\r\n }", "@Test(expected = InventoryException.class)\r\n public void testAddInventoryException() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\r\n coffeeMaker.addInventory(\"coffee\", \"milk\", \"sugar\", \"choco\");\r\n\r\n }", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testAddItem_already_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tVendingMachineItem test2 = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test2, \"A\");\r\n\r\n\t}", "public static void validateInventorySummaryRequest(final InvInventoryRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "@Test(expected = InsufficientStockException.class)\n\tpublic void testInventoryCheckOnAddingItemsToShoppingCart() throws InsufficientStockException {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\tBigDecimal orderQuantity = TestProductInventory.iphoneInventory.getAvailableStock().add(new BigDecimal(1));\n\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), orderQuantity);\n\n\t}", "@Test\n\tpublic void orderingBadItemsThrowsException() {\n\t\tItemQuantity wrongItem = new ItemQuantity(201, 5);\n\t\tList<ItemQuantity> wrongItemQuantities = new ArrayList<ItemQuantity>();\n\t\twrongItemQuantities.add(wrongItem);\n\t\t\n\t\tOrderStep wrongStep = new OrderStep(1, wrongItemQuantities);\n\t\t\n\t\tboolean exceptionWasThrown = false;\n\t\ttry {\n\t\t\titemSupplier.executeStep(wrongStep);\n\t\t}\n\t\tcatch (OrderProcessingException ex) {\n\t\t\texceptionWasThrown = true;\n\t\t}\n\t\tassertTrue(exceptionWasThrown);\n\t\t\n\t\t/* \n\t\t * Check that items with negative quantity get rejected \n\t\t */\n\t\twrongItem = new ItemQuantity(101, -5);\n\t\twrongItemQuantities = new ArrayList<ItemQuantity>();\n\t\twrongItemQuantities.add(wrongItem);\n\t\t\n\t\twrongStep = new OrderStep(1, wrongItemQuantities);\n\t\t\n\t\texceptionWasThrown = false;\n\t\ttry {\n\t\t\titemSupplier.executeStep(wrongStep);\n\t\t}\n\t\tcatch (OrderProcessingException ex) {\n\t\t\texceptionWasThrown = true;\n\t\t}\n\t\tassertTrue(exceptionWasThrown);\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"abcd\", \"0\", \"0\", \"0\");\n\t}", "private boolean partIsValid(){\r\n int min = Integer.parseInt(partMin.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int inventory = Integer.parseInt(partInv.getText());\r\n if(max < min || min >= max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error: Change Max and Min Values\");\r\n alert.setContentText(\"Change Max value to be greater than min\");\r\n alert.showAndWait();\r\n return false;\r\n } else if(max < inventory || min > inventory){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error: Invalid Inventory number\");\r\n alert.setContentText(\"Inventory must be less than max and more than min\");\r\n alert.showAndWait();\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean inventoryValid(int min, int max, int stock) {\n\n boolean isValid = true;\n\n if (stock < min || stock > max) {\n isValid = false;\n AlartMessage.displayAlertAdd(4);\n }\n\n return isValid;\n }", "@Test\n public void testIsItemPresent() throws VendingMachineInventoryException {\n boolean thrown = false;\n try {\n service.isItemPresent(\"shouldNotBePresent\");\n } catch (VendingMachineInventoryException e) {\n thrown = true;\n }\n assertTrue(thrown);\n }", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}", "@Override\n\tpublic boolean canDropInventory(IBlockState state)\n\t{\n\t\treturn false;\n\t}", "public boolean isItemValid(ItemStack par1ItemStack)\n {\n return true;\n }", "@Test\r\n public void testUpdateSugarInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"5\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 20\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "public boolean setSlot(int debug1, ItemStack debug2) {\n/* */ EquipmentSlot debug3;\n/* 2048 */ if (debug1 >= 0 && debug1 < this.inventory.items.size()) {\n/* 2049 */ this.inventory.setItem(debug1, debug2);\n/* 2050 */ return true;\n/* */ } \n/* */ \n/* */ \n/* 2054 */ if (debug1 == 100 + EquipmentSlot.HEAD.getIndex()) {\n/* 2055 */ debug3 = EquipmentSlot.HEAD;\n/* 2056 */ } else if (debug1 == 100 + EquipmentSlot.CHEST.getIndex()) {\n/* 2057 */ debug3 = EquipmentSlot.CHEST;\n/* 2058 */ } else if (debug1 == 100 + EquipmentSlot.LEGS.getIndex()) {\n/* 2059 */ debug3 = EquipmentSlot.LEGS;\n/* 2060 */ } else if (debug1 == 100 + EquipmentSlot.FEET.getIndex()) {\n/* 2061 */ debug3 = EquipmentSlot.FEET;\n/* */ } else {\n/* 2063 */ debug3 = null;\n/* */ } \n/* */ \n/* 2066 */ if (debug1 == 98) {\n/* 2067 */ setItemSlot(EquipmentSlot.MAINHAND, debug2);\n/* 2068 */ return true;\n/* 2069 */ } if (debug1 == 99) {\n/* 2070 */ setItemSlot(EquipmentSlot.OFFHAND, debug2);\n/* 2071 */ return true;\n/* */ } \n/* */ \n/* 2074 */ if (debug3 != null) {\n/* 2075 */ if (!debug2.isEmpty()) {\n/* 2076 */ if (debug2.getItem() instanceof net.minecraft.world.item.ArmorItem || debug2.getItem() instanceof ElytraItem) {\n/* 2077 */ if (Mob.getEquipmentSlotForItem(debug2) != debug3) {\n/* 2078 */ return false;\n/* */ }\n/* 2080 */ } else if (debug3 != EquipmentSlot.HEAD) {\n/* 2081 */ return false;\n/* */ } \n/* */ }\n/* 2084 */ this.inventory.setItem(debug3.getIndex() + this.inventory.items.size(), debug2);\n/* 2085 */ return true;\n/* */ } \n/* 2087 */ int debug4 = debug1 - 200;\n/* 2088 */ if (debug4 >= 0 && debug4 < this.enderChestInventory.getContainerSize()) {\n/* 2089 */ this.enderChestInventory.setItem(debug4, debug2);\n/* 2090 */ return true;\n/* */ } \n/* 2092 */ return false;\n/* */ }", "public static boolean isValidInventory(final Inventory inventory) {\n if (inventory == null) {\n return false;\n }\n if (inventory.getSize() < 1) {\n return false;\n }\n return true;\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"-15\", \"0\", \"0\", \"0\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"abcd\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testAddItem_invalid_code() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"F\");\r\n\t}", "public static void emptyInventoryListMessage() {\n System.out.println(\"You do not have any Items in your inventory:(\");\n }", "private List<ItemBO> checkInventoryProblem(final List<ItemBO> itemList)\n\t{\n\t\tfinal List<ItemBO> itemBOList = new ArrayList<ItemBO>();\n\t\tif (itemList != null && (!itemList.isEmpty()))\n\t\t{\n\t\t\tfinal Iterator<ItemBO> itemListIterator = itemList.iterator();\n\t\t\twhile (itemListIterator.hasNext())\n\t\t\t{\n\t\t\t\tfinal ItemBO itemBO = itemListIterator.next();\n\t\t\t\tboolean isProblemPart = false;\n\t\t\t\tif (null != itemBO.getProblemItemList() && !itemBO.getProblemItemList().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfinal List<ProblemBO> problemBOList = itemBO.getProblemItemList();\n\t\t\t\t\tfor (final ProblemBO problem : problemBOList)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (MessageResourceUtil.NO_INVENTORY.equals(problem.getMessageKey()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisProblemPart = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isProblemPart)\n\t\t\t\t{\n\t\t\t\t\titemBOList.add(itemBO);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn itemBOList;\n\t}", "@Test\r\n public void testUpdateCoffeeInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"5\", \"0\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 20\\nMilk: 15\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "public boolean isItemValid(ItemStack var1)\n {\n return canHoldPotion(var1);\n }", "public static boolean inventoryIsFull() {\n\t\treturn Inventory.getCount() == 28;\n\t}", "@Test\n public void testGetInventoryQueryAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.getInventoryQueryAction(\"{productId}\", \"{scope}\", -1, -1);\n List<Integer> expectedResults = Arrays.asList(200, 400);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/PagedResponseInventoryItem\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }", "protected void checkinventory(ArrayList <String> checker, ArrayList <ObjetoEquipable> inventory) {\n Inventario.verInventarioAsk(inventory,checker);\r\n }", "public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_)\n {\n return true;\n }", "private void tryEquipItem() {\n if (fakePlayer.get().getHeldItem(EnumHand.MAIN_HAND).isEmpty()) {\n ItemStack unbreakingPickaxe = new ItemStack(Items.DIAMOND_PICKAXE, 1);\n unbreakingPickaxe.addEnchantment(Enchantments.EFFICIENCY, 3);\n unbreakingPickaxe.setTagCompound(new NBTTagCompound());\n unbreakingPickaxe.getTagCompound().setBoolean(\"Unbreakable\", true);\n fakePlayer.get().setItemStackToSlot(EntityEquipmentSlot.MAINHAND, unbreakingPickaxe);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void unknownItem() {\n\t\tGroceryStore gs = new GroceryStore();\n\t\tint age1 = 50;\n\t\t\n\t\t// this function call should return the expected exception\n\t\tgs.validateAge(age1, \"unknown item\");\n\t\t\n\t}", "final boolean isValidCartQty() {\n Map<Integer, ReturnedItemDTO> cartMap = returnTable.getIdAndQuantityMap();\n for (Entry<Integer, ReturnedItemDTO> entry : cartMap.entrySet()) {\n ReturnedItemDTO ret = entry.getValue();\n int qty = ret.qty;\n int damageStatus = ret.damageStatus;\n if (qty > 0 && damageStatus > 0) {\n return true;\n }\n }\n return false;\n\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"-15\");\n\t}", "@Test(expected=UnavailableItemException.class)\n\tpublic void testUnavailableItems() throws Exception {\n\t\td.dispense(50, 5);\n\t\td.dispense(50, 18);\n\t\td.dispense(50, 20);\n\t}", "@Override\n\tpublic boolean isItemValidForSlot(int slot, ItemStack stack){\n\t return true;\n\t}", "@Ignore(\"QuantityEvent query\")\r\n @Test\r\n public void testStoreInventory() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:idpat:sgtin:0614141.107340.*\";\r\n XmlQuantityEventType event = dbHelper.getQuantityEventByEpcClass(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(STORE_INVENTORY_XML);\r\n\r\n event = dbHelper.getQuantityEventByEpcClass(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }", "@Test\r\n public void testUpdateChocolateInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"5\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 15\\nChocolate: 20\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "@Test(expected=InvalidItemException.class)\n\tpublic void testInvalidItems() throws Exception {\n\t\tfor (int i = 0; i >= -10; i--) {\n\t\t\td.dispense(50, i);\n\t\t}\n\t}", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testRemoveItem_empty_slot() {\r\n\t\tvendMachine.removeItem(\"D\");\r\n\t}", "@Test\n\tpublic void testUseValidItem() {\n\t\tLightGrenade lightGrenade = new LightGrenade();\n\t\tSquare square = new Square();\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tplayer.addItem(lightGrenade);\n\t\t\n\t\tplayer.useItem(lightGrenade);\n\t\tassertFalse(player.hasItem(lightGrenade));\n\t}", "public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }", "public static int checkSlotsAvailable(Inventory inv) {\n ItemStack[] items = inv.getContents(); //Contents of player inventory\n int emptySlots = 0;\n\n for (ItemStack is : items) {\n if (is == null) {\n emptySlots = emptySlots + 1;\n }\n }\n\n return emptySlots;\n }", "@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// }\n// player.inventory.remove(item);\n// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));\n// channel.showcaseItems.add(showcaseReward.getId());\n// player.send(new SendMessage(\"Inside the box you found \" + showcaseReward.getName() + \"! Showcase size: \" + channel.showcaseItems.size() + \"/28\", SendMessage.MessageColor.DARK_PURPLE));\n// return true;\n\t}", "public void dailyInventoryCheck(){\n\n\t\tint i;\n\t\tStock tempStock, tempRestockTracker;\n\t\tint listSizeInventory = this.inventory.size();\n\t\tfor(i = 0; i < listSizeInventory; i++){\n\n\t\t\t\tif(this.inventory.get(i).getStock() == 0){\n\t\t\t\t\t//If stock is 0 add 1 to the out of stock counnter then reset it to the inventory level\n\t\t\t\t\tthis.inventory.get(i).setStock(inventoryLevel);\n\t\t\t\t\tthis.inventoryOrdersDone.get(i).addStock(1);\n\t\t\t\t\t//inventoryOrdersDone.set(i,tempRestockTracker);\n\t\t\t\t\t//tempStock.setStock(inventoryLevel);\n\t\t\t\t\t//this.inventory.set(i,tempStock);\n\t\t\t\t}\n\t\t\t}\n\n\t}", "@Override\n\tpublic boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {\n\t\treturn true;\n\t}", "boolean useItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n String nameOfItem = \"\";\n String useItem = \"debug\";\n\n while (iterator.hasNext()) {\n HashMap.Entry liste = (HashMap.Entry) iterator.next();\n String itemName = (String) liste.getKey();\n if (itemName.equalsIgnoreCase(command.getSecondWord())) {\n useItem = itemName;\n nameOfItem = itemName;\n break;\n }\n }\n if (!nameOfItem.equals(\"\") && inventory.getUseable(nameOfItem)) {\n\n System.out.println(\"You have dropped: \" + nameOfItem);\n inventory.removeItemInventory(nameOfItem);\n player.setEnergy(player.getEnergy() + 20);\n player.setHealth(player.getHealth() + 5);\n\n return true;\n }\n return false;\n }", "public void stateForUnavailableItems_InMiniCart() {\n int count = 0;\n List<WebElement> itemInMiniCart = getDriver().findElements(By.xpath(\"//*[@id='itemList']//li\"));\n for (WebElement unavailable : itemInMiniCart) {\n if (count != itemInMiniCart.size()) {\n if (!String.valueOf(unavailable.getAttribute(\"class\")).contains(\"outofstock\")) {\n continue;\n }\n count++;\n System.out.println(\"unavailable ===>> \" + String.valueOf(unavailable.findElement(By.xpath(\"//*[@class='productNameInner']\")).getText()));\n WebElement childQtyStepper = unavailable.findElement(By.xpath(\".//*[@class='mjr-qtyButton plus noSelect']\"));\n Assert.assertFalse(\"Verify Qty Stepper NOT displayed for Unavailable Product via Mini-Cart\", (childQtyStepper.isDisplayed()));\n }\n }\n System.out.println(\"=== Total Number of Products [\" + itemInMiniCart.size() + \"]\");\n System.out.println(\"=== Number of Unavailable Products In Mini-Cart [\" + count + \"]\");\n Assert.assertEquals(\"Verify there is at least one (1) unavailable product \", 1, count);\n }", "public Item checkForItem(String name) {\r\n Item output = null;\r\n for (Item item : inventory) {\r\n String check = item.getName().replaceAll(\" \", \"\");\r\n if (name.equals(check.toLowerCase())) {\r\n output = item;\r\n }\r\n }\r\n for (Item item : potionInventory) {\r\n String check = item.getName().replaceAll(\" \", \"\");\r\n if (name.equals(check.toLowerCase())) {\r\n output = item;\r\n }\r\n }\r\n return output;\r\n }", "public boolean isItemValid(ItemStack par1ItemStack)\n/* 23: */ {\n/* 24:20 */ if (isItemTwoHanded(par1ItemStack)) {\n/* 25:21 */ return false;\n/* 26: */ }\n/* 27:23 */ if ((this.rightHand.getHasStack()) && \n/* 28:24 */ (isItemTwoHanded(this.rightHand.getStack()))) {\n/* 29:25 */ return false;\n/* 30: */ }\n/* 31:27 */ return super.isItemValid(par1ItemStack);\n/* 32: */ }", "public static boolean isValidInventory(final ItemStack[] inventory) {\n if (inventory == null) {\n return false;\n }\n if (inventory.length < 1) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testInventoryNotEnoughSugar() {\n\t\tcoffeeMaker.addRecipe(recipe8);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "@Test\r\n\tpublic void testAddItem_not_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tassertEquals(test, vendMachine.getItem(\"A\"));\r\n\t}", "String getNeedsInventoryIssuance();", "public boolean updateQuantity(Scanner scanner, boolean buyOrSell){\n if(inventory[0]==null){\n System.out.println(\"Error...could not buy item\");\n return false;\n }\n FoodItem foodItem = new FoodItem();\n boolean valid = false;\n int sellQuantity = 0;\n foodItem.inputCode(scanner);\n int var = alreadyExists(foodItem);\n System.out.println(var);\n if(buyOrSell){\n if(var == -1) {\n System.out.println(\"Error...could not buy item\");\n return false;\n }\n } else{\n if(var == -1) {\n System.out.println(\"Error...could not sell item\");\n return false;\n }\n }\n\n do{\n try {\n if(buyOrSell){\n System.out.print(\"Enter valid quantity to buy: \");\n }else{\n System.out.print(\"Enter valid quantity to sell: \");\n }\n sellQuantity = scanner.nextInt();\n System.out.println(sellQuantity);\n valid = true;\n } catch (InputMismatchException e) {\n System.out.println(\"Invalid entry\");\n scanner.next();\n }\n }while(!valid);\n if(buyOrSell){\n if(sellQuantity > inventory[var].itemQuantityInStock){\n System.out.println(\"Error...could not buy item\");\n return false;\n }else {\n inventory[var].updateItem(sellQuantity);\n }\n }else{\n if(sellQuantity > inventory[var].itemQuantityInStock){\n System.out.println(\"Error...could not sell item\");\n return false;\n }else{\n inventory[var].updateItem(-sellQuantity);\n }\n }\n return true;\n }", "public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void validateInventoryType(final boolean mineral, final InventoryType inventoryType) {\n\t\tif (inventoryType.isMineral() != mineral) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"The type with id %d is a %s but needed a %s\", inventoryType.getTypeID(),\n\t\t\t\t\tmineral ? \"component\" : \"mineral\", mineral ? \"mineral\" : \"component\"));\n\t\t}\n\t}", "boolean hasOpenedInventory(Player player);", "private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}", "public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }", "public boolean isItemValid(ItemStack itemstack)\n {\n return itemstack.getItem() == Items.water_bucket;\n }", "@Given(\"^I launched Math Inventory$\")\n\tpublic void i_launched_Math_Inventory() throws Throwable {\n\t throw new PendingException();\n\t}", "public void checkInventoryClose(Player player) {\r\n\r\n //Get access from list\r\n ContainerAccess access = null;\r\n for (ContainerAccess acc : accessList) {\r\n if (acc.player == player) {\r\n access = acc;\r\n }\r\n }\r\n\r\n //If no access, return\r\n if (access == null) {\r\n return;\r\n }\r\n\r\n //Get current inventory, create diff string and add the database\r\n HashMap<String, Integer> after = InventoryUtil.compressInventory(access.container.getInventory().getContents());\r\n String diff = InventoryUtil.createDifferenceString(access.beforeInv, after);\r\n if (diff.length() > 1) {\r\n DataManager.addEntry(new ContainerEntry(player, access.loc, diff));\r\n }\r\n accessList.remove(access);\r\n\r\n }", "public boolean takeItem(Items item)\n { \n boolean itemTaken = false;\n if(!haveItem(item) && currentRoom.haveItem(item)){ //if item in room not inventory\n if(!item.canBeHeld()){ // if item can't be held\n System.out.println (\"This item can not be picked up\");\n }else if(itemsHeld >= itemLimit) { //item can be held but not enough space\n System.out.println(\"Inventory is full. Drop something first\");\n }else{ //item can be held and there is space in inventory\n Inventory.put(item.getName(), item);\n //currentRoom.removeItem(item); //responsibility for this is in cmd_take\n itemsHeld ++; //inventory tracker +1\n itemTaken = true;\n }\n }\n return itemTaken;\n }", "public void extendedErrorCheck(int station) throws JposException {\r\n boolean[][] relevantconditions = new boolean[][]{\r\n new boolean[]{Data.JrnEmpty, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.RecEmpty, Data.RecCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.RecCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.RecCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.SlpEmpty, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_CLEANING }\r\n };\r\n int[][] exterrors = new int[][]{\r\n new int[]{POSPrinterConst.JPOS_EPTR_JRN_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_REC_EMPTY, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_REC_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_SLP_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_HEAD_CLEANING},\r\n };\r\n String[] errortexts = { \"Paper empty\", \"Cartridge removed\", \"Cartridge empty\", \"Head cleaning\" };\r\n Device.check(Data.PowerNotify == JposConst.JPOS_PN_ENABLED && Data.PowerState != JposConst.JPOS_PS_ONLINE, JposConst.JPOS_E_FAILURE, \"POSPrinter not reachable\");\r\n Device.checkext(Data.CoverOpen, POSPrinterConst.JPOS_EPTR_COVER_OPEN, \"Cover open\");\r\n for (int j = 0; j < relevantconditions.length; j++) {\r\n if (station == SingleStations[j]) {\r\n for (int k = 0; k < relevantconditions[j].length; k++) {\r\n Device.checkext(relevantconditions[j][k], exterrors[j][k], errortexts[k]);\r\n }\r\n }\r\n }\r\n }", "public void sellHardwareDevice()\n {\n try\n {\n Integer equipmentNum=Integer.parseInt(sellEquipmentNumtxt.getText());\n String cusName=sellCustomertxt.getText();\n String dateOfSell=dateOfSelltxt.getText();\n \n if((equipmentNum>equipment.size() || equipmentNum<0))\n {\n JOptionPane.showMessageDialog(frame, \"Invalid number\", \"Title\", JOptionPane.ERROR_MESSAGE);\n }\n else\n {\n HardwareDeviceToSell sell=(HardwareDeviceToSell) equipment.get(equipmentNum);\n sell.sellHardwareDevice(cusName, dateOfSell);\n JOptionPane.showMessageDialog(frame, \"Device successfully sold\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n } \n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, \"Error\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n catch(ClassCastException aEx)\n {\n JOptionPane.showMessageDialog(frame, \"Device successfully sold\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "@Test\n\tpublic void testGetNumberOfItemsInInventory() throws IOException{\n\t\tassertEquals(amount, Model.getNumberOfItemsInInventory(item));\n\t}", "public boolean checkExist(String itemName, int Qty) {\n\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> newItem = new HashMap<>();\n newItem = inventory.get(i);\n if (itemName.equals(newItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) newItem.get(\"Amount\"));\n //isInList = true;\n if (a >= Qty) {\n isExist = true;\n break;\n } else {\n isExist = false;\n }\n } else {\n isExist = false;\n }\n\n }\n return isExist;\n\n }", "@Override\n\tpublic boolean isItemValidForSlot(int index, ItemStack stack) {\n\t\treturn super.isValid();\n\t}", "@Override\n\tpublic boolean isItemValidForSlot(int i, ItemStack itemstack) {\n\t\treturn false;\n\t}", "public void eatItem(Command command) {\n if (!command.hasSecondWord()) { // check if there's a second word\n System.out.println(\"Eat what?\");\n return;\n }\n String itemToBeEaten = command.getSecondWord();\n List<Item> playerInventory = player.getPlayerInventory(); // load the inventory of the player\n\n boolean somethingToUse = false;\n int notThisItem = 0;\n int loop;\n\n for (loop = 0; loop < playerInventory.size(); loop++) { // loop through the player inventory\n Item currentItem = playerInventory.get(loop); // set currentitem on the item that is currently in the loop\n if (itemToBeEaten.equals(currentItem.getItemName()) ){ // get the item name, then check if that matches the secondWord\n if (currentItem.getItemCategory().equals(\"food\")){ // check if the item used is an item in the \"food\" category\n if((player.getHealth())<(20)) { // check if the player's health is full\n player.addHealth(currentItem.getHealAmount()); // heal the player\n player.removeItemFromInventory(currentItem); // remove item from inventory\n System.out.println(\"You eat the \" + itemToBeEaten + \". It heals for \" + currentItem.getHealAmount()+\".\");\n } else { // the player's health is full\n System.out.println(\"Your are at full health!\");\n }\n } else { // item is not a food item\n System.out.println(\"You can't eat that item!\");\n }\n } else { // the item did not match the player provided name\n notThisItem++;\n }\n somethingToUse = true;\n }\n\n //errors afvangen\n if (!somethingToUse) { // the item is not found in the player inventory\n System.out.println(\"You can't eat that!\");\n }\n\n if (loop == notThisItem) { // the player has nothing to burn secondWord with\n //ThisItem is the same amount as loop. Then the player put something in that is not in the room\n System.out.println(\"You cannot eat \" + itemToBeEaten + \" because you don't have it in your inventory!\");\n }\n }", "public String getDescription() {return \"Use an item in your inventory\"; }", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "public void handleCrafting() {\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !input.getStackInSlot(0).isEmpty() && !input.getStackInSlot(1).isEmpty()) {\n isRecipeInvalid = true;\n }\n // Handles two compatible items\n else if(input.getStackInSlot(0).getMaxDamage() > 1 && input.getStackInSlot(0).getMaxStackSize() == 1 && input.getStackInSlot(0).getItem() == input.getStackInSlot(1).getItem()) {\n isRecipeInvalid = false;\n ItemStack stack = input.getStackInSlot(0);\n int sum = (stack.getMaxDamage() - stack.getItemDamage()) + (stack.getMaxDamage() - input.getStackInSlot(1).getItemDamage());\n\n sum = sum + (int)(sum * 0.2);\n if(sum > stack.getMaxDamage()) {\n sum = stack.getMaxDamage();\n }\n\n output.setStackInSlot(0, new ItemStack(stack.getItem(), 1, stack.getMaxDamage() - sum));\n }\n // Resets the grid when the two items are incompatible\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !output.getStackInSlot(0).isEmpty()) {\n output.setStackInSlot(0, ItemStack.EMPTY);\n }\n }", "public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "protected void checkTakeAchievements(ItemStack debug1) {}", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "public void onQueryInventoryFinished(IabResult result, Inventory inventory) {\n if (mHelper == null) return;\n\n // Is it a failure?\n if (result.isFailure()) {\n complain(\"Failed to query inventory: \" + result);\n return;\n }\n\n /*\n * Check for items we own. Notice that for each purchase, we check\n * the developer payload to see if it's correct! See\n * verifyDeveloperPayload().\n */\n\n\n\n Purchase gasPurchase = inventory.getPurchase(\"plays20\");\n if (gasPurchase != null && gasPurchase.getDeveloperPayload().equals(\"add more plays\")){\n mHelper.consumeAsync(inventory.getPurchase(\"plays20\"), mConsumeFinishedListener);\n return;\n }\n gasPurchase = inventory.getPurchase(\"plays50\");\n if (gasPurchase != null && gasPurchase.getDeveloperPayload().equals(\"add more plays\")){\n mHelper.consumeAsync(inventory.getPurchase(\"plays50\"), mConsumeFinishedListener);\n return;\n }\n gasPurchase = inventory.getPurchase(\"plays200\");\n if (gasPurchase != null && gasPurchase.getDeveloperPayload().equals(\"add more plays\")){\n mHelper.consumeAsync(inventory.getPurchase(\"plays200\"), mConsumeFinishedListener);\n return;\n }\n gasPurchase = inventory.getPurchase(\"plays500\");\n if (gasPurchase != null && gasPurchase.getDeveloperPayload().equals(\"add more plays\")){\n mHelper.consumeAsync(inventory.getPurchase(\"plays500\"), mConsumeFinishedListener);\n return;\n }\n gasPurchase = inventory.getPurchase(\"plays1000\");\n if (gasPurchase != null && gasPurchase.getDeveloperPayload().equals(\"add more plays\")){\n mHelper.consumeAsync(inventory.getPurchase(\"plays1000\"), mConsumeFinishedListener);\n return;\n }\n }", "@Test\n\tpublic void testInventoryNotEnoughCoffee() {\n\t\tcoffeeMaker.addRecipe(recipe6);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "public void corruptedFileErrorMessage() {\n System.out.println(\"The file (\" + INVENTORY_FILE_PATH + \") is corrupted!\\n\"\n + \"Please exit the program and delete the corrupted file before trying to access Inventory Menu!\");\n }", "private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }" ]
[ "0.66183436", "0.6562957", "0.6524187", "0.6461702", "0.6422424", "0.64167696", "0.6388838", "0.63489336", "0.6309897", "0.6274639", "0.62673134", "0.6242834", "0.6233295", "0.62041736", "0.6203367", "0.6202986", "0.62011766", "0.61985964", "0.6177543", "0.61762756", "0.61746544", "0.6168043", "0.61555046", "0.6141214", "0.61142576", "0.6111238", "0.6091063", "0.60879326", "0.6080648", "0.60638416", "0.60261196", "0.6025795", "0.6015729", "0.6014115", "0.5988822", "0.59814644", "0.59761536", "0.5963482", "0.59258527", "0.592229", "0.5914829", "0.5910931", "0.58893216", "0.5864629", "0.58644146", "0.5847973", "0.5812935", "0.58068293", "0.5794201", "0.5792986", "0.57854074", "0.5780912", "0.57808083", "0.57748055", "0.57721364", "0.5766576", "0.5766343", "0.5760373", "0.5756251", "0.5755037", "0.57454216", "0.5743228", "0.5735987", "0.57260233", "0.5725236", "0.57225585", "0.5715277", "0.57016116", "0.5699791", "0.56990045", "0.56928563", "0.5680421", "0.56736875", "0.56707746", "0.5650979", "0.5648776", "0.5646079", "0.5644198", "0.5636756", "0.5630166", "0.56284374", "0.56195104", "0.5609395", "0.56090033", "0.5605157", "0.5600183", "0.55976045", "0.5591201", "0.55877924", "0.55870867", "0.5575862", "0.5572662", "0.55671567", "0.5564789", "0.55633837", "0.5561484", "0.55558634", "0.5552186", "0.55408275", "0.55398667" ]
0.5874963
43
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { //Populating current part data currPart = MainController.getPartModify(); if (currPart instanceof InHousePart) { inHouseRBtn.setSelected(true); partIDLabel.setText("Machine ID"); partIDTxt.setText(String.valueOf(((InHousePart) currPart).getMachineId())); } if (currPart instanceof OutsourcedPart){ outsourcedRBtn.setSelected(true); partIDLabel.setText("Company Name"); partIDTxt.setText(((OutsourcedPart) currPart).getCompanyName()); } autoIDTxt.setText(String.valueOf(currPart.getId())); partNameTxt.setText(currPart.getName()); partInvTxt.setText(String.valueOf(currPart.getStock())); partPriceTxt.setText(String.valueOf(currPart.getPrice())); maxInvTxt.setText(String.valueOf(currPart.getMax())); minInvTxt.setText(String.valueOf(currPart.getMin())); errorLabel.setVisible(false); errorTxtLabel.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public MapController() {\r\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "public WorkerController(){\r\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8126442", "0.78539085", "0.7832836", "0.77623755", "0.77623755", "0.76012474", "0.74504834", "0.7437387", "0.7431329", "0.74233705", "0.7406829", "0.7342683", "0.7329348", "0.72642463", "0.7223624", "0.7101346", "0.7058293", "0.6987611", "0.697182", "0.6943626", "0.69122165", "0.6888371", "0.68798083", "0.68793654", "0.68729013", "0.68672144", "0.68671244", "0.6850885", "0.6846919", "0.68397343", "0.6837595", "0.68333036", "0.67969817", "0.6782468", "0.67667216", "0.67645586", "0.6750096", "0.6748695", "0.6744897", "0.6743362", "0.67401564", "0.6728062", "0.67243963", "0.6697463", "0.668971", "0.66884416", "0.6681328", "0.6678264", "0.66650236", "0.66640395", "0.66612506", "0.66533035", "0.66489184", "0.6646337", "0.6639123", "0.6632608", "0.6631185", "0.6627817", "0.6624544", "0.6610567", "0.6605565", "0.66027856", "0.6598283", "0.65813047", "0.6579163", "0.6576047", "0.65744185", "0.6551466", "0.6551001", "0.6547289", "0.6546178", "0.6541605", "0.6528732", "0.6528491", "0.65277237", "0.6523244", "0.65194416", "0.6513512", "0.6509827", "0.6498208", "0.64948505", "0.64934474", "0.6492267", "0.648407", "0.64838904", "0.64821756", "0.64787185", "0.6478498", "0.6477243", "0.6471596", "0.64651674", "0.64609027", "0.64442694", "0.6436732", "0.64321035", "0.6428795", "0.6425759", "0.64167184", "0.6416357", "0.6415472", "0.6415472" ]
0.0
-1
Create a new parser.
public CanonicalTreeParser() { // Nothing necessary. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parse createParse();", "protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }", "public Parser() {}", "private Parser () { }", "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}", "public abstract ArgumentParser makeParser();", "public Parser()\n {\n //nothing to do\n }", "@Override\n public ViolationsParser createParser() {\n return new JsLintParser();\n }", "abstract protected Parser createSACParser();", "public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "private PLPParser makeParser(String input) throws LexicalException {\n\t\t\tshow(input); //Display the input \n\t\t\tPLPScanner scanner = new PLPScanner(input).scan(); //Create a Scanner and initialize it\n\t\t\tshow(scanner); //Display the Scanner\n\t\t\tPLPParser parser = new PLPParser(scanner);\n\t\t\treturn parser;\n\t\t}", "private TraceParser genParser() throws ParseException {\n TraceParser parser = new TraceParser();\n parser.addRegex(\"^(?<VTIME>)(?<TYPE>)$\");\n parser.addPartitionsSeparator(\"^--$\");\n return parser;\n }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "public JsonParser createParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 755 */ IOContext ctxt = _createContext(f, true);\n/* 756 */ InputStream in = new FileInputStream(f);\n/* 757 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public JsonParser createParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 829 */ IOContext ctxt = _createContext(r, false);\n/* 830 */ return _createParser(_decorate(r, ctxt), ctxt);\n/* */ }", "public Parser()\n{\n //nothing to do\n}", "public OptionParser() {\n\n\t}", "public Parser() {\n\t\tpopulateMaps();\n\t}", "public OnionooParser() {\n\n\t}", "CParser getParser();", "public SimpleHtmlParser createNewParserFromHereToText(String text) throws ParseException {\n return new SimpleHtmlParser(getStringToTextAndSkip(text));\n }", "public JsonParser createParser(URL url)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 782 */ IOContext ctxt = _createContext(url, true);\n/* 783 */ InputStream in = _optimizedStreamFromURL(url);\n/* 784 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public static Parser getInstance(Context ctx){\n if(instance == null){\n instance = new Parser(ctx);\n }\n return instance;\n }", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "private static Parser<Grammar> makeParser(final File grammar) {\n try {\n\n return Parser.compile(grammar, Grammar.ROOT);\n\n // translate these checked exceptions into unchecked\n // RuntimeExceptions,\n // because these failures indicate internal bugs rather than client\n // errors\n } catch (IOException e) {\n throw new RuntimeException(\"can't read the grammar file\", e);\n } catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"the grammar has a syntax error\", e);\n }\n }", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "public StringParseable getParser(String input) {\n\t\treturn new XMLStringParser(input);\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public JsonParser createParser(char[] content, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 908 */ if (this._inputDecorator != null) {\n/* 909 */ return createParser(new CharArrayReader(content, offset, len));\n/* */ }\n/* 911 */ return _createParser(content, offset, len, _createContext(content, true), false);\n/* */ }", "public SAXParser createSaxParser() {\n \n System.err.println(\"Create new sax parser\");\n\n SAXParser saxParser = null;\n\n SAXParserFactory saxFactory = SAXParserFactory.newInstance();\n\n try {\n saxFactory.setValidating(true);\n saxFactory.setNamespaceAware(true);\n saxFactory.setFeature(SAX_NAMESPACES_PREFIXES, true);\n saxFactory.setFeature(SAX_VALIDATION, true);\n saxFactory.setFeature(SAX_VALIDATION_DYNAMIC, true);\n saxFactory.setFeature(FEATURES_VALIDATION_SCHEMA, true);\n saxFactory.setFeature(PROPERTIES_LOAD_EXT_DTD, true);\n //saxFactory.setFeature(Namespaces.SAX_NAMESPACES_PREFIXES, true);\n\n saxParser = saxFactory.newSAXParser();\n \n setupSaxParser(saxParser);\n\n } catch (Exception e) {\n // ignore: feature only recognized by xerces\n e.printStackTrace();\n }\n\n return saxParser;\n }", "public parser(Scanner s) {super(s);}", "public StringParser() {\n this(ParserOptions.DEFAULT);\n }", "public static JavaParser getParser(final CharStream stream) {\n final JavaLexer lexer = new JavaLexer(stream);\n final CommonTokenStream in = new CommonTokenStream(lexer);\n return new JavaParser(in);\n }", "public static Parser getInstance() {\n\t\tif (theOne == null) {\n\t\t\ttheOne = new Parser();\n\t\t}\n\t\treturn theOne;\n\t}", "public DOMParser() { ; }", "@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(Tokenizer tokenizer) {\n this.tokenizer = tokenizer;\n }", "public SmartScriptParser(String text) {\n lexer = new SmartScriptLexer(text);\n documentNode = new DocumentNode();\n stack = new ObjectStack();\n parse();\n\n}", "public ParseOptions() {}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public interface ClassParserFactory {\n\n ClassParser createParser(Class<?> clazz);\n}", "public NameParser()\n {\n this(null);\n }", "void setParser(CParser parser);", "public JsonParser createParser(byte[] data)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 840 */ IOContext ctxt = _createContext(data, true);\n/* 841 */ if (this._inputDecorator != null) {\n/* 842 */ InputStream in = this._inputDecorator.decorate(ctxt, data, 0, data.length);\n/* 843 */ if (in != null) {\n/* 844 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 847 */ return _createParser(data, 0, data.length, ctxt);\n/* */ }", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "protected Parser getParser() throws TemplateException {\n try {\n return (Parser) _broker.getValue(\"parser\",\"wm\"); \n } catch (Exception e) {\n Engine.log.exception(e);\n throw new TemplateException(\"Could not load parser type \\\"\" + \n _parserName + \"\\\": \" + e);\n }\n }", "private TwigcsResultParser getParser() {\n\t\tif (parser == null) {\n\t\t\tparser = new TwigcsResultParser();\n\t\t}\n\t\treturn parser;\n\t}", "public Programa(ProgramaTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 2; i++) jj_la1[i] = -1;\n }", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public JsonParser createParser(byte[] data, int offset, int len)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 861 */ IOContext ctxt = _createContext(data, true);\n/* */ \n/* 863 */ if (this._inputDecorator != null) {\n/* 864 */ InputStream in = this._inputDecorator.decorate(ctxt, data, offset, len);\n/* 865 */ if (in != null) {\n/* 866 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 869 */ return _createParser(data, offset, len, ctxt);\n/* */ }", "public Program parse() throws SyntaxException {\n\t\tProgram p = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}", "Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "public parser(Scanner s, SymbolFactory sf) {super(s,sf);}", "public ModemPMParser()\n\t{\n\t\tsuper();\n\t}", "public interface IParser {\n\n /**\n * Coco/R generated function. It is used to inform parser about semantic errors.\n */\n void SemErr(String str);\n\n /**\n * Coco/R generated function for parsing input. The signature was changes in parsers' frame files so that it\n * receives source argument.\n *\n * @param source source to be parsed\n */\n void Parse(Source source);\n\n /**\n * Resets the parser but not the {@link NodeFactory} instance it holds. This way it can be used multiple times with\n * storing current state (mainly identifiers table). This is useful for parsing unit files before parsing the actual\n * source.\n */\n void reset();\n\n /**\n * Returns whether there were any errors throughout the parsing of the last source.\n */\n boolean hadErrors();\n\n /**\n * Sets support for extended goto. If this option is turned on, the parser will generate {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.ExtendedBlockNode}s\n * instead of {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.BlockNode}s.\n */\n void setExtendedGoto(boolean extendedGoto);\n\n /**\n * Returns true if the support for Turbo Pascal extensions is turned on.\n */\n boolean isUsingTPExtension();\n\n /**\n * Reutnrs the root node of the last parsed source.\n */\n RootNode getRootNode();\n\n}", "protected Parser getParser() {\n\t\treturn myParser;\n\t}", "Object create(String uri) throws IOException, SAXException, ParserConfigurationException;", "public static Parser getInstance() {\n return instance;\n }", "public OpenOfficeXMLDocumentParser() {\r\n }", "public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }", "public void initParser() {;\r\n lp = DependencyParser.loadFromModelFile(\"edu/stanford/nlp/models/parser/nndep/english_SD.gz\");\r\n tokenizerFactory = PTBTokenizer\r\n .factory(new CoreLabelTokenFactory(), \"\");\r\n }", "Program parse() throws SyntaxException {\n\t\tProgram p = null;\n\t\tp = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "protected StreamParser()\n {\n }", "public static PackerFileParser get() {\r\n\t\tif(parser==null) {\r\n\t\t\tIterator<PackerFileParser> packerFileParseIterator = \r\n\t\t\t\t\tServiceLoader.load(PackerFileParser.class).iterator();\r\n\t\t\t\r\n\t\t\tif(packerFileParseIterator.hasNext()) {\r\n\t\t\t\tparser = packerFileParseIterator.next();\r\n\t\t\t} else {\r\n\t\t\t\tparser = new PackerFileParserImpl();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn parser;\r\n\t}", "public Parser(ParserTokenManager tm) {\r\n token_source = tm;\r\n token = new Token();\r\n jj_ntk = -1;\r\n }", "private Parser[] getParsers() {\n return new Parser[]{new OpenDocumentParser()};\n }", "private SAXParser getSAXParser() {\n\t SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();\n\t if (saxParserFactory == null) {\n\t return null;\n\t }\n\t SAXParser saxParser = null;\n\t try {\n\t saxParser = saxParserFactory.newSAXParser();\n\t } catch (Exception e) {\n\t }\n\t return saxParser;\n\t }", "protected JsonParser _createParser(Reader r, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1288 */ return new ReaderBasedJsonParser(ctxt, this._parserFeatures, r, this._objectCodec, this._rootCharSymbols.makeChild(this._factoryFeatures));\n/* */ }", "Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "public AstParser(AstParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }" ]
[ "0.75968355", "0.75110704", "0.73454195", "0.684797", "0.6834958", "0.6797947", "0.67285085", "0.67096055", "0.67084944", "0.66682047", "0.6611366", "0.66019887", "0.65578985", "0.64476126", "0.6429837", "0.64081866", "0.63997304", "0.6387937", "0.6350413", "0.63393945", "0.62595326", "0.6254964", "0.62546235", "0.61997586", "0.6199753", "0.619953", "0.6175279", "0.615679", "0.61001754", "0.60968655", "0.6049948", "0.6037807", "0.6026577", "0.60081184", "0.59671926", "0.5960588", "0.59529865", "0.5926475", "0.5921476", "0.5921476", "0.5921476", "0.5921476", "0.5921476", "0.5921476", "0.59078425", "0.5884272", "0.5870975", "0.58601904", "0.58601904", "0.58601904", "0.58601904", "0.58601904", "0.58601904", "0.58601904", "0.58601904", "0.58323514", "0.582804", "0.5823777", "0.5818848", "0.580182", "0.580182", "0.580182", "0.580182", "0.580182", "0.580182", "0.580182", "0.57974666", "0.57887346", "0.5741922", "0.5717698", "0.5717698", "0.5717698", "0.5717698", "0.5717698", "0.5717698", "0.5717698", "0.5717698", "0.5717698", "0.570473", "0.5694685", "0.5693137", "0.5692572", "0.5682761", "0.56634665", "0.5649776", "0.5627162", "0.55930275", "0.5592612", "0.5573562", "0.5565346", "0.555616", "0.5556111", "0.55538666", "0.55235153", "0.55192786", "0.55151194", "0.55144817", "0.55127335", "0.5512068", "0.5502225", "0.54995656" ]
0.0
-1
Reset this parser to walk through the given tree data.
public void reset(final byte[] treeData) { raw = treeData; rawPtr = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}", "@Generated(hash = 1311440767)\r\n public synchronized void resetTrees() {\r\n trees = null;\r\n }", "public void reset() {\r\n\t\tfor (int i = 0; i < trees.length; i++)\r\n\t\t\ttrees[i] = new GameTree(i);\r\n\t\tprepare();\r\n\t}", "public void reset() {\n m_nestingDepth = 0;\n m_namespaceDepth = -1;\n m_namespaceStack.clear();\n m_prefixes = new String[m_uris.length];\n m_prefixes[0] = \"\";\n m_prefixes[1] = \"xml\";\n m_extensionUris = null;\n m_extensionPrefixes = null;\n m_translateTable = null;\n m_translateTableStack.clear();\n }", "void resetState() {\n\t\t// Reinitialize parser if parsetable changed (due to .meta file)\n\t\tif (getParseTable() != parser.getParseTable()) {\n\t\t\tparser = Environment.createSGLR(getParseTable());\n\t\t}\n\t\tparser.setTimeout(timeout);\n\t\tif (disambiguator != null) parser.setDisambiguator(disambiguator);\n\t\telse disambiguator = parser.getDisambiguator();\n\t\tsetUseRecovery(useRecovery);\n\t\tif (!isImplodeEnabled()) {\n\t\t\tparser.setTreeBuilder(new Asfix2TreeBuilder(Environment.getTermFactory()));\n\t\t} else {\n\t\t\tassert parser.getTreeBuilder() instanceof TreeBuilder;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tITreeFactory<IStrategoTerm> treeFactory = ((TreeBuilder) parser.getTreeBuilder()).getFactory();\n\t\t\tassert ((TermTreeFactory) treeFactory).getOriginalTermFactory()\n\t\t\t\tinstanceof ParentTermFactory;\n\t\t\tif (incrementalParser == null || incrementalParser.getParser().getParseTable() != parser.getParseTable())\n\t\t\t\tincrementalParser = new IncrementalSGLR<IStrategoTerm>(parser, null, treeFactory, IncrementalSortSet.read(getParseTable()));\n\t\t}\n\t}", "void resetTreeForQueries() {\n\t\t_queryTree = new Tree(_tree);\n\t\tif(DEBUG) {\n\t\t\tSystem.out.printf(\"\\nquery tree structure:\\n%s\\n\",_queryTree.getLongInfo());\n\t\t}\n\t}", "public void reset() {\r\n\t\tnextTokenPos = 0;\r\n\t}", "public void resetParents() {\r\n }", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void resetVisited() {\r\n\t\tvisited = false;\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tif (!visited)\r\n\t\t\t\tcontinue;\r\n\t\t\tchild.resetVisited();\r\n\t\t}\r\n\t}", "protected void reset() {\n\t\t}", "private void reset() {\n\t\tdata.clear();\n\t}", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}", "@Override\n public void clearAst() {\n this.root = null;\n }", "public void reset() {\n\t\treset(false);\n\t\tGraphvizUtils.setDotExecutable(null);\n\t}", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void setTree(E rootData) {\n root = new TernaryNode<>(rootData);\n }", "@Before\n public void setUp()\n {\n Parser.resetParser();\n }", "public void reset() {\n\n operator.reset(); // reset Scan Operator\n }", "public void reset()\n {\n myOffset = 0;\n amIInsideDoubleQuotes = false;\n amIInsideSingleQuotes = false;\n myCurrLexeme = null;\n }", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "@Override\n\tpublic void reset() { // ? will it ever be reset before sorting?\n\t\tif(TR == null) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tTR.reset();\n\t\t} catch(Exception e) {\n\t\t\tSystem.err.println(\"Exception occurred for resetting the TupleReader on: \" + tempsubdir);\n\t\t\tSystem.err.println(e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\r\n bop.reset();\r\n gzipOp = null;\r\n }", "@Override\n\tpublic void reset() {\n\t\tstack.clear();\n\t}", "public void reset() {\n\n\t}", "@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}", "private void reset() {\n }", "public void reset() {\n this.index = this.startIndex;\n }", "public void reset()\n\t{\n\t}", "public void reset()\n\t{\n\t}", "public void startDocument() {\n _root = null;\n _target = null;\n _prefixMapping = null;\n _parentStack = new Stack<>();\n }", "public void resetDFA() {\n currentState = State.START;\n }", "public synchronized void reset()\n\t{\n\t\tthis.snapshots.clear();\n\t\tthis.selfPositions.clear();\n\t}", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void reset() {\n for (Vertex v : vertices) {\n v.path = false;\n v.visited = false;\n }\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n }", "public void resetHandlers() {\r\n atRoot = true;\r\n path = \"/\";\r\n pathStack.clear();\r\n handlerStack.clear();\r\n handlers.clear();\r\n defaultHandler = null;\r\n }", "protected TreeIterator(Tree<T> tree) {\n\t\t\tsuper();\n\t\t\tthis.tree = tree;\n\t\t\tcursor = null;\n\t\t}", "public void clear()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "protected void reset() {\n writer.flush();\n stack.clear();\n context = new JsonContext(JsonContext.Mode.VALUE);\n }", "private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }", "public void resetAll() {\n reset(getAll());\n }", "@Override\n\tpublic void reset() {\n\t\tthis.prepare();\n\t\tsuper.reset();\n\t}", "public void reset() {\n reset(animateOnReset);\n }", "public void reset() {\r\n\t\tscopedContext = new NamedScopeEvaluationContext();\r\n\t\texpressionParser = new SpelExpressionParser();\r\n\t\t\r\n\t\t// init named contexts\r\n\t\tscopedContext.addContext(\"model\", model);\r\n\t}", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "public void clear() {\n tree.clear();\n }", "@Override\r\n\tpublic void reset() {\n\t}", "public synchronized void reset() {\n }", "public void reset() {\n super.reset();\n }", "public void reset() {\r\n reset(params);\r\n }", "public static void Reset() {\n\t\t\n\t\tArrayList<KDNode> root_buff = new ArrayList<KDNode>();\n\t\tfor(KDNode k : KDNode.RootSet()) {\n\t\t\troot_buff.add(k);\n\t\t}\n\t\t\n\t\troot_map.clear();\n\t\t\n\t\tfor(int i=0; i<root_buff.size(); i++) {\n\t\t\tKDNode ptr = root_buff.get(i);\n\t\t\t\n\t\t\tKDNode prev_ptr = ptr;\n\t\t\twhile(ptr != null) {\n\t\t\t\tptr.is_node_set = false;\n\t\t\t\tptr.space.sample_buff.clear();\n\t\t\t\tprev_ptr = ptr;\n\t\t\t\tptr = ptr.parent_ptr;\n\t\t\t}\n\t\t\t\n\t\t\troot_map.add(prev_ptr);\n\t\t}\n\t\t\n\t}", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "void reset()\n {\n reset(values);\n }", "public static void reset() {\n\t\tvxlFragment = new StringBuffer();\n\t\tpreprocessorList = new LinkedList<ASTNode>();\n\t}", "public void reset() {\n bb.clear();\n cb.clear();\n found = false;\n }", "@Override\n public void reset() \n {\n\n }", "public void reset() {\n\r\n\t}", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "@Override\n\tpublic void reset() {\n\t}", "public void reset() {\n context.reset();\n state = State.NAME;\n }", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void reset() {\n\n\t}", "public void resetConfiguration() {\n\t\tthis.hierarchy.resetConfiguration();\n\t}", "@Override\n public void reset() {\n }", "public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}", "public void reset() {\n\t\tthis.builder = new StringBuilder();\n\t}", "public void reset(Map<String, Object> options) {\n _seqBuilderIndex = 0;\n _seqBuilder = _getTopLevelBuilder(_seqBuilderIndex);\n _doReset(options);\n }", "public static void reset() {\n parentNameToBlockStubs.clear();\n parentNameToParentBlocks.clear();\n }", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "public void reset()\r\n\t{\r\n\t\tthis.num.clear();\r\n\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onStackReset();\r\n\t\t\r\n\t}", "public void reset()\n {\n Iterator i;\n\n i = params.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n\n i = options.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n }", "public final void Reset()\n\t{\n\t}", "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 }", "public void reset() {\n initEntries();\n }", "public void reset() {\n\t\tappTda_ = new ApplicationTda();\n\t\t\n\t\t// get the associated settings\n\t\tprocessData_ = appTda_.getSettings();\n\t}", "public void reset() {\n\tthis.contents = \"\";\n\tthis.isLegalMove = false;\n }", "public static void reset() {\n\t\tE_Location.THIS.reset();\n\t\tE_Resource.THIS.reset();\n\t\t\n\t\tT_Object.reset();\n\t\tT_Location.reset();\n\t\tT_Resource.reset();\n\t\t\n\t}", "public void reset () {}", "public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}", "public synchronized void reset() throws IOException {\n\t\t\tdata.seek(firstPosition);\n\t\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}" ]
[ "0.68515795", "0.67631924", "0.6748655", "0.66692865", "0.65503985", "0.6439507", "0.62816036", "0.60560685", "0.5988133", "0.59673387", "0.59299517", "0.58386725", "0.5836409", "0.582019", "0.5816157", "0.5791036", "0.5775967", "0.57449746", "0.57383835", "0.5705733", "0.5683424", "0.5680011", "0.56752795", "0.56741214", "0.56687254", "0.5653853", "0.56537277", "0.56410676", "0.5636191", "0.5636191", "0.5636191", "0.5636191", "0.56240165", "0.56079173", "0.56079173", "0.56079173", "0.56079173", "0.5597008", "0.5593854", "0.55905837", "0.5589923", "0.55824107", "0.5577679", "0.5574319", "0.5574319", "0.55731016", "0.5569172", "0.55564666", "0.5549288", "0.55473757", "0.5546881", "0.5546386", "0.5525014", "0.5514449", "0.5507669", "0.5507422", "0.55014265", "0.55013776", "0.55002946", "0.5489186", "0.5488555", "0.5487317", "0.5482692", "0.54817873", "0.5478438", "0.5477286", "0.5471386", "0.5471386", "0.5471386", "0.5471386", "0.547048", "0.5464701", "0.5460576", "0.54457873", "0.54451334", "0.54443496", "0.54398143", "0.5437661", "0.5425915", "0.5425915", "0.54187226", "0.54148155", "0.54089767", "0.54076713", "0.54046416", "0.5400832", "0.53993255", "0.53954995", "0.53949493", "0.53924036", "0.53786105", "0.5377968", "0.5371225", "0.5368329", "0.53661305", "0.5364052", "0.5363995", "0.5358142", "0.5356357", "0.5355927" ]
0.7253905
0
Reset this parser to walk through the given tree.
public void reset(final Repository repo, final ObjectId id) throws IncorrectObjectTypeException, IOException { final ObjectLoader ldr = repo.openObject(id); if (ldr == null) throw new MissingObjectException(id, Constants.TYPE_TREE); final byte[] subtreeData = ldr.getCachedBytes(); if (ldr.getType() != Constants.OBJ_TREE) throw new IncorrectObjectTypeException(id, Constants.TYPE_TREE); reset(subtreeData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "@Generated(hash = 1311440767)\r\n public synchronized void resetTrees() {\r\n trees = null;\r\n }", "public void reset() {\n m_nestingDepth = 0;\n m_namespaceDepth = -1;\n m_namespaceStack.clear();\n m_prefixes = new String[m_uris.length];\n m_prefixes[0] = \"\";\n m_prefixes[1] = \"xml\";\n m_extensionUris = null;\n m_extensionPrefixes = null;\n m_translateTable = null;\n m_translateTableStack.clear();\n }", "public void reset() {\r\n\t\tfor (int i = 0; i < trees.length; i++)\r\n\t\t\ttrees[i] = new GameTree(i);\r\n\t\tprepare();\r\n\t}", "void resetState() {\n\t\t// Reinitialize parser if parsetable changed (due to .meta file)\n\t\tif (getParseTable() != parser.getParseTable()) {\n\t\t\tparser = Environment.createSGLR(getParseTable());\n\t\t}\n\t\tparser.setTimeout(timeout);\n\t\tif (disambiguator != null) parser.setDisambiguator(disambiguator);\n\t\telse disambiguator = parser.getDisambiguator();\n\t\tsetUseRecovery(useRecovery);\n\t\tif (!isImplodeEnabled()) {\n\t\t\tparser.setTreeBuilder(new Asfix2TreeBuilder(Environment.getTermFactory()));\n\t\t} else {\n\t\t\tassert parser.getTreeBuilder() instanceof TreeBuilder;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tITreeFactory<IStrategoTerm> treeFactory = ((TreeBuilder) parser.getTreeBuilder()).getFactory();\n\t\t\tassert ((TermTreeFactory) treeFactory).getOriginalTermFactory()\n\t\t\t\tinstanceof ParentTermFactory;\n\t\t\tif (incrementalParser == null || incrementalParser.getParser().getParseTable() != parser.getParseTable())\n\t\t\t\tincrementalParser = new IncrementalSGLR<IStrategoTerm>(parser, null, treeFactory, IncrementalSortSet.read(getParseTable()));\n\t\t}\n\t}", "public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}", "public void reset(final byte[] treeData) {\n \t\traw = treeData;\n \t\trawPtr = 0;\n \t}", "public void resetVisited() {\r\n\t\tvisited = false;\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tif (!visited)\r\n\t\t\t\tcontinue;\r\n\t\t\tchild.resetVisited();\r\n\t\t}\r\n\t}", "void resetTreeForQueries() {\n\t\t_queryTree = new Tree(_tree);\n\t\tif(DEBUG) {\n\t\t\tSystem.out.printf(\"\\nquery tree structure:\\n%s\\n\",_queryTree.getLongInfo());\n\t\t}\n\t}", "public void reset() {\r\n\t\tnextTokenPos = 0;\r\n\t}", "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void resetParents() {\r\n }", "@Override\n public void clearAst() {\n this.root = null;\n }", "protected void reset() {\n\t\t}", "public void reset() {\n\t\treset(false);\n\t\tGraphvizUtils.setDotExecutable(null);\n\t}", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}", "public void reset() {\n reset(animateOnReset);\n }", "public void reset() {\r\n\t\tscopedContext = new NamedScopeEvaluationContext();\r\n\t\texpressionParser = new SpelExpressionParser();\r\n\t\t\r\n\t\t// init named contexts\r\n\t\tscopedContext.addContext(\"model\", model);\r\n\t}", "public void resetDFA() {\n currentState = State.START;\n }", "public void reset() {\n\n operator.reset(); // reset Scan Operator\n }", "@Override\n\tpublic void reset() {\n\t\tstack.clear();\n\t}", "@Before\n public void setUp()\n {\n Parser.resetParser();\n }", "protected TreeIterator(Tree<T> tree) {\n\t\t\tsuper();\n\t\t\tthis.tree = tree;\n\t\t\tcursor = null;\n\t\t}", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void resetHandlers() {\r\n atRoot = true;\r\n path = \"/\";\r\n pathStack.clear();\r\n handlerStack.clear();\r\n handlers.clear();\r\n defaultHandler = null;\r\n }", "@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}", "public void reset() {\n for (Vertex v : vertices) {\n v.path = false;\n v.visited = false;\n }\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n }", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "public void reset() {\n\n\t}", "public static void reset() {\n\t\tvxlFragment = new StringBuffer();\n\t\tpreprocessorList = new LinkedList<ASTNode>();\n\t}", "public void reset()\n\t{\n\t}", "public void reset()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "private void reset() {\n }", "public void reset() {\n this.index = this.startIndex;\n }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void startDocument() {\n _root = null;\n _target = null;\n _prefixMapping = null;\n _parentStack = new Stack<>();\n }", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "public void reset()\n {\n myOffset = 0;\n amIInsideDoubleQuotes = false;\n amIInsideSingleQuotes = false;\n myCurrLexeme = null;\n }", "public void reset(Map<String, Object> options) {\n _seqBuilderIndex = 0;\n _seqBuilder = _getTopLevelBuilder(_seqBuilderIndex);\n _doReset(options);\n }", "public void reset() {\n\t\tthis.builder = new StringBuilder();\n\t}", "@Override\r\n\tpublic void reset() {\n\t}", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "@Override\n\tpublic void reset() { // ? will it ever be reset before sorting?\n\t\tif(TR == null) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tTR.reset();\n\t\t} catch(Exception e) {\n\t\t\tSystem.err.println(\"Exception occurred for resetting the TupleReader on: \" + tempsubdir);\n\t\t\tSystem.err.println(e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public synchronized void reset() {\n }", "public void reset() {\r\n bop.reset();\r\n gzipOp = null;\r\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "public void reset() {\n super.reset();\n }", "protected void reset() {\n writer.flush();\n stack.clear();\n context = new JsonContext(JsonContext.Mode.VALUE);\n }", "public void reset() {\n context.reset();\n state = State.NAME;\n }", "public void clear() {\n tree.clear();\n }", "@Override\n\tpublic void reset() {\n\t}", "void reset() {\n this.pointer = 0;\n }", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "public synchronized void reset()\n\t{\n\t\tthis.snapshots.clear();\n\t\tthis.selfPositions.clear();\n\t}", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public void reset () {}", "protected abstract AnimationFX resetNode();", "@Override\n public void reset() {\n }", "public void reset() {\n\r\n\t}", "public void reset() {\n bb.clear();\n cb.clear();\n found = false;\n }", "@Override\n public void reset() \n {\n\n }", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "@Override\n\tpublic void reset() {\n\n\t}", "public void resetConfiguration() {\n\t\tthis.hierarchy.resetConfiguration();\n\t}", "public void reset()\n {\n Iterator i;\n\n i = params.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n\n i = options.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n }", "protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}", "public final void Reset()\n\t{\n\t}", "public static void Reset() {\n\t\t\n\t\tArrayList<KDNode> root_buff = new ArrayList<KDNode>();\n\t\tfor(KDNode k : KDNode.RootSet()) {\n\t\t\troot_buff.add(k);\n\t\t}\n\t\t\n\t\troot_map.clear();\n\t\t\n\t\tfor(int i=0; i<root_buff.size(); i++) {\n\t\t\tKDNode ptr = root_buff.get(i);\n\t\t\t\n\t\t\tKDNode prev_ptr = ptr;\n\t\t\twhile(ptr != null) {\n\t\t\t\tptr.is_node_set = false;\n\t\t\t\tptr.space.sample_buff.clear();\n\t\t\t\tprev_ptr = ptr;\n\t\t\t\tptr = ptr.parent_ptr;\n\t\t\t}\n\t\t\t\n\t\t\troot_map.add(prev_ptr);\n\t\t}\n\t\t\n\t}", "public void reset() {\r\n reset(params);\r\n }", "public void resetParents() {\n idemenController.setSelected(null);\n }", "public void reset() {\n\n }", "public static void reset() {\n parentNameToBlockStubs.clear();\n parentNameToParentBlocks.clear();\n }", "public void reset() {\r\n\t\tcursor = mark;\r\n\t}", "public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}", "public void reset() {\r\n\t\tif(this.markedStack.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.value = this.markedStack.pollLast();\r\n\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n }", "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexicalState = YYINITIAL;\r\n }", "@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}", "final public void yyreset(java.io.Reader reader) throws java.io.IOException {\n yyclose();\n yy_reader = reader;\n yy_atBOL = true;\n yy_atEOF = false;\n yy_endRead = yy_startRead = 0;\n yy_currentPos = yy_markedPos = yy_pushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n yy_lexical_state = YYINITIAL;\n }", "final public void yyreset(java.io.Reader reader) throws java.io.IOException {\n yyclose();\n yy_reader = reader;\n yy_atBOL = true;\n yy_atEOF = false;\n yy_endRead = yy_startRead = 0;\n yy_currentPos = yy_markedPos = yy_pushbackPos = 0;\n yyline = yychar = yycolumn = 0;\n yy_lexical_state = YYINITIAL;\n }", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "public final void Reset()\n\t{\n\t\t_curindex = -1;\n\t}", "public void resetNodeTeams()\n\t{\n\t\tfor (Node node : nodes.values())\n\t\t{\n\t\t\tnode.team = null;\n\t\t}\n\t}", "@Override\n\tpublic void reset() {\n\t\tthis.prepare();\n\t\tsuper.reset();\n\t}" ]
[ "0.6937993", "0.6877877", "0.6756279", "0.6632992", "0.6626345", "0.6588847", "0.6480809", "0.6351276", "0.6250737", "0.61952543", "0.6186026", "0.61570644", "0.60264856", "0.5870016", "0.583908", "0.5806464", "0.5774591", "0.5771043", "0.57645655", "0.5761258", "0.5756507", "0.5742867", "0.57260925", "0.5702924", "0.570215", "0.57008106", "0.5700432", "0.5700432", "0.5700432", "0.5700432", "0.5684214", "0.56712747", "0.5667697", "0.56649053", "0.56602347", "0.56602347", "0.56602347", "0.56602347", "0.56593865", "0.56583714", "0.56568915", "0.56568915", "0.56484395", "0.5647215", "0.56381047", "0.5632289", "0.56317705", "0.5617975", "0.5612351", "0.5602808", "0.55985975", "0.55866456", "0.558397", "0.558397", "0.558397", "0.558397", "0.5576924", "0.55735105", "0.5567425", "0.5567349", "0.5558957", "0.5552149", "0.5548182", "0.5545629", "0.55353546", "0.5523772", "0.551908", "0.551908", "0.55140877", "0.5509311", "0.5509147", "0.55089056", "0.55053616", "0.55029166", "0.5501205", "0.54936427", "0.5483457", "0.54795593", "0.5479165", "0.5478327", "0.5474755", "0.54726547", "0.5461534", "0.54585725", "0.54545027", "0.545059", "0.54500073", "0.5444976", "0.544434", "0.5438178", "0.54333854", "0.54333854", "0.5431827", "0.5431827", "0.5431619", "0.5428172", "0.5428172", "0.54216075", "0.5417407", "0.5414929", "0.54136497" ]
0.0
-1
Simply selects the home view to render by returning its name.
@RequestMapping(value = "", method = RequestMethod.GET) public String cout(Locale locale, Model model) { logger.info("Welcome home! The client locale is {}.", locale); Date date = new Date(); DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); String formattedDate = dateFormat.format(date); model.addAttribute("serverTime", formattedDate); return "bootstrap/bootstrap"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(Mappings.HOME)\n\tpublic String showHome() {\n\n\t\treturn ViewNames.HOME;\n\t}", "public String home() {\n if (getUsuario() == null) {\n return \"login.xhtml\";\n }\n // Si el usuario es un ADMINISTRADOR, le lleva a la pagina a la lista de Alumnos\n if (getUsuario().getRol().equals(getUsuario().getRol().ADMINISTRADOR)) {\n return \"ListaAlumnos.xhtml\";\n }\n // Si el usuario es Alumno, le llevará a la página web de INDEX\n // REVISAR\n if (getUsuario().getRol().equals(getUsuario().getRol().ALUMNO)) {\n return \"login.xhtml\";\n }\n return null;\n }", "public String home() {\n if(getUsuario()==null){\r\n return \"login.xhtml\";\r\n }\r\n \r\n // Si el usuario es un administrador, le lleva a la pagina del listado de apadrinados\r\n if(getUsuario().getRol().equals(getUsuario().getRol().ADMINISTRADOR)){\r\n return \"listaninosapadrinados.xhtml\";\r\n }\r\n \r\n // Si el usuario es socio, le lleva a la pagina de apadrinar\r\n if(getUsuario().getRol().equals(getUsuario().getRol().SOCIO)){\r\n return \"apadrinar.xhtml\";\r\n }\r\n return null;\r\n }", "@RequestMapping(\"/home\")\n\tpublic String showHome() {\n\t\treturn \"home\";\n\t}", "public void home_index()\n {\n Home.index(homer);\n }", "public Class getHomePage() {\n return HomePage.class;\n }", "public void displayHome() {\n\t\tclearBackStack();\n\t\tselectItemById(KestrelWeatherDrawerFactory.MAP_OVERVIEW, getLeftDrawerList());\n\t}", "InternationalizedResourceLocator getHomePage();", "@RequestMapping(value = \"/home\")\n\tpublic String home() {\t\n\t\treturn \"index\";\n\t}", "public String getHomePage() {\r\n return this.homePage;\r\n }", "public void toHomeScreen(View view) {\n Intent intent = new Intent(SportHome.this, HomeScreen.class);\n startActivity(intent);\n\n }", "@RequestMapping(\"/\")\n\tpublic String homePage() {\n\t\tlogger.info(\"Index Page Loaded\");\n\t\treturn \"index\";\n\t}", "public static final String getHome() { return home; }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home() {\n\t\treturn \"home\";\n\t}", "String getOssHomepage();", "public static Result home() {\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else\n return renderHome(loggedInSkier);\n }", "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public String goHome(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n model.addAttribute(\"pagetitle\", \"Pand-Eco\");\n return \"view_landing_page\";\n }", "@GetMapping(\"/\")\n\tpublic String showHomePage() {\n\t\treturn \"home\";\n\t}", "@RequestMapping(\"home\")\n public String loadHomePage( HttpServletRequest request, final HttpServletResponse response, Model model ) {\n response.setHeader( \"Cache-Control\", \"max-age=0, no-cache, no-store\" );\n\n // Get the title of the application in the request's locale\n model.addAttribute( \"title\", webapp.getMessage( \"webapp.subtitle\", null, request.getLocale() ) );\n\n return \"home\";\n }", "public void homeClicked() {\r\n Pane newRoot = loadFxmlFile(Home.getHomePage());\r\n Home.getScene().setRoot(newRoot);\r\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Model model, Authentication authentication){\n if(authentication != null) {\n User currUser = customUserDetailsService.findByUsername(authentication.getName());\n model.addAttribute(\"user\", currUser);\n }\n // The string \"Index\" that is returned here is the name of the view\n // (the Index.jsp file) that is in the path /main/webapp/WEB-INF/jsp/\n // If you change \"Index\" to something else, be sure you have a .jsp\n // file that has the same name\n return \"Index\";\n }", "public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }", "public static String getHome() {\n return home;\n }", "private void loadHome(){\n Intent intent = new Intent(this, NameListActivity.class);\n startActivity(intent);\n finish();\n }", "private void setDefaultView() {\n mDefaultFragment = mHomeFragment;\n mDefaultNavItemSelectionId = R.id.navigation_home;\n\n mNavigationView.setSelectedItemId(mDefaultNavItemSelectionId);\n mCurrentFragment = mDefaultFragment;\n switchFragment();\n setActionBarTitle(mDefaultNavItemSelectionId);\n }", "String home();", "public void goHomeScreen(View view)\n {\n\n Intent homeScreen;\n\n homeScreen = new Intent(this, homeScreen.class);\n\n startActivity(homeScreen);\n\n }", "@Override\n public void showHomeView()\n {\n Intent homeView = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(homeView);\n }", "public String getHomePage(User currentUser) {\r\n VelocityContext context = getHomePageData(currentUser);\r\n String page = renderView(context, \"pages/home.vm\");\r\n return page;\r\n }", "public void goHome();", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\n\t public String home()\n\t {\n\t return \"welcome\";\n\t }", "@Override\n\tpublic int getContentView() {\n\t\treturn R.layout.activity_home;\n\t}", "public void gotoHome(){ application.gotoHome(); }", "@RequestMapping(value=\"/\")\r\npublic ModelAndView homePage(ModelAndView model) throws IOException\r\n{\r\n\tmodel.setViewName(\"home\");\r\n\treturn model;\r\n}", "public abstract int getRootView();", "public void goToHomePage(View view)\n {\n Intent intent = new Intent( this, HomeActivity.class );\n startActivity( intent );\n }", "@RequestMapping(method= RequestMethod.GET, value=\"/staff/home\")\n protected static String getStaffHome() {\n return \"staff-home\";\n }", "public JTextPane getHomeName() {\n return this.homeName;\n }", "public String homepage() {\n return this.home;\n }", "@RequestMapping(value=\"/homepage\")\r\npublic ModelAndView homePage1(ModelAndView model) throws IOException\r\n{\r\n model.setViewName(\"home\");\r\n\treturn model;\r\n}", "@RequestMapping(value=\"/\", method=RequestMethod.GET)\n\tpublic String home() {\n\t\tlogger.info(\"Welcome home!\");\n\t\treturn \"home\";\n\t}", "public void setHomeName(String homeName) {\n this.homeName.setText(homeName);\n }", "@RequestMapping(value = { \"/broadband-user\", \"/broadband-user/login\" })\n\tpublic String userHome(Model model) {\n\t\tmodel.addAttribute(\"title\", \"CyberPark Broadband Manager System\");\n\t\treturn \"broadband-user/login\";\n\t}", "public void showHomeScreen() {\n try {\n FXMLLoader loader1 = new FXMLLoader();\n loader1.setLocation(MainApplication.class.getResource(\"view/HomeScreen.fxml\"));\n AnchorPane anchorPane = (AnchorPane) loader1.load();\n rootLayout.setCenter(anchorPane);\n HomeScreenController controller = loader1.getController();\n controller.setMainApp(this);\n } catch (IOException e) {\n \t\te.printStackTrace();\n \t }\n }", "public void backHome(View view) {\n Intent intent = new Intent(this, home.class);\n startActivity(intent);\n\n }", "@Override\n protected int getLayoutId() {\n return R.layout.fragment_home;\n }", "@RequestMapping(value = \"home.do\", method = RequestMethod.GET)\n public String getHome(HttpServletRequest request, Model model) {\n logger.debug(\"Home page Controller:\");\n return \"common/home\";\n }", "public String extractHomeView() {\n return (new StringBuilder()\n .append(\"<a href=\\\"/products/details/\" + this.getId() + \"\\\" class=\\\"col-md-2\\\">\")\n .append(\"<div class=\\\"product p-1 chushka-bg-color rounded-top rounded-bottom\\\">\")\n .append(\"<h5 class=\\\"text-center mt-3\\\">\" + this.getName() + \"</h5>\")\n .append(\"<hr class=\\\"hr-1 bg-white\\\"/>\")\n .append(\"<p class=\\\"text-white text-center\\\">\")\n .append(this.getDescription())\n .append(\"</p>\")\n .append(\"<hr class=\\\"hr-1 bg-white\\\"/>\")\n .append(\"<h6 class=\\\"text-center text-white mb-3\\\">$\" + this.getPrice() + \"</h6>\")\n .append(\"</div>\")\n .append(\"</a>\")\n ).toString();\n }", "@Override\r\n\tpublic String executa(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn \"view/home.html\";\r\n\t}", "public void homeButtonClicked(ActionEvent event) throws IOException {\n Parent homeParent = FXMLLoader.load(getClass().getResource(\"Home.fxml\"));\n Scene homeScene = new Scene(homeParent, 1800, 700);\n\n //gets stage information\n Stage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n window.setTitle(\"Home Page\");\n window.setScene(homeScene);\n window.show();\n }", "public void returnHome(View view) {\n Intent intent = new Intent(GameDetailsActivity.this, HomeActivity.class);\n startActivity(intent);\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\t// logger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\treturn \"home\";\n\t}", "@RequestMapping(\"/\")\n\t public String index(Model model){\n\t return \"homepage\";\n\t }", "public String getHomeClassName()\n {\n if (_homeClass != null)\n return _homeClass.getName();\n else\n return getAPIClassName();\n }", "@RequestMapping(\"/\")\n\tpublic String welcomeHandler() {\n\n\t\tString viewName = \"welcome\";\n\t\tlogger.info(\"welcomeHandler(): viewName[\" + viewName + \"]\");\n\t\treturn viewName;\n\t}", "protected String getHomePageTitle() { \n return null; \n }", "public String home()\n\t{\n\t\treturn SUCCESS;\n\t}", "@RequestMapping(value=\"/loginForm\", method = RequestMethod.GET)\n\tpublic String home(){\n\n\t\treturn \"loginForm\";\n\t}", "protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}", "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public ModelAndView goToHome(Model m) {\n \tModelAndView mav = new ModelAndView(\"home\");\n \treturn mav;\n }", "public static void selectedHomeScreen(Activity context) {\n\n // Get tracker\n Tracker tracker = ((GlobalEntity) context.getApplicationContext())\n .getTracker(TrackerName.APP_TRACKER);\n if (tracker == null) {\n return;\n }\n\n // Build and send an Event\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Selected Home Screen\")\n .setAction(\"homeScreenSelect\")\n .setLabel(\n \"homeScreenSelect: \"\n + NavDrawerHomeScreenPreferences\n .getUserHomeScreenChoice(context))\n .build());\n }", "@Override\n\tpublic int getLayoutId() {\n\t\treturn R.layout.fragment_home;\n\t}", "void showHome() {\n\t\tsetContentView(R.layout.home);\r\n\t\tView homeView = findViewById(R.id.home_image);\r\n\t\thomeView.setOnClickListener(new View.OnClickListener() {\r\n\t\t public void onClick(View v) {\r\n\t\t \tstartGame();\r\n\t\t }\r\n\t\t});\r\n\t}", "View getActiveView();", "public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}", "private void navigateToDefaultView() {\n\t\tif (navigator!=null && \"\".equals(navigator.getState())) {\n\t\t\t// TODO: switch the view to the \"dashboard\" view\n\t\t}\n\t}", "@GetMapping(\"/homePage\")\n public String homePage(final Model model) {\n LOGGER.debug(\"method homePage was invoked\");\n model.addAttribute(\"listCarMakes\", carMakeProvider.getCarMakes());\n return \"homepage\";\n }", "@RequestMapping(method = RequestMethod.GET)\r\n public String home(ModelMap model) throws Exception\r\n {\t\t\r\n return \"Home\";\r\n }", "@FXML\r\n private void goHomeScreen(ActionEvent event) {\n Stage stage = (Stage) mainGridPane.getScene().getWindow();\r\n\r\n //load up WelcomeScene FXML document\r\n Parent root = null;\r\n try {\r\n root = FXMLLoader.load(getClass().getResource(\"WelcomeChipScene.fxml\"));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Scene scene = new Scene(root, 1024, 720);\r\n stage.setTitle(\"Restaurant Reservation System\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public void goHome(View view) {\n String toastString = \"go home...\";\n Toast.makeText(FriendsList.this,toastString, Toast.LENGTH_SHORT).show();\n\n //TODO\n // go to list screen....\n Intent goToNextScreen = new Intent (this, AccountAccess.class);\n final int result = 1;\n startActivity(goToNextScreen);\n }", "public URI getHome() {\n return this.homeSpace;\n }", "public void switchToHomeScreen() {\n Intent startMain = new Intent(Intent.ACTION_MAIN);\n startMain.addCategory(Intent.CATEGORY_HOME);\n startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(startMain);\n }", "public final String getViewName() {\n\t\treturn viewName;\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String index(Model model) {\r\n\r\n\t\treturn \"home\";\r\n\t}", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"HomeView Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "protected Object getHome()\r\n/* 75: */ throws NamingException\r\n/* 76: */ {\r\n/* 77:159 */ if ((!this.cacheHome) || ((this.lookupHomeOnStartup) && (!isHomeRefreshable()))) {\r\n/* 78:160 */ return this.cachedHome != null ? this.cachedHome : lookup();\r\n/* 79: */ }\r\n/* 80:163 */ synchronized (this.homeMonitor)\r\n/* 81: */ {\r\n/* 82:164 */ if (this.cachedHome == null)\r\n/* 83: */ {\r\n/* 84:165 */ this.cachedHome = lookup();\r\n/* 85:166 */ this.createMethod = getCreateMethod(this.cachedHome);\r\n/* 86: */ }\r\n/* 87:168 */ return this.cachedHome;\r\n/* 88: */ }\r\n/* 89: */ }", "public void launchHomePage() {\n Intent intent = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(intent);\n }", "public abstract String getView();", "@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String openhomePage() {\n/*\t\tlogger.debug(\"Inside Instruction page\");\n*/\t\treturn \"home\";\n\t}", "private Home getHome(final Context ctx)\r\n {\r\n return (Home) ctx.get(this.homeKey_);\r\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Locale locale, Model model)\n {\n System.out.println(\"Home \" + service.getName());\n model.addAttribute(\"name\", service.getName());\n return \"home\";\n }", "protected String getView() {\r\n/* 216 */ return \"/jsp/RoomView.jsp\";\r\n/* */ }", "public String getView(String viewName) {\n\t\t\n\t\treturn prefix + viewName + suffix;\n\t}", "@Override\n public int getLayout() {\n return R.layout.activity_home;\n }", "private void CallHomePage() {\n\t\t\n\t\tfr = new FragmentCategories();\n\t\tFragmentManager fm = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fm.beginTransaction();\n\t\tfragmentTransaction.replace(R.id.fragment_place, fr);\n\t\tfragmentTransaction.addToBackStack(null);\n\t\tfragmentTransaction.commit();\n\n\t}", "@Override\r\n\tpublic String getViewIdentifier() {\n\t\treturn ClassUtils.getUrl(this);\r\n\t}", "public String toWelcome() {\r\n\t\treturn \"/secured/fragenpool.xhtml\";\r\n\t}", "public java.lang.String getViewName() {\r\n return viewName;\r\n }", "@Test\n public void testHome() {\n GenericServiceMockup<Person> personService = new GenericServiceMockup<Person>();\n homeController.setPrivilegeEvaluator(mockup);\n homeController.setPersonBean(personService);\n ModelAndView result = homeController.home();\n assertEquals(\"Wrong view name for exception page\", HomeController.HOME_VIEW, result.getViewName());\n }", "public String getViewName() {\n return viewName;\n }", "@Override\n\tpublic String getViewIdentifier() {\n\t\treturn ClassUtils.getUrl(this);\n\t}", "@Override\n\tpublic String getViewIdentifier() {\n\t\treturn ClassUtils.getUrl(this);\n\t}", "public String getView();", "public String getView();", "public String getViewName() {\n return viewName;\n }", "public void goToHome() {\n navController.navigate(R.id.nav_home);\n }", "public void goTo(View view) {\n if (stage != null) {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"../ui/\" + view.toString() + \".fxml\"));\n stage.setTitle(APP_NAME);\n stage.setScene(new Scene(root, APP_WIDTH, APP_HEIGHT));\n stage.show();\n } catch (IOException e) {\n System.err.println(\"The view \" + \"../ui/\" + view.toString() + \".fxml\" + \" doesn't exist.\");\n e.printStackTrace();\n }\n }\n }", "@RequestMapping(value= {\"/flight-home\",\"/\"})\n\tpublic ModelAndView flightSearchPage() {\n\t\treturn new ModelAndView (\"home\");\n\t}", "public void homeButtonClicked(ActionEvent event) throws IOException {\n\t\tSystem.out.println(\"Loading Home...\");\n\t\tAnchorPane pane = FXMLLoader.load(getClass().getResource(\"HomeFXML.fxml\"));\n\t\trootPane.getChildren().setAll(pane);\n\t\t\n\t}", "public Home clickonHome()\n\t{\n\t\tdriver.findElement(By.xpath(home_xpath)).click();\n\t\treturn new Home(driver);\n\t}", "private void openHome() {\n Intent intent = new Intent(this, WelcomeActivity.class);\n startActivity(intent);\n\n finish();\n }" ]
[ "0.68210346", "0.62661386", "0.62182325", "0.62037206", "0.6200906", "0.6189079", "0.61521596", "0.6124629", "0.6122641", "0.6104551", "0.6012518", "0.6010818", "0.5979618", "0.5978699", "0.59429437", "0.5937469", "0.5924789", "0.5908242", "0.59063363", "0.5879819", "0.5861421", "0.58111566", "0.5810235", "0.5801753", "0.5800939", "0.57609886", "0.57531947", "0.57508683", "0.5750342", "0.57294023", "0.5727139", "0.5723514", "0.57195145", "0.5700424", "0.5695817", "0.5686089", "0.5685633", "0.56852764", "0.56825954", "0.56716204", "0.56648386", "0.5645398", "0.5641867", "0.5627775", "0.5613625", "0.5613235", "0.5596488", "0.5583299", "0.55631375", "0.5560741", "0.5551418", "0.5546737", "0.55465037", "0.5546375", "0.5536325", "0.55274534", "0.5519936", "0.5518641", "0.5515413", "0.55145097", "0.5506325", "0.5506208", "0.5503424", "0.5502502", "0.5492821", "0.54776925", "0.5473028", "0.54628587", "0.54607755", "0.545175", "0.54370654", "0.5437056", "0.5433543", "0.54204684", "0.54184425", "0.54148453", "0.5408458", "0.540665", "0.54065734", "0.54049516", "0.53992516", "0.5398371", "0.53838366", "0.5381243", "0.5380512", "0.53611505", "0.53437567", "0.53419286", "0.53356504", "0.5324721", "0.5322878", "0.5322878", "0.53210276", "0.53210276", "0.53185105", "0.5314216", "0.5313968", "0.5305567", "0.53039527", "0.5300144", "0.5296709" ]
0.0
-1
sets the category member using an int
public int getCategory() { return category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Category(int num) {\n this.num = num;\n }", "public void setCatId(int value) {\n this.catId = value;\n }", "public void setCategory(Integer category) {\n this.category = category;\n }", "public void setCatLevel(int value) {\n this.catLevel = value;\n }", "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }", "public void setR_Category_ID (int R_Category_ID);", "public void setIntCat(Category intCat) {\n\t\tthis.intCat = intCat;\n\t}", "public Builder setCategoryValue(int value) {\n category_ = value;\n onChanged();\n return this;\n }", "public void setIntAttributeCategory(String value) {\n setAttributeInternal(INTATTRIBUTECATEGORY, value);\n }", "public void setId(Category category) {\n\t\r\n}", "public int getCategory(){\n\t\treturn this.cat;\n\t}", "public void setCatId(long value) {\n this.catId = value;\n }", "public void set_count(int c);", "public int getCategoryValue() {\n return category_;\n }", "public void setCategoryId(long categoryId);", "public Builder setCategoryValue(int value) {\n \n category_ = value;\n onChanged();\n return this;\n }", "public int getCategoryValue() {\n return category_;\n }", "@java.lang.Override public int getCategoryValue() {\n return category_;\n }", "int getCategoryValue();", "public Builder setCategoryId(int value) {\n\n categoryId_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "@java.lang.Override public int getCategoryValue() {\n return category_;\n }", "void setCategoryBits (long bits);", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public void setCategory(String category);", "void updateCategory(Category category);", "void updateCategory(Category category);", "public abstract void setCntOther(int cntOther);", "public Integer getCategory() {\n return category;\n }", "void updateCategory(String category){}", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "public void set(int category, int page) {\n\t\tthis.category = category;\n\t\tthis.page = page;\n\t}", "public void setCustomerCategoryKey(ObjectKey key) throws TorqueException\n {\n \n setCustomerCatId(((NumberKey) key).intValue());\n }", "public void setCustomerCatId(int v) throws TorqueException\n {\n \n if (this.customerCatId != v)\n {\n this.customerCatId = v;\n setModified(true);\n }\n \n \n if (aCustomerCategory != null && !(aCustomerCategory.getCustomerCatId() == v))\n {\n aCustomerCategory = null;\n }\n \n }", "public int addCategory(Category cat) {\n\t\treturn 0;\n\t}", "public void setCategory(Category c) {\n this.category = c;\n }", "public void setIdTipoCategoria( Integer idTipoCategoria ) {\n this.idTipoCategoria = idTipoCategoria ;\n }", "public void setCatId(Integer catId) {\n this.catId = catId;\n }", "@Test\n public void testSetCategoryParentId() {\n System.out.println(\"setCategoryParentId\");\n int CategoryParentId = 0;\n Category instance = new Category();\n instance.setCategoryParentId(CategoryParentId);\n assertEquals(CategoryParentId, instance.getCategoryId());\n }", "void setInt(int attributeValue);", "int getCategoryId();", "public interface Categoreis {\n void set(int i);\n}", "public void setValue(int type)\r\n\t{\r\n\t\tif(type < NONE || type > CENTIMETER)\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"type < NONE || type > CENTIMETER\");\r\n\t\t}\r\n\t\tsuper.setShort(0, (short)type);\r\n\t}", "public void setCategory(String category)\r\n {\r\n m_category = category;\r\n }", "void setStatCategory (String statistic);", "void setInt(String key, int val);", "public void setCount(String type){\n if(type.equals(\"Zombie\")){\n this.zombieCounter -= 1;\n } else if (type.equals(\"Sandwich\")){\n this.sandwichCounter -= 1;\n }\n }", "public void setCategory_id(int category_id) {\n this.category_id = category_id;\n }", "void set_int(ThreadContext tc, RakudoObject classHandle, int Value);", "void setId(int val);", "Category(int colorId) {\n this.colorId = colorId;\n }", "public void setName(String name)\n\t{\n\t\tcategoryName= name;\n\t}", "private void setCategory(String s, int src) {\n CategoryText = findViewById(R.id.transaction_select_category);\n categoryImage = findViewById(R.id.category_image);\n CategoryText.setText(s);\n categoryName = s;\n categoryImage.setImageResource(src);\n categoryImage.setTag(src);\n imgSrc = src;\n }", "public int getCategory_id() {\n return category_id;\n }", "public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}", "public void randomizeCategory() {\n this.group = (int) (3*Math.random()+1);\n }", "public void setCategory(Category category) {\r\n this.category = category;\r\n }", "@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value$) {\n switch (field$) {\n case 0: kGSuperPopCategory = (Gel_BioInf_Models.KGSuperPopCategory)value$; break;\n case 1: kGPopCategory = (Gel_BioInf_Models.KGPopCategory)value$; break;\n case 2: chiSquare = (java.lang.Float)value$; break;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "Category selectCategory(long id);", "public static void setDropdownCategoryOption(int option){\n DriverManager.driver.findElement(Constans.CATEGORY_LOCATOR).click();\n setDropdownOption(option);\n }", "public int getCatId() {\n return catId;\n }", "public void setCategory(String cat)\n\t{\n\t\tif(cat!=null)\n\t\t\tthis.category = cat;\n\t}", "public void setName(String ac) {\n categoryName = ac;\n }", "public void setValue(int value);", "public Integer getCatId() {\n return catId;\n }", "public Integer getCategoryId() {\n return categoryId;\n }", "public Integer getCategoryId() {\n return categoryId;\n }", "public void setSSRCategory(int value) {\n this.ssrCategory = value;\n }", "public void setInteger(int value){}", "public void setCustomerCategory(CustomerCategory v) throws TorqueException\n {\n if (v == null)\n {\n setCustomerCatId( 999);\n }\n else\n {\n setCustomerCatId(v.getCustomerCatId());\n }\n aCustomerCategory = v;\n }", "public void setCategory (String mode) { category = mode; }", "public void cheakCategory(String category) {\n\n if (category.equals(\"1\")) {\n url_count += 1;\n } else if (category.equals(\"4\")) {\n sms_count += 1;\n } else if (category.equals(\"2\")) {\n text_count += 1;\n } else if (category.equals(\"3\")) {\n contact_count += 1;\n } else if (category.equals(\"5\")) {\n initiate_call_count += 1;\n }\n\n }", "public long getCategory() {\r\n\t\treturn this.category;\r\n\t}", "Category editCategory(Category category);", "public void setCategoryId(Integer categoryId) {\n this.categoryId = categoryId;\n }", "public void setFirstCategoryIndex(int first) {\n/* 118 */ if (first < 0 || first >= this.underlying.getColumnCount()) {\n/* 119 */ throw new IllegalArgumentException(\"Invalid index.\");\n/* */ }\n/* 121 */ this.firstCategoryIndex = first;\n/* 122 */ fireDatasetChanged();\n/* */ }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public abstract void setCntCod(int cntCod);", "public void setPCatgryId(Number value) {\n\t\tsetNumber(P_CATGRY_ID, value);\n\t}", "@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }", "public void setCounter(Short __newValue)\n {\n counter = __newValue;\n }", "private Category identifyCategory(Integer hcat) {\n\t\tCategory c = null;\n\t\t\n\t\tif (hcat != null) {\n\t\t\tc = this.categoryMap.get(Long.valueOf(hcat));\n\t\t\tif (c == null) {\n\t\t\t\tc = this.noCategory;\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\telse {\n\t\t\treturn this.noCategory;\n\t\t}\n\t}", "public void setFoodLevel ( int value ) {\n\t\texecute ( handle -> handle.setFoodLevel ( value ) );\n\t}", "public void setCounter(int number){\n this.counter = number;\n }", "public void setID(java.lang.Integer value);", "public void setCategory(String category) {\n this.category = category;\n changeState(CHANGE);\n }", "public void setCategoriaId(Long id);", "public void setInteger(int value);", "public void setCategory(final Category value)\r\n\t{\r\n\t\tsetCategory( getSession().getSessionContext(), value );\r\n\t}", "@Override\n public void setCategory(String category) {\n this.category = category;\n }", "public void SetWealth(int w)\n{\n\twealth=w;\n}", "@java.lang.Override\n public int getCategoryId() {\n return categoryId_;\n }", "void addCategory(Category category);", "public void setAdditionalCategoryCat(java.lang.Integer additionalCategoryCat) {\r\n this.additionalCategoryCat = additionalCategoryCat;\r\n }", "public Categorie updateCategorie(Categorie c);", "public long getCategoryId();", "protected void set_food_level(int food_level)\n {\n this.food_level = food_level;\n }" ]
[ "0.7534931", "0.7140981", "0.69181234", "0.6743015", "0.66901577", "0.6650423", "0.6630024", "0.6623272", "0.65973604", "0.6585128", "0.64651847", "0.64560807", "0.6432767", "0.6422935", "0.6417642", "0.6385871", "0.6369921", "0.6325534", "0.63133997", "0.6302779", "0.62971544", "0.6296794", "0.6260873", "0.62501556", "0.62302434", "0.62302434", "0.6164153", "0.61564255", "0.6153229", "0.6138663", "0.6125091", "0.61204684", "0.61086816", "0.6094148", "0.609144", "0.6089552", "0.6036139", "0.60330033", "0.5971206", "0.596248", "0.5909406", "0.59013176", "0.5894152", "0.58678526", "0.58642805", "0.58530974", "0.5850259", "0.5838639", "0.5819358", "0.5817969", "0.58152986", "0.58118904", "0.5804696", "0.58029765", "0.57952136", "0.57951534", "0.5790965", "0.5780821", "0.5768568", "0.5762838", "0.574386", "0.57276654", "0.5723351", "0.57196707", "0.57185537", "0.5713563", "0.5713563", "0.57122976", "0.5706054", "0.5693757", "0.56936425", "0.56800866", "0.56766206", "0.5676058", "0.5674921", "0.56711507", "0.5652183", "0.5652183", "0.5652183", "0.5652183", "0.5651913", "0.56472677", "0.5641768", "0.56368405", "0.5634009", "0.5627341", "0.56271094", "0.5623596", "0.56200916", "0.5607691", "0.5604933", "0.5599069", "0.55915594", "0.55874085", "0.55794483", "0.55789924", "0.5577778", "0.55766505", "0.55636615", "0.55598265" ]
0.6044026
36
sets the category member using a String.
public String getCategoryString(){ MarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category); if(c == null || c.name() == null || "".equals(c.name())) return "NONE"; return c.name(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetCategory(String text) {\n\t\t\n\t\t\n\t\tCategory_label.setText(text);\n\t}", "public void setName(String ac) {\n categoryName = ac;\n }", "void updateCategory(String category){}", "public void setName(String name)\n\t{\n\t\tcategoryName= name;\n\t}", "public void setCategory(String category);", "CloudCategory(String value) {\n this.value = value;\n }", "public void setAttributeCategory(String value)\n {\n setAttributeInternal(ATTRIBUTECATEGORY, value);\n }", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "public void setCategory(String category)\r\n {\r\n m_category = category;\r\n }", "private void setCategory(String s, int src) {\n CategoryText = findViewById(R.id.transaction_select_category);\n categoryImage = findViewById(R.id.category_image);\n CategoryText.setText(s);\n categoryName = s;\n categoryImage.setImageResource(src);\n categoryImage.setTag(src);\n imgSrc = src;\n }", "void setStatCategory (String statistic);", "public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}", "@Override\n public void setCategory(String category) {\n this.category = category;\n }", "public void setCatName(String value) {\n setAttributeInternal(CATNAME, value);\n }", "public CategoryBuilder setValue(String value)\n {\n fValue = value;\n return this;\n }", "void setCit(java.lang.String cit);", "public void setCategory(String cat)\n\t{\n\t\tif(cat!=null)\n\t\t\tthis.category = cat;\n\t}", "public void setCategoryName(final String categoryName);", "public void setStrCategoryName(final String strCategoryName) {\n this.strCategoryName = strCategoryName;\n }", "private RunnerInfo.Category stringToCat(String catStr) {\n if (catStr.contains(\"Femme\")) {\n return RunnerInfo.Category.WOMEN;\n } else {\n return RunnerInfo.Category.MEN;\n }\n }", "public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}", "public void setCategory (String category) {\n switch (category.toLowerCase()) {\n default -> this.category = Category.YOUTH;\n case \"novel\" -> this.category = Category.NOVEL;\n case \"theater\" -> this.category = Category.THEATER;\n case \"documentary\" -> this.category = Category.DOCUMENTARY;\n case \"speech\" -> this.category = Category.SPEECH;\n }\n }", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "@Override\n public void setAsText(String id) {\n CategoryEntity categoryEntity = categoryService.getCategoryById(Integer.parseInt(id));\n this.setValue(categoryEntity);\n }", "public void setCategory(String category) {\n this.category = category;\n changeState(CHANGE);\n }", "public void setCategory(Category c) {\n this.category = c;\n }", "public void setDocumentCategory(java.lang.String documentCategory)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DOCUMENTCATEGORY$0);\r\n }\r\n target.setStringValue(documentCategory);\r\n }\r\n }", "public void setCategory(java.lang.String category) {\n this.category = category;\n }", "public Category(String n) {\n this.name = n;\n }", "public void setName(String string) {\n\t\t\n\t}", "void setString(String attributeValue);", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public void setCategory(String category){\n this.category = category;\n }", "@Override\n public void setCategoryLabel(String categoryLabel) {\n this.categoryLabel = categoryLabel;\n }", "public void setString(String name, String value)\n/* */ {\n/* 1119 */ XMLAttribute attr = findAttribute(name);\n/* 1120 */ if (attr == null) {\n/* 1121 */ attr = new XMLAttribute(name, name, null, value, \"CDATA\");\n/* 1122 */ this.attributes.addElement(attr);\n/* */ } else {\n/* 1124 */ attr.setValue(value);\n/* */ }\n/* */ }", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_lineaGastoCategoria.setName(name);\n\t}", "void setName(String s);", "public void setString(int index,String value);", "public AssignmentCategory(String ac) {\n categoryName = ac;\n }", "public void setCategory(String category) {\r\n this.category = category;\r\n }", "void updateCategory(Category category);", "void updateCategory(Category category);", "public void setNameString(String s) {\n nameString = s;\r\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public static void setCategory(String categoryName) {\n wait.until(ExpectedConditions.elementToBeClickable(EntityCreationPage.PlatformsPanel.selectCategory()));\n EntityCreationPage.PlatformsPanel.selectCategory().click();\n wait.until(ExpectedConditions.visibilityOf(EntityCreationPage.PlatformsPanel.selectCategoryPopUp(categoryName)));\n EntityCreationPage.PlatformsPanel.selectCategoryPopUp(categoryName).click();\n }", "public void setName(String string) {\n\t\tthis.name = string;\n\t}", "public void setCategory(final SessionContext ctx, final Category value)\r\n\t{\r\n\t\tsetProperty(ctx, CATEGORY,value);\r\n\t}", "void set(String text);", "@AutoEscape\n public String getCategory();", "public void settype(String cat) { this.type = cat; }", "@Test\n public void testSetCategoryDescription() {\n System.out.println(\"setCategoryDescription\");\n String CategoryDescription = \"testDescription\";\n Category instance = new Category();\n instance.setCategoryDescription(CategoryDescription);\n assertEquals(CategoryDescription, instance.getCategoryDescription());\n }", "public void setCategory (String mode) { category = mode; }", "protected abstract void setName(String string);", "public String getStrCategoryName() {\n return strCategoryName;\n }", "public void setName(String s) {\n\t\tclassName = s;\n\t}", "public void setCategory(final Category value)\r\n\t{\r\n\t\tsetCategory( getSession().getSessionContext(), value );\r\n\t}", "public String getCategory(){\r\n\t\treturn this.category;\r\n\t}", "public static void setTag(String string) {\n\t\ttags.put(last[0], string);\n\t}", "public void setNotiCategory(String value) {\r\n setAttributeInternal(NOTICATEGORY, value);\r\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "private void setcategoriaPrincipal(String categoriaPrincipal2) {\n\t\t\n\t}", "public void setCategory(Category category) {\r\n this.category = category;\r\n }", "public void setTermcat(String value) {\r\n setAttributeInternal(TERMCAT, value);\r\n }", "void setValue(java.lang.String value);", "public void setNomCategoria (String IdCategoria){\n categoriaId = getCategoriaId( IdCategoria );\n if ( categoriaId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelCategoria.setText( categoriaId.getString(1) );\n }\n }", "void setName(String strName);", "public void setCategory(final String categoryValue) {\n this.category = categoryValue;\n }", "public void set(String s);", "public void setCategory1(String category1) {\n this.category1 = category1;\n }", "void addCategory(Category category);", "public static void updateCategoryName(Context context, Category category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category.category);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(category._id)}\r\n );\r\n db.close();\r\n }", "Category selectCategory(String name);", "public void setNotiSubcategory(String value) {\r\n setAttributeInternal(NOTISUBCATEGORY, value);\r\n }", "private void setSuggestedCategory() {\n if (selectedCategoryKey != null) {\n return;\n }\n if (suggestedCategories != null && suggestedCategories.length != 0) {\n selectedCategoryKey = suggestedCategories[0].getKey();\n selectCategory.setText(suggestedCategories[0].getName());\n }\n }", "@Test\r\n\tpublic void testGetCategoryString() {\r\n\t\tManagedIncident incident = new ManagedIncident(\"jsmith\", Category.NETWORK, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Network\", incident.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident1 = new ManagedIncident(\"jsmith\", Category.DATABASE, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Database\", incident1.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident2 = new ManagedIncident(\"jsmith\", Category.INQUIRY, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Inquiry\", incident2.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident3 = new ManagedIncident(\"jsmith\", Category.HARDWARE, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Hardware\", incident3.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident4 = new ManagedIncident(\"jsmith\", Category.SOFTWARE, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Software\", incident4.getCategoryString());\r\n\t\t\r\n\t}", "public PropertySpecBuilder<T> category(String category)\n {\n Preconditions.checkArgument(this.category == null, \"category already set\");\n this.category = category;\n\n return this;\n }", "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }", "public TaxCategory(String category) {\n\t\tthis();\n\t\tthis.category =category;\n\t\t\n\t}", "public void setCldCat(CloudCategory cldCat) {\n cloudCategory = cldCat;\n }", "public String getCategory() {\r\n return category;\r\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "String getCategory();", "String getCategory();", "private void setCategoryImage(ImageView imageView, String url, TextView tV_category, String categoryName, int color) {\n // set image\n /* if (url!=null && !url.isEmpty())\n Picasso.with(mActivity)\n .load(url)\n .placeholder(R.drawable.default_circle_img)\n .error(R.drawable.default_circle_img)\n .into(imageView);*/\n\n if (url != null && !url.isEmpty())\n Glide.with(mActivity)\n .load(url)\n //.placeholder(R.drawable.default_circle_img)\n .error(R.drawable.default_circle_img)\n .into(imageView);\n\n // set category name\n if (categoryName != null) {\n // make first character of character is uppercase\n categoryName = categoryName.substring(0, 1).toUpperCase() + categoryName.substring(1).toLowerCase();\n tV_category.setText(categoryName);\n tV_category.setTextColor(color);\n }\n }", "public void setCategory(String category) {\n\t\tthis.category = category;\n\t}", "public void setCategory(String category) {\n\t\tthis.category = category;\n\t}", "public void setCategory(Integer category) {\n this.category = category;\n }", "@JsonProperty(\"category\")\n public void setCategory(String category) {\n this.category = category;\n }", "public void changeCategoryName(Category category, String name) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n category.setName(name);\n dbb.overwriteCategory(category);\n dbb.commit();\n dbb.closeConnection();\n }", "void setValue(String value);" ]
[ "0.70108235", "0.7005408", "0.69569737", "0.6936365", "0.69074583", "0.6880508", "0.674544", "0.6731428", "0.6632844", "0.6488323", "0.6413194", "0.64019364", "0.6400756", "0.63503724", "0.63331497", "0.63304913", "0.63283527", "0.63115215", "0.62481797", "0.62102544", "0.6185131", "0.6150871", "0.6141836", "0.613991", "0.61370015", "0.6060183", "0.60455227", "0.60269475", "0.60131395", "0.60040766", "0.59495354", "0.5948517", "0.59432745", "0.5912501", "0.5909262", "0.58923286", "0.5877047", "0.58526486", "0.5846781", "0.58138466", "0.5812104", "0.5812104", "0.58056015", "0.5786436", "0.5786436", "0.5760193", "0.57403964", "0.5730827", "0.57305944", "0.5730094", "0.5729333", "0.57288134", "0.57226914", "0.571577", "0.57136714", "0.57047075", "0.5682585", "0.56818175", "0.5677201", "0.5658284", "0.56558603", "0.56558603", "0.56558603", "0.56558603", "0.56558603", "0.56537366", "0.56537366", "0.565336", "0.56515574", "0.563672", "0.56280214", "0.56174344", "0.561206", "0.5592901", "0.55709565", "0.55703", "0.5560178", "0.5553609", "0.5531254", "0.5514227", "0.551293", "0.55064756", "0.5503531", "0.5501754", "0.549588", "0.5489976", "0.5489276", "0.548555", "0.548555", "0.548555", "0.548555", "0.54855376", "0.54855376", "0.5478328", "0.5477452", "0.5477452", "0.5460456", "0.5450344", "0.54313004", "0.54287887" ]
0.5475219
96
all stuff inherited from PreparedStatement
public void setArray(int i, Array x);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void prepare(PreparedStatement statement) {\n }", "public interface PreparedStatement extends Statement \n {\n /**\n 59: * This method executes a prepared SQL query and returns its ResultSet.\n 60: *\n 61: * @return The ResultSet of the SQL statement.\n 62: * @exception SQLException If an error occurs.\n 63: */\n ResultSet executeQuery() throws SQLException;\n \n /**\n 67: * This method executes an SQL INSERT, UPDATE or DELETE statement. SQL\n 68: * statements that return nothing such as SQL DDL statements can be executed.\n 69: *\n 70: * @return The result is either the row count for INSERT, UPDATE or DELETE\n 71: * statements; or 0 for SQL statements that return nothing.\n 72: * @exception SQLException If an error occurs.\n 73: */\n int executeUpdate() throws SQLException;\n \n /**\n 7: * This method populates the specified parameter with a SQL NULL value\n 78: * for the specified type.\n 79: *\n 80: * @param index The index of the parameter to set.\n 81: * @param sqlType The SQL type identifier of the parameter from \n 82: * <code>Types</code>\n 83: *\n 84: * @exception SQLException If an error occurs.\n 85: */\n void setNull(int index, int sqlType) throws SQLException;\n \n /**\n : * This method sets the specified parameter from the given Java\n 90: * <code>boolean</code> value.\n 91: *\n 92: * @param index The index of the parameter value to set.\n 93: * @param value The value of the parameter.\n 94: * @exception SQLException If an error occurs.\n 95: */\n void setBoolean(int index, boolean value) throws SQLException;\n \n /**\n : * This method sets the specified parameter from the given Java\n 100: * <code>byte</code> value.\n 101: *\n 102: * @param index The index of the parameter value to set.\n 103: * @param value The value of the parameter.\n 104: * @exception SQLException If an error occurs.\n 105: */\n void setByte(int index, byte value) throws SQLException;\n \n /**\n 109: * This method sets the specified parameter from the given Java\n 110: * <code>short</code> value.\n 111: *\n 112: * @param index The index of the parameter value to set.\n 113: * @param value The value of the parameter.\n 114: * @exception SQLException If an error occurs.\n 115: */\n void setShort(int index, short value) throws SQLException;\n \n /**\n 119: * This method sets the specified parameter from the given Java\n 120: * <code>int</code> value.\n 121: *\n 122: * @param index The index of the parameter value to set.\n 123: * @param value The value of the parameter.\n 124: * @exception SQLException If an error occurs.\n 125: */\n void setInt(int index, int value) throws SQLException;\n \n /**\n 129: * This method sets the specified parameter from the given Java\n 130: * <code>long</code> value.\n 131: *\n 132: * @param index The index of the parameter value to set.\n 133: * @param value The value of the parameter.\n 134: * @exception SQLException If an error occurs.\n 135: */\n void setLong(int index, long value) throws SQLException;\n \n /**\n 139: * This method sets the specified parameter from the given Java\n 140: * <code>float</code> value.\n 141: *\n 142: * @param index The index of the parameter value to set.\n 143: * @param value The value of the parameter.\n 144: * @exception SQLException If an error occurs.\n 145: */\n void setFloat(int index, float value) throws SQLException;\n \n /**\n 149: * This method sets the specified parameter from the given Java\n 150: * <code>double</code> value.\n 151: *\n 152: * @param index The index of the parameter value to set.\n 153: * @param value The value of the parameter.\n 154: * @exception SQLException If an error occurs.\n 155: */\n void setDouble(int index, double value) throws SQLException;\n \n /**\n 159: * This method sets the specified parameter from the given Java\n 160: * <code>java.math.BigDecimal</code> value.\n 161: *\n 162: * @param index The index of the parameter value to set.\n 163: * @param value The value of the parameter.\n 164: * @exception SQLException If an error occurs.\n 165: */\n void setBigDecimal(int index, BigDecimal value) throws\n SQLException;\n \n /**\n 170: * This method sets the specified parameter from the given Java\n 171: * <code>String</code> value.\n 172: *\n 173: * @param index The index of the parameter value to set.\n 174: * @param value The value of the parameter.\n 175: * @exception SQLException If an error occurs.\n 176: */\n void setString(int index, String value) throws SQLException;\n \n /**\n 180: * This method sets the specified parameter from the given Java\n 181: * <code>byte</code> array value.\n 182: *\n 183: * @param index The index of the parameter value to set.\n 184: * @param value The value of the parameter.\n 185: * @exception SQLException If an error occurs.\n 186: */\n void setBytes(int index, byte[] value) throws SQLException;\n \n /**\n 190: * This method sets the specified parameter from the given Java\n 191: * <code>java.sql.Date</code> value.\n 192: *\n 193: * @param index The index of the parameter value to set.\n 194: * @param value The value of the parameter.\n 195: * @exception SQLException If an error occurs.\n 196: */\n void setDate(int index, Date value) throws SQLException;\n \n /**\n 200: * This method sets the specified parameter from the given Java\n 201: * <code>java.sql.Time</code> value.\n 202: *\n 203: * @param index The index of the parameter value to set.\n 204: * @param value The value of the parameter.\n 205: * @exception SQLException If an error occurs.\n 206: */\n void setTime(int index, Time value) throws SQLException;\n \n /**\n 210: * This method sets the specified parameter from the given Java\n 211: * <code>java.sql.Timestamp</code> value.\n 212: *\n 213: * @param index The index of the parameter value to set.\n 214: * @param value The value of the parameter.\n 215: * @exception SQLException If an error occurs.\n 216: */\n void setTimestamp(int index, Timestamp value)\n throws SQLException;\n \n /**\n 221: * This method sets the specified parameter from the given Java\n 222: * ASCII <code>InputStream</code> value.\n 223: *\n 224: * @param index The index of the parameter value to set.\n 225: * @param stream The stream from which the parameter value is read.\n 226: * @param count The number of bytes in the stream.\n 227: * @exception SQLException If an error occurs.\n 228: */\n void setAsciiStream(int index, InputStream stream, int count)\n throws SQLException;\n \n /**\n 233: * This method sets the specified parameter from the given Java\n 234: * Unicode UTF-8 <code>InputStream</code> value.\n 235: *\n 236: * @param index The index of the parameter value to set.\n 237: * @param stream The stream from which the parameter value is read.\n 238: * @param count The number of bytes in the stream.\n 239: * @exception SQLException If an error occurs.\n 240: * @deprecated\n 241: */\n void setUnicodeStream(int index, InputStream stream, int count)\n throws SQLException;\n \n /**\n 246: * This method sets the specified parameter from the given Java\n 247: * binary <code>InputStream</code> value.\n 248: *\n 249: * @param index The index of the parameter value to set.\n 250: * @param stream The stream from which the parameter value is read.\n 251: * @param count The number of bytes in the stream.\n 252: * @exception SQLException If an error occurs.\n 253: */\n void setBinaryStream(int index, InputStream stream, int count)\n throws SQLException;\n \n /**\n 258: * This method clears all of the input parameter that have been\n 259: * set on this statement.\n 260: *\n 261: * @exception SQLException If an error occurs.\n 262: */\n void clearParameters() throws SQLException;\n \n /**\n 266: * This method sets the specified parameter from the given Java\n 267: * <code>Object</code> value. The specified SQL object type will be used.\n 268: *\n 269: * @param index The index of the parameter value to set.\n 270: * @param value The value of the parameter.\n 271: * @param sqlType The SQL type to use for the parameter, from \n 272: * <code>Types</code>\n 273: * @param scale The scale of the value, for numeric values only.\n 274: * @exception SQLException If an error occurs.\n 275: * @see Types\n 276: */\n void setObject(int index, Object value, int sqlType, int scale)\n throws SQLException;\n \n /**\n 281: * This method sets the specified parameter from the given Java\n 282: * <code>Object</code> value. The specified SQL object type will be used.\n 283: *\n 284: * @param index The index of the parameter value to set.\n 285: * @param value The value of the parameter.\n 286: * @param sqlType The SQL type to use for the parameter, from \n 287: * <code>Types</code>\n 288: * @exception SQLException If an error occurs.\n 289: * @see Types\n 290: */\n void setObject(int index, Object value, int sqlType)\n throws SQLException;\n \n /**\n 295: * This method sets the specified parameter from the given Java\n 296: * <code>Object</code> value. The default object type to SQL type mapping\n 297: * will be used.\n 298: *\n 299: * @param index The index of the parameter value to set.\n 300: * @param value The value of the parameter.\n 301: * @exception SQLException If an error occurs.\n 302: */\n void setObject(int index, Object value) throws SQLException;\n \n /**\n 306: * This method executes a prepared SQL query.\n 307: * Some prepared statements return multiple results; the execute method\n 308: * handles these complex statements as well as the simpler form of\n 309: * statements handled by executeQuery and executeUpdate.\n 310: *\n 311: * @return The result of the SQL statement.\n 312: * @exception SQLException If an error occurs.\n 313: */\n boolean execute() throws SQLException;\n \n /**\n 317: * This method adds a set of parameters to the batch for JDBC 2.0.\n 318: * @exception SQLException If an error occurs.\n 319: */\n void addBatch() throws SQLException;\n /**\n 323: * This method sets the specified parameter from the given Java\n 324: * character <code>Reader</code> value.\n 325: *\n 326: * @param index The index of the parameter value to set.\n 327: * @param reader The reader from which the parameter value is read.\n 328: * @param count The number of characters in the stream.\n 329: * @exception SQLException If an error occurs.\n 330: */\n void setCharacterStream(int index, Reader reader, int count)\n throws SQLException;\n \n /**\n 335: * This method sets the specified parameter from the given Java\n 336: * <code>Ref</code> value. The default object type to SQL type mapping\n 337: * will be used.\n 338: *\n 339: * @param index The index of the parameter value to set.\n 340: * @param value The <code>Ref</code> used to set the value of the parameter.\n 341: * @exception SQLException If an error occurs.\n 342: */\n void setRef(int index, Ref value) throws SQLException;\n \n /**\n 346: * This method sets the specified parameter from the given Java\n 347: * <code>Blob</code> value. The default object type to SQL type mapping\n 348: * will be used.\n 349: *\n 350: * @param index The index of the parameter value to set.\n 351: * @param value The <code>Blob</code> used to set the \n 352: * value of the parameter.\n 353: * @exception SQLException If an error occurs.\n 354: */\n void setBlob(int index, Blob value) throws SQLException;\n \n /**\n 358: * This method sets the specified parameter from the given Java\n 359: * <code>Clob</code> value. The default object type to SQL type mapping\n 360: * will be used.\n 361: *\n 362: * @param index The index of the parameter value to set.\n 363: * @param value The <code>Clob</code> used to set the\n 364: * value of the parameter.\n 365: * @exception SQLException If an error occurs.\n 366: */\n void setClob(int index, Clob value) throws SQLException;\n \n /**\n 370: * This method sets the specified parameter from the given Java\n 371: * <code>Array</code> value. The default object type to SQL type mapping\n 372: * will be used.\n 373: *\n 374: * @param index The index of the parameter value to set.\n 375: * @param value The value of the parameter.\n 376: * @exception SQLException If an error occurs.\n 377: */\n void setArray(int index, Array value) throws SQLException;\n \n /**\n 381: * This method returns meta data for the result set from this statement.\n 382: *\n 383: * @return Meta data for the result set from this statement.\n 384: * @exception SQLException If an error occurs.\n 385: */\n ResultSetMetaData getMetaData() throws SQLException;\n \n /**\n 389: * This method sets the specified parameter from the given Java\n 390: * <code>java.sql.Date</code> value.\n 391: *\n 392: * @param index The index of the parameter value to set.\n 393: * @param value The value of the parameter.\n 394: * @param cal The <code>Calendar</code> to use for timezone and locale.\n 395: * @exception SQLException If an error occurs.\n 396: */\n void setDate(int index, Date value, Calendar cal)\n throws SQLException;\n \n /**\n 401: * This method sets the specified parameter from the given Java\n 402: * <code>java.sql.Time</code> value.\n 403: *\n 404: * @param index The index of the parameter value to set.\n 405: * @param value The value of the parameter.\n 406: * @param cal The <code>Calendar</code> to use for timezone and locale.\n 407: * @exception SQLException If an error occurs.\n 408: */\n void setTime(int index, Time value, Calendar cal)\n throws SQLException;\n \n /**\n 413: * This method sets the specified parameter from the given Java\n 414: * <code>java.sql.Timestamp</code> value.\n 415: *\n 416: * @param index The index of the parameter value to set.\n 417: * @param value The value of the parameter.\n 418: * @param cal The <code>Calendar</code> to use for timezone and locale.\n 419: * @exception SQLException If an error occurs.\n 420: */\n void setTimestamp(int index, Timestamp value, Calendar cal)\n throws SQLException;\n \n /**\n 425: * This method populates the specified parameter with a SQL NULL value\n 426: * for the specified type.\n 427: *\n 428: * @param index The index of the parameter to set.\n 429: * @param sqlType The SQL type identifier of the parameter from\n 430: * <code>Types</code>\n 431: * @param typeName The name of the data type, for user defined types.\n 432: * @exception SQLException If an error occurs.\n 433: */\n void setNull(int index, int sqlType, String typeName)\n throws SQLException;\n \n /**\n 438: * This method sets the specified parameter from the given Java\n 439: * <code>java.net.URL</code> value.\n 440: * \n 441: * @param index The index of the parameter to set.\n 442: * @param value The value of the parameter.\n 443: * @exception SQLException If an error occurs.\n 444: * @since 1.4\n 445: */\n void setURL(int index, URL value) throws SQLException;\n \n /**\n 449: * Returns information about the parameters set on this \n 450: * <code>PreparedStatement</code> (see {@link ParameterMetaData} for a\n 451: * detailed description of the provided information).\n 452: * \n 453: * @return Meta data for the parameters of this statement.\n 454: * @see ParameterMetaData\n 455: * @since 1.4\n 456: */\n ParameterMetaData getParameterMetaData() throws SQLException;\n }", "@Override\n public boolean hasPreparedStatement() {\n return true;\n }", "@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn this.conn.prepareStatement(sql);\r\n\t\t}", "PreparedStatementEx(PreparedStatement preparedStatement, String sql) {\r\n this.pStmt = preparedStatement;\r\n this.origSql = (null == sql) ? EMPTY_SQL : sql;\r\n }", "@Override\r\n public PreparedStatement prepareStatement(DatabaseQueryBuilder query) throws SQLException {\r\n final PreparedStatement ps = super.prepareStatement(query);\r\n ps.setQueryTimeout(OracleERPUtil.ORACLE_TIMEOUT);\r\n return ps;\r\n }", "protected PreparedStatement prepareStmt() throws SQLException {\n if (stmt == null) {\n buildSQL();\n }\n\n return stmt;\n }", "@Override\r\n public PreparedStatement prepareStatement(final String sql, final List<SQLParam> params)\r\n throws SQLException {\r\n LOG.ok(\"prepareStatement sql: {0}\", sql);\r\n final PreparedStatement ps = super.prepareStatement(sql, params);\r\n ps.setQueryTimeout(OracleERPUtil.ORACLE_TIMEOUT);\r\n return ps;\r\n }", "@Override\n public String getPreparedStatementQuery() throws SQLException {\n StringBuilder sb = new StringBuilder();\n\n String statementQuery = getStatementQuery();\n\n // iterate over the characters in the query replacing the parameter placeholders\n // with the actual values\n int currentParameter = 0;\n for( int pos = 0; pos < statementQuery.length(); pos ++) {\n char character = statementQuery.charAt(pos);\n if( statementQuery.charAt(pos) == '?' && currentParameter < getParameterCount()) {\n // replace with parameter value\n boolean shouldQuote = true;\n switch( parameterMetaData.getParameterType(currentParameter+1)) {\n case Types.BIT:\n case Types.TINYINT:\n case Types.SMALLINT:\n case Types.INTEGER:\n case Types.BIGINT:\n case Types.FLOAT:\n case Types.REAL:\n case Types.DOUBLE:\n case Types.NUMERIC:\n case Types.DECIMAL:\n case Types.BOOLEAN:\n shouldQuote = false;\n }\n if( parameterValues.get(currentParameter) == null) {\n sb.append(\"NULL\");\n } else {\n if( shouldQuote ) {\n sb.append(\"'\");\n }\n sb.append(parameterValues.get(currentParameter));\n if( shouldQuote ) {\n sb.append(\"'\");\n }\n }\n currentParameter++;\n } else {\n sb.append(character);\n }\n }\n\n return sb.toString();\n }", "abstract void setStatement(@NotNull PreparedStatement preparedStatement, @NotNull T object) throws SQLException, NotEnoughDataException;", "public interface StatementHandler {\n void supplyToStatement(PreparedStatement statement);\n}", "public PreparedStatement getPreparedStatement(String sql) {\n try {\n prepStmt = conn.prepareStatement(sql);\n } catch (SQLException sqle) {\n System.out.println(sqle.getMessage());\n }\n return prepStmt;\n }", "public String prepareStatementString() throws SQLException {\n\t\tList<Object> argList = new ArrayList<Object>();\n\t\treturn buildStatementString(argList);\n\t}", "protected abstract void fillUpdateStatement (final PreparedStatement statement, final T obj)\n \t\t\tthrows SQLException;", "@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint resultSetType, int resultSetConcurrency,\r\n\t\t\t\tint resultSetHoldability) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint resultSetType, int resultSetConcurrency)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}", "protected abstract void fillInsertStatement (final PreparedStatement statement, final T obj)\n \t\t\tthrows SQLException;", "void setValues(PreparedStatement ps) throws SQLException;", "@Override\n\tpublic void setParameter(PreparedStatement ps, int arg1, Object arg2, String arg3) throws SQLException {\n\t}", "public static interface CreateStatementFn {\r\n PreparedStatement f(Connection c) throws SQLException;\r\n }", "public PreparedStatement getPreparedStatement(String query) throws SQLException {\n return dbConnection.prepareStatement(query);\n }", "public SQLPreparedStatement getPreparedSQLStatement(String SQLInnerClassName) throws Exception\r\n\t{\r\n\t\treturn(SQLPreparedStatement) getSQLClass(SQLInnerClassName);\r\n\t}", "protected static PreparedStatement prepareStatement(ReviewDb db, String sql)\n throws SQLException {\n return ((JdbcSchema) db).getConnection().prepareStatement(sql);\n }", "public PreparedStatement getNativePreparedStatement(PreparedStatement ps)\r\n/* 74: */ throws SQLException\r\n/* 75: */ {\r\n/* 76:149 */ return ps;\r\n/* 77: */ }", "protected abstract void prepareStatementForUpdate(PreparedStatement statement, T object) throws PersistException;", "public PreparedStatement prepare(String str, Connection connection) throws SQLException {\n if (this.generatedResultReader == null) {\n return connection.prepareStatement(str, 2);\n }\n if (this.configuration.getPlatform().supportsGeneratedColumnsInPrepareStatement()) {\n return connection.prepareStatement(str, this.generatedResultReader.generatedColumns());\n }\n return connection.prepareStatement(str, 1);\n }", "public void beforeExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException\n {\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public PreparedStatement prepareStatement(String query) {\n \tPreparedStatement ps = null;\n \ttry {\n\t\t\tps = con.prepareStatement(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n \treturn ps;\n }", "private synchronized PreparedStatement createPreparedStatement(String query,Queue<Object> parameters) throws SQLException {\r\n\t\tPreparedStatement statement = DBConnection.prepareStatement(query);\r\n\r\n\t\tfor(int parameterNum = 1;!parameters.isEmpty();parameterNum++)\r\n\t\t{\r\n\t\t\tObject parameter = parameters.poll();\r\n\t\t\tif (parameter instanceof String) {\r\n\t\t\t\tstatement.setString(parameterNum,(String)parameter);\r\n\t\t\t}\r\n\t\t\telse if (parameter instanceof Integer) {\r\n\t\t\t\tstatement.setInt(parameterNum,((Integer)parameter).intValue());\r\n\t\t\t}\r\n\t\t\telse if (parameter instanceof Boolean){\r\n\t\t\t\tstatement.setBoolean(parameterNum, ((Boolean)parameter).booleanValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn statement;\r\n\t}", "void execute(@Language(\"MySQL\") @Nonnull String statement, @Nonnull SqlConsumer<PreparedStatement> preparer);", "@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint[] columnIndexes) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "Statement getStmt();", "public PreparedStatement getPreparedStatement() {\r\n return this.pStmt;\r\n }", "PreparedStatement getQueryStatement(String statement) throws SQLException {\n // This will prepare the statement *every time* because queryString never equals the statement.\n // Can we just rely on the fact that the JDBC driver will optimize that out of the way?\n if (queryStatement == null || !queryString.equals(statement)) {\n JdbcUtil.closeQuietly(queryStatement);\n queryStatement = prepareStatement(sqlConnection, prepareStringStatement(statement));\n }\n return queryStatement;\n }", "@Override\n protected PreparedStatement getObject() {\n try {\n return this.proxy.prepareStatement(\"SELECT * FROM country\");\n } catch (SQLException sex) {\n throw new UnsupportedOperationException(\"cannot provide object for testing\", sex);\n }\n }", "private static void executeQueryUsingPreparedStatement() {\n\t\t\n\t\tSystem.out.println(\"\\nFetching data using PreparedStatement ....\");\n\t\t//Connection object use to create connection.\n\t\tConnection con = null;\n\t\t//Prepared statement object to run query.\n\t\tPreparedStatement ps = null;\n\t\t//Result set object to get the result of the query.\n\t\tResultSet rs = null;\n\t\tConnectionUtil conUtil = new ConnectionUtil();\n\t\tcon = conUtil.getConnection();\n\t\t//Query to be run.\n\t\tString query = \"select T.title_id, T.title_name, T.publisher_id, T.subject_id FROM titles T, \"\n\t\t\t\t+ \"title_author TA inner join authors A on A.author_id = TA.author_id where\"\n\t\t\t\t+ \" T.title_id = TA.title_id && concat(A.author_fname,' ', A.author_lname) = ?\";\n\t\tString author_name = \"salim khan\";\n\n\t\ttry {\n\t\t\tps = con.prepareStatement(query);\n\t\t\t/* set variable in prepared statement */\n\t\t\tps.setString(1, author_name);\n\t\t\trs = ps.executeQuery();\n\t\t\tList<Titles> titleList = new ArrayList<Titles>();\n\t\t\twhile (rs.next()) {\n\t\t\t\tTitles titles = new Titles();\n\t\t\t\ttitles.setTitleId(Integer.parseInt(rs.getString(1)));\n\t\t\t\ttitles.setTitleName(rs.getString(2));\n\t\t\t\ttitles.setPublishreId(Integer.parseInt(rs.getString(3)));\n\t\t\t\ttitles.setSubjectId(Integer.parseInt(rs.getString(4)));\n\t\t\t\ttitleList.add(titles);\n\t\t\t}\n\t\t\tSystem.out.println(\"List of books are\");\n\t\t\tSystem.out.println(titleList);\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t/* close connection */\n\t\t\ttry {\n\t\t\t\tif (con != null) {\n\t\t\t\t\tcon.close();\n\t\t\t\t}\n\t\t\t\tif (ps != null) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint autoGeneratedKeys) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "@Override\n\tpublic void executeUpdateDinamicSQL(String s) throws Exception {\n\t\t\n\t}", "protected abstract Object execute(JdbcChannel con,\n PreparedStatement stmt,\n String flags)\n throws ProcedureException;", "protected abstract PreparedResult implement( RelRoot root );", "public void prepStmt(String sql) {\n\t\ttry {\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t} catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testPreparedStatementOne() throws Throwable\n {\n assertNotNull(ds);\n Connection c = ds.getConnection();\n assertNotNull(c);\n \n Statement st = c.createStatement();\n assertNotNull(st);\n \n // Create\n st.execute(\"CREATE TABLE Employees (Employee_ID INTEGER, Name VARCHAR(30));\");\n st.execute(\"INSERT INTO Employees VALUES (1, '#1')\");\n st.execute(\"INSERT INTO Employees VALUES (2, '#2')\");\n \n // Prepared statement\n PreparedStatement pstmt = c.prepareStatement(\"SELECT * FROM Employees WHERE Employee_ID = ?\");\n assertNotNull(pstmt);\n \n pstmt.setInt(1, 1);\n \n ResultSet rs = pstmt.executeQuery();\n assertNotNull(rs);\n \n assertTrue(rs.next());\n \n // Drop\n st.execute(\"DROP TABLE Employees\");\n \n rs.close();\n pstmt.close();\n st.close();\n c.close();\n }", "@Override\r\n\tpublic int execPrepareStatement(String stmt, List<Object> args)\r\n\t\tthrows SQLException\r\n\t{\n\t\tPreparedStatement prepStmt = prepareStatement(stmt);\r\n\t\t\r\n\t\t// Fill the statement with data\r\n\t\tint index = 1;\r\n\t\tfor(Object o : args)\r\n\t\t{\r\n\t\t\tif (o instanceof Integer) \r\n\t\t\t{\r\n\t\t\t\tprepStmt.setInt(index, (Integer)o);\r\n\t\t\t}\r\n\t\t\telse if (o instanceof Double) \r\n\t\t\t{\r\n\t\t\t\tprepStmt.setDouble(index, (Double)o);\r\n\t\t\t}\r\n\t\t\telse if (o instanceof Boolean) \r\n\t\t\t{\r\n\t\t\t\tprepStmt.setBoolean(index, (Boolean)o);\r\n\t\t\t}\r\n\t\t\telse if (o instanceof Timestamp) \r\n\t\t\t{\r\n\t\t\t\tprepStmt.setTimestamp(index, (Timestamp)o);\r\n\t\t\t}\r\n\t\t\telse if (o instanceof LocalDate) \r\n\t\t\t{\r\n\t\t\t\tprepStmt.setDate(index, Date.valueOf(\r\n\t\t\t\t\t(LocalDate)o));\r\n\t\t\t}\r\n\t\t\telse if (o instanceof Blob) \r\n\t\t\t{\r\n\t\t\t\tprepStmt.setBinaryStream(index, \r\n\t\t\t\t\t((Blob)o).getBinaryStream());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tprepStmt.setString(index, (String)o);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\t\r\n\t\t// Build the log statement string\r\n\t\tfor(Object a : args)\r\n\t\t{\r\n\t\t\tstmt = stmt.replaceFirst(\"\\\\?\", \r\n\t\t\t\t\"\\\"\" + String.valueOf(a) + \"\\\"\");\r\n\t\t}\r\n\r\n\t\tCooLog.debug(\"Executing prepared SQL Update \"\r\n\t\t\t+ \"statement: \\\"\" + stmt + \"\\\" \");\r\n\t\treturn prepStmt.executeUpdate();\r\n\t}", "public void prepare() {\n if ((!hasMultipleStatements()) && (getSQLStatement() == null)) {\n throw QueryException.sqlStatementNotSetProperly(getQuery());\n }\n\n // Cannot call super yet as the call is not built.\n }", "public static PreparedStatement query(String sql) throws SQLException, Exception {\n return Banco.getConexao().prepareStatement(sql);\n }", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\n\t}", "@Override\n\tprotected ResultSet executeSql(PreparedStatement stmt) {\n\t\ttry {\n\t\t\tstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic PreparedStatement loadParameters(PreparedStatement ps, CHVApptBean bean) throws SQLException {\n\t\tps.setString(1, bean.getApptType());\n\t\tps.setLong(2, bean.getPatient());\n\t\tps.setLong(3, bean.getHcp());\n\t\tps.setTimestamp(4, bean.getDate());\n\t\tps.setString(5, bean.getComment());\n\t\tps.setString(6, bean.getPreferDMethod());\n\t\tps.setString(7, bean.getWhenScheduled());\n\t\treturn ps;\n\t}", "public interface StatementRewriter\n{\n /**\n * Munge up the SQL as desired. Responsible for figuring out ow to bind any\n * arguments in to the resultant prepared statement.\n *\n * @param sql The SQL to rewrite\n * @param params contains the arguments which have been bound to this statement.\n * @return somethign which can provde the actual SQL to prepare a statement from\n * and which can bind the correct arguments to that prepared statement\n */\n RewrittenStatement rewrite(String sql, Binding params);\n}", "private void setCommonParameters(Product product, PreparedStatement stmt) throws SQLException {\n\t\t// setting the name, first parameter, second parameter and etc.\n\t\tstmt.setInt(1, product.getQuantity());\n\t\tstmt.setString(2, product.getName());\n\t\tstmt.setString(3, product.getDescription());\n\t\tstmt.setDouble(4, product.getPrice());\n\t\tstmt.setDate(5, Date.valueOf(product.getEntryDate()));\n\t\tstmt.setInt(6, product.getCategoryId());\n\t}", "Object executeSelectQuery(String sql) { return null;}", "protected PreparedStatement prepare(JdbcChannel con,\n CallContext cx,\n Bindings bindings)\n throws ProcedureException {\n \n String sql = (String) bindings.getValue(BINDING_SQL);\n String[] names = bindings.getNames();\n ArrayList fields = new ArrayList();\n SqlField field;\n StringBuffer buffer = new StringBuffer();\n ArrayList params = new ArrayList();\n Object value;\n int pos;\n \n for (int i = 0; i < names.length; i++) {\n if (bindings.getType(names[i]) == Bindings.ARGUMENT) {\n pos = 0;\n while ((pos = sql.indexOf(\":\" + names[i], pos)) >= 0) {\n field = new SqlField(sql, pos, names[i]);\n fields.add(field);\n pos = field.endPos;\n }\n }\n }\n Collections.sort(fields);\n pos = 0;\n for (int i = 0; i < fields.size(); i++) {\n field = (SqlField) fields.get(i);\n value = bindings.getValue(field.fieldName, null);\n buffer.append(sql.substring(pos, field.startPos));\n buffer.append(field.bind(value, params));\n pos = field.endPos;\n }\n buffer.append(sql.substring(pos));\n try {\n if (cx.isTracing()) {\n cx.log(\"JDBC \" + con.getConnection() + \" SQL:\");\n cx.log(buffer.toString());\n }\n return con.prepare(buffer.toString(), params);\n } catch (ConnectionException e) {\n throw new ProcedureException(e.getMessage());\n }\n }", "protected void bind(PreparedStatement preparedStatement, ParameterBinding[] bindings)\n throws SQLException, Exception {\n // bind parameters\n if (bindings.length > 0) {\n int len = bindings.length;\n for (int i = 0; i < len; i++) {\n adapter.bindParameter(\n preparedStatement,\n bindings[i].getValue(),\n i + 1,\n bindings[i].getJdbcType(),\n bindings[i].getPrecision());\n }\n }\n }", "public void prepareExecuteSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteSelect();\n }", "private void preparedStatementForEmployeeData() {\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tString sql = \"Select * from employee_payroll_2 WHERE name = ?\";\n\t\t\temployeePayrollDataStatement = connection.prepareStatement(sql);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected abstract NativeSQLStatement createNativeSridStatement();", "public PreparedStatement getStatement() {\n return statement;\n }", "protected void setParameters(PreparedStatement pstmt, boolean forCount) throws SQLException\n \t{\n \t\tint index = 1;\n \t\tif (fDocumentNo.getText().length() > 0)\n \t\t\tpstmt.setString(index++, getSQLText(fDocumentNo));\n if (fRoutingNo.getText().length() > 0)\n pstmt.setString(index++, getSQLText(fRoutingNo)); // Marcos Zúñiga\n if (fCheckNo.getText().length() > 0)\n pstmt.setString(index++, getSQLText(fCheckNo)); // Marcos Zúñiga\n if (fA_Name.getText().length() > 0)\n pstmt.setString(index++, getSQLText(fA_Name)); // Marcos Zúñiga\n \t\t//\n \t\tif (fDateFrom.getValue() != null || fDateTo.getValue() != null)\n \t\t{\n \t\t\tTimestamp from = (Timestamp)fDateFrom.getValue();\n \t\t\tTimestamp to = (Timestamp)fDateTo.getValue();\n \t\t\tlog.fine(\"Date From=\" + from + \", To=\" + to);\n \t\t\tif (from == null && to != null)\n \t\t\t\tpstmt.setTimestamp(index++, to);\n \t\t\telse if (from != null && to == null)\n \t\t\t\tpstmt.setTimestamp(index++, from);\n \t\t\telse if (from != null && to != null)\n \t\t\t{\n \t\t\t\tpstmt.setTimestamp(index++, from);\n \t\t\t\tpstmt.setTimestamp(index++, to);\n \t\t\t}\n \t\t}\n \t\t//\n \t\tif (fAmtFrom.getValue() != null || fAmtTo.getValue() != null)\n \t\t{\n \t\t\tBigDecimal from = (BigDecimal)fAmtFrom.getValue();\n \t\t\tBigDecimal to = (BigDecimal)fAmtTo.getValue();\n \t\t\tlog.fine(\"Amt From=\" + from + \", To=\" + to);\n \t\t\tif (from == null && to != null)\n \t\t\t\tpstmt.setBigDecimal(index++, to);\n \t\t\telse if (from != null && to == null)\n \t\t\t\tpstmt.setBigDecimal(index++, from);\n \t\t\telse if (from != null && to != null)\n \t\t\t{\n \t\t\t\tpstmt.setBigDecimal(index++, from);\n \t\t\t\tpstmt.setBigDecimal(index++, to);\n \t\t\t}\n \t\t}\n \t\tpstmt.setString(index++, fIsReceipt.isSelected() ? \"Y\" : \"N\");\n \t}", "NetPreparedStatement(ClientPreparedStatement statement,\n NetAgent netAgent,\n NetConnection netConnection) {\n super(statement, netAgent, netConnection);\n initNetPreparedStatement(statement);\n }", "@Override\r\n\t\tpublic CallableStatement prepareCall(String sql) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\n\t}", "public PreparedStatement getNativePreparedStatement(PreparedStatement ps)\r\n/* 57: */ throws SQLException\r\n/* 58: */ {\r\n/* 59:108 */ return (PreparedStatement)ps.unwrap(this.preparedStatementType);\r\n/* 60: */ }", "@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tString[] columnNames) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public interface SQLStatementWrapper\n\t{\n\t/**\n\t * Wrap an SQL statement for execution, e.g. by appending a terminator\n\t * @param statement SQL statement to wrap\n\t * @return Wrapped statement\n\t */\n\tpublic String wrapStatement(String statement);\n\t}", "public PreparedStatement loadParameters(Connection conn, PreparedStatement pstring, PreviousPregnancyInfo pi,\n\t\t\tboolean newInstance) throws SQLException {\n\t\tPregLoader pl = new PregLoader();\n\t\treturn pl.loadParameters(conn, pstring, pi, newInstance);\n\t}", "public PreparedStatement newPreparedStatement(String stmt) {\r\n PreparedStatement statement = null;\r\n try {\r\n statement = connection.prepareStatement(stmt);\r\n } catch (SQLException e) {\r\n log.warning(e.getMessage());\r\n }\r\n return statement;\r\n }", "abstract void setUpdateStatementId(@NotNull PreparedStatement preparedStatement, @NotNull T object) throws SQLException;", "protected void createStmt(String sql, boolean returnGeneratedKeys) throws SQLException {\n if (stmt != null) {\n throw new IllegalStateException(\"A statement has already been prepared!\");\n }\n\n this.query = sql;\n\n stmt = returnGeneratedKeys ?\n context.getConnection(getDescriptor().getRealm())\n .prepareStatement(sql, Statement.RETURN_GENERATED_KEYS) :\n context.getConnection(getDescriptor().getRealm())\n .prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n }", "public static void setPreparedStatement(Connection conn, String sqlStatement, int returnGeneratedKeys) throws SQLException {\n statement = conn.prepareStatement(sqlStatement);\n }", "public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}", "public void prepareInsertObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareInsertObject();\n }", "ResultSet executeQuery() throws SQLException;", "abstract T setObjectParams(@NotNull ResultSet rs) throws SQLException;", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "@Override\n public void setNonNullParameter(PreparedStatement ps, int i, Watermark parameter, JdbcType jdbcType)\n throws SQLException {\n ps.setString(i, parameter.toString());\n }", "@Test\n public void testToStringWithSQL() throws SQLException {\n try (PreparedStatement stmt = this.proxy\n .prepareStatement(\"SELECT * FROM country WHERE lang = ? OR callingcode = ?\")) {\n stmt.setString(1, \"de\");\n stmt.setInt(2, 42);\n String sql = stmt.toString();\n assertEquals(\"SELECT * FROM country WHERE lang = 'de' OR callingcode = 42\", sql);\n LOG.info(\"sql = \\\"{}\\\"\", sql);\n }\n }", "@Override\n\tpublic void setNonNullParameter(PreparedStatement ps, int i,\n\t Chromosome parameter, JdbcType jdbcType) throws SQLException\n\t{\n\t\tps.setInt(i, parameter.getChr());\n\t}", "public interface PrearedStatementCallBack<T> {\n T doPrearedStatementCallBack(PreparedStatement pstm);\n}", "boolean execute() throws SQLException;", "@Override\r\n\tpublic boolean excuteSql(String sql) {\n\t\tint result = 0;\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tresult = ps.executeUpdate();\r\n\t\t\tif(result == 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic BaseBean insertSQL(String sql, Connection con) {\n\t\treturn null;\r\n\t}", "public abstract SqlParameterSource getSqlParameterSource();", "public Vector executeCmd_v2(String sql_stmt) {\n \tVector v = null;\n \tListIterator li = null;\n \ttry {\n \t//String ipAddr = request.getRemoteAddr();\n \tContext initContext = new InitialContext();\n \tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \tcon = ds.getConnection();\n \t//update civitas\n \tstmt = con.prepareStatement(sql_stmt);\n \tif(sql_stmt.startsWith(\"select\")||sql_stmt.startsWith(\"SELECT\")||sql_stmt.startsWith(\"Select\")) {\n \t\trs = stmt.executeQuery();\n \t\tResultSetMetaData rsmd = rs.getMetaData();\n \t\tint columnsNumber = rsmd.getColumnCount();\n \t\tString col_label = null;\n \t\tString col_type = null;\n \t\tfor(int i=1;i<=columnsNumber;i++) {\n \t\t\t//getColumnName\n \t\t\t\tString col_name = rsmd.getColumnLabel(i);\n \t\t\t\tif(col_label==null) {\n \t\t\t\t\tcol_label = new String(col_name);\n \t\t\t\t\tcol_type = new String(\"`\");\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tcol_label = col_label+\"`\"+col_name;\n \t\t\t\t}\n \t\t\t\t//get col type\n \t\t\t\tint type = rsmd.getColumnType(i);\n \t\t\t\tif(type == java.sql.Types.DATE) {\n \t\t\t\t\tcol_type = col_type+\"date`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.DECIMAL || type == java.sql.Types.DOUBLE || type == java.sql.Types.FLOAT ) {\n \t\t\t\t\tcol_type = col_type+\"double`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.INTEGER || type == java.sql.Types.BIGINT || type == java.sql.Types.NUMERIC || type == java.sql.Types.SMALLINT) {\n \t\t\t\t\tcol_type = col_type+\"long`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.VARCHAR || type == java.sql.Types.LONGNVARCHAR || type == java.sql.Types.LONGVARCHAR || type == java.sql.Types.CHAR || type == java.sql.Types.NCHAR) {\n \t\t\t\t\tcol_type = col_type+\"string`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.TIME) {\n \t\t\t\t\tcol_type = col_type+\"time`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.BOOLEAN || type == java.sql.Types.TINYINT) {\n \t\t\t\t\tcol_type = col_type+\"boolean`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.TIMESTAMP) {\n \t\t\t\t\tcol_type = col_type+\"timestamp`\";\n \t\t\t\t}\n \t\t\t}\n \t\tif(v==null) {\n \t\t\t\tv = new Vector();\n \t\t\t\tli=v.listIterator();\n \t\t\t\tli.add(col_type);\n \t\t\t\tli.add(col_label);\n \t\t\t}\n \t\t\t\n \t\t//System.out.println(\"columnsNumber=\"+columnsNumber);\n \t\tString brs = null;\n \t\twhile(rs.next()) {\n \t\t\tfor(int i=1;i<=columnsNumber;i++) {\n \t\t\t\tString tmp = \"\";\n \t\t\t\t/*\n \t\t\t\t * ADA 2 metode cek column type, karena diupdate yg baruan adalah cara yg diatas, belum tau mana yg lebih efektif\n \t\t\t\t */\n \t\t\t\tcol_type = rsmd.getColumnTypeName(i);\n \t\t\t\t\n \t\t\t\tif(col_type.equalsIgnoreCase(\"VARCHAR\")||col_type.equalsIgnoreCase(\"TEXT\")||col_type.startsWith(\"CHAR\")) {\n \t\t\t\t\ttmp = \"\"+rs.getString(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"TINYINT\")) {\n \t\t\t\t\ttmp = \"\"+rs.getBoolean(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.contains(\"INT\")||col_type.contains(\"LONG\")) {\n \t\t\t\t\ttmp = \"\"+rs.getLong(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"DATE\")) {\n \t\t\t\t\ttmp = \"\"+rs.getDate(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"DECIMAL\")||col_type.equalsIgnoreCase(\"DOUBLE\")||col_type.equalsIgnoreCase(\"FLOAT\")) {\n \t\t\t\t\ttmp = \"\"+rs.getDouble(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"TIMESTAMP\")||col_type.equalsIgnoreCase(\"DATETIME\")) {\n \t\t\t\t\ttmp = \"\"+rs.getTimestamp(i);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(brs==null) {\n \t\t\t\t\tif(Checker.isStringNullOrEmpty(tmp)) {\n \t\t\t\t\t\tbrs = new String(\"null\");\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tbrs = new String(tmp);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tif(Checker.isStringNullOrEmpty(tmp)) {\n \t\t\t\t\t\tbrs = brs +\"`null\";\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tbrs = brs+\"`\"+tmp;\n \t\t\t\t\t}\n \t\t\t\t}\t\n \t\t\t}\n \t\t\t\t\n \t\t\tli.add(brs);\n \t\t\tbrs = null;\n \t\t}\n \t}\n \telse {\n \t\t//non select\n \t\tint i = stmt.executeUpdate();\n \t\tif(v==null) {\n \t\t\t\tv = new Vector();\n \t\t\t\tli=v.listIterator();\n \t\t\t\tli.add(\"string`string\");\n \t\t\t\tli.add(\"COMMAND`EXE\");\n \t\t\t}\n \t\t\n \t\tli.add(sql_stmt+\"`\"+i);\n \t}\n \t}\n \tcatch (NamingException e) {\n \t\te.printStackTrace();\n \t\tif(v==null) {\n\t\t\t\tv = new Vector();\n\t\t\t\tli=v.listIterator();\n\t\t\t\tli.add(\"ERROR\");\n\t\t\t}\n \t\tli.add(e.toString());\n \t}\n \tcatch (SQLException ex) {\n \t\tex.printStackTrace();\n \t\tif(v==null) {\n\t\t\t\tv = new Vector();\n\t\t\t\tli=v.listIterator();\n\t\t\t\tli.add(\"ERROR\");\n\t\t\t}\n \t\tli.add(ex.toString());\n \t} \n \tfinally {\n \t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t if (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t if (con!=null) try { con.close();} catch (Exception ignore){}\n \t}\n \ttry {\n \t\tv = Tool.removeDuplicateFromVector(v);\n \t}\n \tcatch(Exception e) {}\n \treturn v;\n }", "public abstract void toSQL(StringBuilder ret);", "protected abstract void prepareStatementForInsert(PreparedStatement statement, T object)\n throws PersistException;", "@Override\r\n\tprotected void processControlPort(StreamingInput<Tuple> stream, Tuple tuple) throws Exception {\r\n\t\tsuper.processControlPort(stream, tuple);\r\n\t\t// Initiate PreparedStatement\r\n\t\tinitPreparedStatement();\r\n\t}", "public PreparedStatement createStatement(String query)\r\n {\r\n if(query != null && isOpen())\r\n {\r\n try\r\n {\r\n return connection.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }\r\n return null;\r\n }", "protected void init() throws SQLException {\n }", "public String getPreparedSql() {\r\n return this.origSql;\r\n }", "private void setPreparedStatementParam(PreparedStatement statement,\r\n PropertyDescriptor prop,\r\n Object value,\r\n Field fieldDef,\r\n int index) throws DataLayerException {\r\n try {\r\n if (fieldDef == null)\r\n throw new DataLayerException(\r\n \"Error populating PreparedStatement attributes. FieldDefinition is null.\");\r\n\r\n // Statement param indexes start with 1, not 0.\r\n index++;\r\n\r\n String fieldName = null;\r\n if (prop == null) {\r\n fieldName = fieldDef.getName().toLowerCase();\r\n } else {\r\n fieldName = prop.getName().toLowerCase();\r\n }\r\n String fieldType = fieldDef.getType();\r\n\r\n if (fieldType.equals(\"key\") && value == null) {\r\n // statement.setString(index, \"\");\r\n logCore.debug(\" \" + fieldName + \" (\" + fieldType\r\n + \") = '' IGNORED. Should get next PK as part of insert statement.\");\r\n return;\r\n }\r\n\r\n if (value != null)\r\n logCore.debug(\" \" + fieldName + \" (\" + fieldType + \") = '\" + value.toString()\r\n + \"'\");\r\n else\r\n logCore.debug(\" \" + fieldName + \" (\" + fieldType + \") = null\");\r\n\r\n if (fieldType.equals(\"string\")) {\r\n // value is a String.\r\n if (value != null) {\r\n String temp = FormatUtils.parseString(value.toString(), fieldDef);\r\n\r\n statement.setString(index, temp);\r\n } else\r\n statement.setNull(index, java.sql.Types.VARCHAR);\r\n } else if (fieldType.equals(\"key\")) {\r\n // value is a primary key.\r\n // if (value != null)\r\n // statement.setString(index, value.toString());\r\n // else\r\n // statement.setString(index, \"\");\r\n } else if (fieldType.equals(\"date\")) {\r\n java.util.Date date = null;\r\n\r\n if (value != null) {\r\n if (prop != null) {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n date = FormatUtils.parseDate(value.toString(), fieldDef);\r\n else if (java.util.Date.class.isAssignableFrom(prop.getPropertyType()))\r\n date = (java.util.Date) value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName\r\n + \". Type expected to be Date or String.\");\r\n } else {\r\n date = FormatUtils.parseDate(value.toString(), fieldDef);\r\n }\r\n statement.setTimestamp(index, new Timestamp(date.getTime()));\r\n } else\r\n statement.setNull(index, java.sql.Types.TIMESTAMP);\r\n } else if (fieldType.equals(\"long\")) {\r\n Long num = null;\r\n\r\n if (value != null) {\r\n if (prop != null) {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n num = FormatUtils.parseLong(value.toString());\r\n else if (Long.class.isAssignableFrom(prop.getPropertyType()))\r\n num = (Long) value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName\r\n + \". Type expected to be Long or String.\");\r\n } else {\r\n num = FormatUtils.parseLong(value.toString());\r\n }\r\n statement.setLong(index, num.longValue());\r\n } else\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n } else if (fieldType.equals(\"int\")) {\r\n Integer num = null;\r\n\r\n if (value != null) {\r\n if (prop != null) {\r\n if (String.class.isAssignableFrom(prop.getPropertyType())) {\r\n if (value.toString().trim().equals(\"\")) {\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n } else {\r\n num = FormatUtils.parseInteger(value.toString());\r\n statement.setInt(index, num.intValue());\r\n }\r\n } else if (Integer.class.isAssignableFrom(prop.getPropertyType())) {\r\n num = (Integer) value;\r\n statement.setInt(index, num.intValue());\r\n } else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName\r\n + \". Type expected to be Integer or String.\");\r\n } else {\r\n if (value.toString().trim().equals(\"\")) {\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n } else {\r\n num = FormatUtils.parseInteger(value.toString());\r\n statement.setInt(index, num.intValue());\r\n }\r\n }\r\n } else\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n } else if (fieldType.equals(\"boolean\")) {\r\n if (value != null) {\r\n Boolean item = null;\r\n\r\n if (prop != null) {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n item = FormatUtils.parseBoolean(value.toString(), fieldDef);\r\n else if (Boolean.class.isAssignableFrom(prop.getPropertyType()))\r\n item = (Boolean) value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName\r\n + \". Type expected to be Boolean or String.\");\r\n } else {\r\n item = FormatUtils.parseBoolean(value.toString(), fieldDef);\r\n }\r\n\r\n if (item.booleanValue())\r\n statement.setString(index, \"Y\");\r\n else\r\n statement.setString(index, \"N\");\r\n } else\r\n statement.setNull(index, java.sql.Types.CHAR);\r\n } else if (fieldType.equals(\"double\") || fieldType.equals(\"float\")) {\r\n if (value != null) {\r\n BigDecimal item = null;\r\n\r\n if (prop != null) {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n item = FormatUtils.parseBigDecimal(value.toString(), fieldDef);\r\n else if (BigDecimal.class.isAssignableFrom(prop.getPropertyType()))\r\n item = (BigDecimal) value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName\r\n + \". Type expected to be BigDecimal or String.\");\r\n } else {\r\n item = FormatUtils.parseBigDecimal(value.toString(), fieldDef);\r\n }\r\n statement.setBigDecimal(index, item);\r\n } else\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n } else {\r\n throw new DataLayerException(\r\n \"Error populating PreparedStatement attributes. Unrecognized data type (\"\r\n + value.getClass() + \") for field \" + fieldDef.getName() + \".\");\r\n }\r\n } catch (DataLayerException e) {\r\n throw e;\r\n } catch (java.lang.Exception e) {\r\n if (value == null)\r\n throw new DataLayerException(\"Error populating PreparedStatement attribute \"\r\n + fieldDef.getName() + \" with value null.\", e);\r\n else\r\n throw new DataLayerException(\"Error populating PreparedStatement attribute \"\r\n + fieldDef.getName() + \" with value \" + value.toString() + \".\", e);\r\n }\r\n }", "public abstract Statement queryToRetrieveData();", "@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}", "protected abstract void prepareStatementForUpdate(PreparedStatement updateStatement, E newEntity, E oldEntity)\n\t\t\tthrows DAOException;", "public PreparedStatement genersateStatement(Record<?> record) throws SQLException\n\t{\n\t\tfinal Object[] representations = record.toSQL();\n\t\t\n\t\t// Generate the statement\n\t\tString query = \"INSERT INTO \\\"\" + record.getTableName() + \"\\\" VALUES (\";\n\t\tfor(int i = 0; i < representations.length; i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t{\n\t\t\t\tquery += \",\";\n\t\t\t}\n\t\t\tquery += \"?\";\n\t\t}\n\t\t\n\t\tquery += \")\";\n\t\t\n\t\t\n\t\t// Get and fill the statement\n\t\tPreparedStatement ps = getPreparedStatement(query);\n\t\tfor(int i = 0; i < representations.length; i++)\n\t\t{\n\t\t\tps.setObject(i + 1, representations[i]);\n\t\t}\n\t\t\n\t\treturn ps;\n\t}", "@Override\n public int executeUpdate(String sql) throws SQLException {\n throw new SQLFeatureNotSupportedException();\n }", "public void closePreparedStatement(PreparedStatement ps) {\n if(ps!=null){\n try {\n ps.close();\n logger.info(\"Closing Prepared Statement\");\n } catch (SQLException e) {\n logger.error(\"Error while closing prepared statement\",e);\n }\n }\n }" ]
[ "0.77910924", "0.7370675", "0.7286958", "0.7202609", "0.71803355", "0.70249784", "0.7017799", "0.6985574", "0.68144", "0.6745281", "0.6729753", "0.66927963", "0.6618993", "0.66136146", "0.65970796", "0.65562177", "0.65422016", "0.6504839", "0.64769095", "0.64682657", "0.6422966", "0.64037293", "0.6390909", "0.6365995", "0.6355633", "0.63444906", "0.6333419", "0.6331921", "0.63117814", "0.62926984", "0.6290276", "0.62880206", "0.628728", "0.62554634", "0.6254986", "0.6254518", "0.6228973", "0.62163204", "0.6213261", "0.61975014", "0.619231", "0.6180762", "0.61759657", "0.61685985", "0.6168363", "0.6158886", "0.614718", "0.6144161", "0.61172414", "0.6115294", "0.6109262", "0.6099818", "0.6094659", "0.60945624", "0.60888803", "0.60724974", "0.6065408", "0.606381", "0.60602915", "0.6055376", "0.60503954", "0.60502136", "0.6049135", "0.6035619", "0.6025277", "0.6024763", "0.6023974", "0.601017", "0.5989407", "0.59856766", "0.59785026", "0.5975911", "0.5973228", "0.5970993", "0.5969022", "0.59641063", "0.59612167", "0.59612167", "0.59612167", "0.5951816", "0.59509623", "0.59500533", "0.5931203", "0.5930432", "0.5913268", "0.5910738", "0.59031564", "0.5902443", "0.59018046", "0.5890467", "0.5872576", "0.5872315", "0.5867321", "0.58645326", "0.5863383", "0.58545655", "0.584636", "0.5845442", "0.5839908", "0.5835665", "0.58339137" ]
0.0
-1
The following BST would be created using the above data. 21 / \ 4 23 / \ / \ 2 5 22 39 \ \ 11 45
public static void main(String[] args) { TreeNode root = createMinimalBST(data); System.out.print("BFS -> "); showBFS(root); System.out.println(""); System.out.print("DFS -> "); showDFS(root); System.out.println(""); System.out.println("Max depth in tree is: " + maxDepth(root)); System.out.println("Min depth in tree is: " + minDepth(root)); System.out.println("Max depth(no recursion) in tree is: " + maxDepthNoRecursion(root)); System.out.println("Min depth(no recursion) in tree is: " + minDepthNoRecursion(root)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BST(){\n\t\tthis.root = null;\n\t}", "public void testInsert01() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(4);\r\n\r\n\t\t// Growing the leaf\r\n\t\tbt.set(\"010\", 1);\r\n\t\tbt.set(\"020\", 2);\r\n\t\tbt.set(\"030\", 3);\r\n\t\tbt.set(\"040\", 4);\r\n\t\tassertEquals(bt.root.dump(), \"[010=1, 020=2, 030=3, 040=4]\");\r\n\r\n\t\t// Leaf split (middle) and new root created\r\n\t\tbt.set(\"025\", 5);\r\n\t\tassertEquals(bt.root.dump(), \"[[010=1, 020=2], [025=5, 030=3, 040=4]]\");\r\n\r\n\t\t// Growing the right of the right side of the tree\r\n\t\t// Leaf split (last) and new child added to root\r\n\t\tbt.set(\"050\", 6);\r\n\t\tbt.set(\"060\", 7);\r\n\t\tassertEquals(bt.root.dump(), \"[[010=1, 020=2], [025=5, 030=3], [040=4, 050=6, 060=7]]\");\r\n\r\n\t\t// Growing the left of the right side of the tree\r\n\t\t// Leaf split (first) and new child added to root\r\n\t\tbt.set(\"035\", 8);\r\n\t\tbt.set(\"034\", 9);\r\n\t\tassertEquals(bt.root.dump(),\r\n\t\t\t\t\"[[010=1, 020=2], [025=5, 030=3], [034=9, 035=8, 040=4], [050=6, 060=7]]\");\r\n\r\n\t\t// Growing the right of the right side of the tree\r\n\t\t// Node split (last) and new root created\r\n\t\tbt.set(\"070\", 10);\r\n\t\tassertEquals(bt.root.dump(),\r\n\t\t\t\t\"[[[010=1, 020=2], [025=5, 030=3]], [[034=9, 035=8, 040=4], [050=6, 060=7, 070=10]]]\");\r\n\r\n\t\t// Testing key update\r\n\t\tbt.set(\"010\", -1);\r\n\r\n\t\tassertEquals(bt.get(\"010\"), Integer.valueOf(-1));\r\n\t\tassertEquals(bt.get(\"020\"), Integer.valueOf(2));\r\n\t\tassertEquals(bt.get(\"030\"), Integer.valueOf(3));\r\n\t\tassertEquals(bt.get(\"040\"), Integer.valueOf(4));\r\n\t\tassertEquals(bt.get(\"025\"), Integer.valueOf(5));\r\n\t\tassertEquals(bt.get(\"050\"), Integer.valueOf(6));\r\n\t\tassertEquals(bt.get(\"060\"), Integer.valueOf(7));\r\n\t\tassertEquals(bt.get(\"035\"), Integer.valueOf(8));\r\n\t\tassertEquals(bt.get(\"034\"), Integer.valueOf(9));\r\n\t\tassertEquals(bt.get(\"070\"), Integer.valueOf(10));\r\n\t\tassertEquals(bt.get(\"xyz\"), null);\r\n\t}", "public TreeNode buildBTree (Integer[] inArray, int root) {\n\tTreeNode rv = null;\n\tint leftIndex = root * 2;\n\tint rightIndex = root * 2 +1;\n\t\n\tif (inArray.length >= root && inArray[root-1] != null) { // if root points to a valid value\n\t\trv = new TreeNode(inArray[root-1]);\n\t\tif (inArray.length >= leftIndex && inArray[leftIndex-1] != null)\n\t\t\trv.left = buildBTree(inArray,leftIndex);\n\t\tif (inArray.length >= rightIndex && inArray[rightIndex-1] != null)\n\t\t\trv.right = buildBTree(inArray,rightIndex);\n\t}\n\t\n\treturn rv;\n}", "public BST_Recursive() {\n\t\tthis.root = null;\n\t\tnumOfElements = 0; \n\t}", "public BST() {\n this.root = null;\n }", "public static void main(String args[]){\n SimpleBST<Integer> t = new SimpleBST<Integer>();\n\n //build the tree / set the size manually\n //only for testing purpose\n Node<Integer> node = new Node<>(112);\n Node<Integer> node2 = new Node<>(330);\n node2 = new Node<>(440,node2,null);\n node = new Node<>(310,node,node2);\n t.root = node;\n t.size = 4;\n\n // Current tree:\n //\t\t\t 310\n // / \\\n // 112 440\n // /\n // 330\n\n\n //checking basic features\n if (t.root.data == 310 && t.contains(112) && !t.contains(211) && t.height() == 2){\n System.out.println(\"Yay 1\");\n }\n\n //checking more features\n if (t.numLeaves() == 2 && SimpleBST.findMax(t.root)==440\n && SimpleBST.findPredecessor(t.root) == 112){\n System.out.println(\"Yay 2\");\n }\n\n //toString and toArray\n if (t.toString().equals(\"112 310 330 440 \") && t.toArray().length==t.size()\n && t.toArray()[0].equals(310) && t.toArray()[1].equals(112)\n && t.toArray()[2].equals(440) && t.toArray()[3].equals(330) ){\n System.out.println(\"Yay 3\");\n //System.out.println(t.toString());\n }\n\n // start w/ an empty tree and insert to build the same tree as above\n t = new SimpleBST<Integer>();\n if (t.insert(310) && !t.insert(null) && t.size()==1 && t.height()==0\n && t.insert(112) && t.insert(440) && t.insert(330) && !t.insert(330)\n ){\n System.out.println(\"Yay 4\");\n }\n\n if (t.size()==4 && t.height()==2 && t.root.data == 310 &&\n t.root.left.data == 112 && t.root.right.data==440\n && t.root.right.left.data == 330){\n System.out.println(\"Yay 5\");\n }\n\n // more insertion\n t.insert(465);\n t.insert(321);\n t.insert(211);\n\n //\t\t\t 310\n // / \\\n // 112 440\n // \\ / \\\n // 211 330 465\n // /\n // 321\n\n\n\n //remove leaf (211), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 330 465\n // /\n // 321\n\n if (t.remove(211) && !t.contains(211) && t.size()==6 && t.height() == 3\n && SimpleBST.findMax(t.root.left) == 112){\n System.out.println(\"Yay 6\");\n }\n\n //remove node w/ single child (330), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 321 465\n\n if (t.remove(330) && !t.contains(330) && t.size()==5 && t.height() == 2\n && t.root.right.left.data == 321){\n System.out.println(\"Yay 7\");\n }\n\n //remove node w/ two children (440), after removal:\n //\t\t\t 310\n // / \\\n // 112 321\n // \\\n // 465\n\n if ((t.root!=null) && SimpleBST.findPredecessor(t.root.right) == 321 && t.remove(440) && !t.contains(440)\n && t.size()==4 && t.height() == 2 && t.root.right.data == 321){\n System.out.println(\"Yay 8\");\n }\n\n }", "void createBST(Node rootnode){ \n \n //Insert data into new bst, and then pass next nodes so they can be inserted. \n tree.insertNode(tree.ROOT, rootnode.data);\n \n if(rootnode.left != null){\n createBST(rootnode.left);\n }\n \n if(rootnode.right != null){\n createBST(rootnode.right);\n } \n }", "public BST() {\r\n root = null;\r\n }", "public void insert(T data) {\n\t\tBSTNode<T> add = new BSTNode<T>(data);\n\t\tBSTNode<T> tmp = root;\n\t\tBSTNode<T> parent = null;\n\t\tint c = 0;\n\t\twhile (tmp!=null) {\n\t\t\tc = tmp.data.compareTo(data);\n\t\t\tparent = tmp;\n\t\t\ttmp = c < 0 ? tmp.left: tmp.right;\n\t\t}\n\t\tif (c < 0) \tparent.left = add;\n\t\telse \t\tparent.right = add;\n\t\t\n\n\t\n\t}", "public BST() {\n // DO NOT IMPLEMENT THIS CONSTRUCTOR!\n }", "public BST() {\n\t\troot = null;\n\t}", "public void createBinaryTree()\r\n\t{\n\t\t\r\n\t\tNode node = new Node(1);\r\n\t\tnode.left = new Node(2);\r\n\t\tnode.right = new Node(3);\r\n\t\tnode.left.left = new Node(4);\r\n\t\tnode.left.right = new Node(5);\r\n\t\tnode.left.right.right = new Node(10);\r\n\t\tnode.left.left.left = new Node(8);\r\n\t\tnode.left.left.left.right = new Node(15);\r\n\t\tnode.left.left.left.right.left = new Node(17);\r\n\t\tnode.left.left.left.right.left.left = new Node(18);\r\n\t\tnode.left.left.left.right.right = new Node(16);\r\n\t\tnode.left.left.right = new Node(9);\r\n\t\tnode.right.left = new Node(6);\r\n\t\tnode.right.left.left = new Node(13);\r\n\t\tnode.right.left.left.left = new Node(14);\r\n\t\tnode.right.right = new Node(7);\r\n\t\tnode.right.right.right = new Node(11);\r\n\t\tnode.right.right.right.right = new Node(12);\r\n\t\troot = node;\r\n\t\t\r\n\t}", "public BinarySearchTree(Integer data) {\n\t\troot = new TreeNode(data);\n\t\tlength++;\n\t}", "public TreeNode deserialize(String data) {\n //1,2,3,null,null,4,5\n // 0 1 2 3 4 5 6 7\n // 1, 2, null, 3, null, 4, null, 5\n\n if (data == null || data.length() ==0)\n return null;\n\n StringTokenizer st = new StringTokenizer(data, \",\");\n String[] nodes = new String[st.countTokens()];\n int index =0;\n while (st.hasMoreTokens()) {\n nodes[index++] = st.nextToken();\n }\n\n TreeNode root = new TreeNode(Integer.parseInt(nodes[0]));\n Queue<TreeNode> nodeQueue = new LinkedBlockingQueue<TreeNode>();\n Queue<Integer> indexQueue = new LinkedBlockingQueue<Integer>();\n int currentIndex = 0;\n\n indexQueue.offer(currentIndex);\n nodeQueue.offer(root);\n\n while (!nodeQueue.isEmpty()) {\n\n TreeNode node = nodeQueue.poll();\n int nodeIndex = indexQueue.poll();\n int leftChild = 2 * nodeIndex + 1;\n int rightChild = 2 * nodeIndex + 2;\n TreeNode leftNode = generateNode(leftChild, nodes);\n if (leftNode != null) {\n node.left = leftNode;\n nodeQueue.offer(leftNode);\n indexQueue.offer(++currentIndex);\n }\n\n TreeNode rightNode = generateNode(rightChild, nodes);\n if (rightNode != null) {\n node.right = rightNode;\n nodeQueue.offer(rightNode);\n indexQueue.offer(++currentIndex);\n }\n }\n\n return root;\n\n }", "public BST()\r\n\t{\r\n\t\troot = null;\r\n\t}", "@Test\n\tpublic void testInsert4() {\n\t\t\n\t\tBTree<Long,String> T = new BTree<Long, String>(3);\n\t\tT.insert(new Long(10), \"Ten\");\n\t\tT.insert(new Long(20), \"Twenty\");\n\t\tT.insert(new Long(30), \"Thirty\");\n\t\t\n\t\tT.insert(new Long(70), \"Seventy\");\n\t\tT.insert(new Long(60), \"Sixty\");\n\t\tT.insert(new Long(80), \"Eighty\");\n\t\t\n\t\tT.insert(new Long(50), \"Fifty\");\n\t\tT.insert(new Long(40), \"Fourty\");\n\t\tT.insert(new Long(55), \"Fifty-Five\");\n\t\tT.insert(new Long(65), \"Sixty-Five\");\n\t\t\n\t\tassertTrue( T.root instanceof InnerNode);\n\t\t\n\t\tInnerNode<Long,String> root = (InnerNode<Long,String>) T.root;\n\t\tassertEquals(1, root.keys.size());\n\t\tassertEquals(60, (long) root.keys.get(0));\n\t\tassertEquals(2, root.children.size());\n\t\t\n\t\tInnerNode<Long,String> left = (InnerNode<Long,String>) root.children.get(0);\n\t\tInnerNode<Long,String> right = (InnerNode<Long,String>) root.children.get(1);\n\t\t\n\t\tassertEquals(30, (long) left.keys.get(0));\n\t\tassertEquals(50, (long) left.keys.get(1));\n\t\t\n\t\tassertEquals(70, (long) right.keys.get(0));\n\t\t\n\t\tLeafNode<Long, String> child0 = (LeafNode<Long, String>) left.children.get(0);\n\t\tLeafNode<Long, String> child1 = (LeafNode<Long, String>) left.children.get(1);\n\t\t\n\t\tLeafNode<Long, String> child2 = (LeafNode<Long, String>) left.children.get(2);\n\t\t\n\t\tLeafNode<Long, String> child3 = (LeafNode<Long, String>) right.children.get(0);\n\t\tLeafNode<Long, String> child4 = (LeafNode<Long, String>) right.children.get(1);\n\t\t\n\t\tassertEquals(10, (long) child0.children.get(0).key);\n\t\tassertEquals(20, (long) child0.children.get(1).key);\n\t\t\n\t\tassertEquals(30, (long) child1.children.get(0).key);\n\t\tassertEquals(40, (long) child1.children.get(1).key);\n\t\t\n\t\tassertEquals(50, (long) child2.children.get(0).key);\n\t\tassertEquals(55, (long) child2.children.get(1).key);\n\t\t\n\t\tassertEquals(60, (long) child3.children.get(0).key);\n\t\tassertEquals(65, (long) child3.children.get(1).key);\n\t\t\n\t\tassertEquals(70, (long) child4.children.get(0).key);\n\t\tassertEquals(80, (long) child4.children.get(1).key);\n\t\t\n\t}", "public static TreeNode sortedArrayToBST_041(int[] num) {\n if (num == null || num.length == 0) {\n return null;\n }\n return constructTreeNode(num, 0, num.length - 1);\n }", "public BinarySearchTree(int data) {\n root = new Node(data, null, null);\n }", "public TreeNode sortedArrayToBST(int[] nums){\r\n int length = nums.length;\r\n if( length == 0 ){\r\n return null;\r\n }else if( length == 1){\r\n return new TreeNode(nums[0]);\r\n }\r\n return sortedArrayToBST(nums, 0, length-1);\r\n }", "public BST() {\n\n }", "public TreeNode sortedArrayToBST(int[] num) {\n return constructBST(num, 0, num.length - 1);\n }", "public TreeNode sortedArrayToBST2(int[] nums) {\n \n int len = nums.length;\n if ( len == 0 ) { return null; }\n \n TreeNode head = new TreeNode(0); \t// 0 as a placeholder\n \n Deque<TreeNode> nodeStack = new LinkedList<TreeNode>() {{ push(head); }};\n Deque<Integer> leftIndexStack = new LinkedList<Integer>() {{ push(0); }};\n Deque<Integer> rightIndexStack = new LinkedList<Integer>() {{ push(len-1); }};\n \n\t\twhile (!nodeStack.isEmpty()) {\n\t\t\tTreeNode currNode = nodeStack.pop();\n\t\t\t\n\t\t\tint l = leftIndexStack.pop();\n\t\t\tint r = rightIndexStack.pop();\t\t// right index\n\t\t\tint mid = l + (r - l) / 2; \t\t\t// avoid overflow\n\t\t\tcurrNode.val = nums[mid];\t\t\t// build root node\n\t\t\t\n\t\t\tif (l <= mid - 1) {\t\t// 左子树还有节点需要添加\n\t\t\t\tcurrNode.left = new TreeNode(0);\t\t// 新建一个节点并进入node stack,值后面添加\n\t\t\t\tnodeStack.push(currNode.left);\n\t\t\t\t\n\t\t\t\tleftIndexStack.push(l);\t\t\t\t// 添加一对索引(索引都是成双成对添加),缩小范围到左边\n\t\t\t\trightIndexStack.push(mid - 1);\n\t\t\t}\n\t\t\tif (mid + 1 <= r) {\t\t// right index is valid\n\t\t\t\tcurrNode.right = new TreeNode(0);\n\t\t\t\tnodeStack.push(currNode.right);\n\t\t\t\t\n\t\t\t\tleftIndexStack.push(mid + 1);\n\t\t\t\trightIndexStack.push(r);\n\t\t\t}\n\t\t}\n return head;\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n int len = nums.length;\n if (len == 0) {\n return null;\n }\n return rescurse(nums, 0, len- 1);\n\n }", "public static TreeNode constructTreeNode(String testData) {\n\n if (testData == null || testData.equals(\"[]\")) {\n System.out.printf(\"%s\\n\", \"construct tree failed, input data is null or empty\");\n return null;\n }\n\n if (testData.indexOf(\"[\") != 0 || testData.indexOf(\"]\") != testData.length()-1) {\n System.out.printf(\"%s\\n\", \"construct tree failed, input data is invalid\");\n return null;\n }\n\n String data = testData.substring(1, testData.length()-1);\n String[] dataList = data.split(\",\");\n TreeNode[] nodeArray = new TreeNode[dataList.length];\n\n for (int i=0; i<dataList.length; i++) {\n if (!dataList[i].equals(\"null\")) {\n TreeNode node = new TreeNode(Integer.valueOf(dataList[i]));\n nodeArray[i] = node;\n }\n }\n\n // Construct binary tree\n // If the index of root = 0\n // The index of left of the node(index = m) is 2*m +1\n // If the index of root = 1\n // Then the index of left of the node(index = m) is 2*m -1\n\n for (int i=0; i<nodeArray.length; i++) {\n if (nodeArray[i] != null) {\n int indexOfLeft = i * 2 + 1;\n int indexOfRight = indexOfLeft + 1;\n\n if (indexOfLeft < nodeArray.length && nodeArray[indexOfLeft] != null) {\n nodeArray[i].left = nodeArray[indexOfLeft];\n }\n\n if (indexOfRight < nodeArray.length && nodeArray[indexOfRight] != null) {\n nodeArray[i].right = nodeArray[indexOfRight];\n }\n }\n }\n\n return nodeArray[0];\n }", "public BST() {\n }", "protected void pushDownRoot(int root){\n int heapSize = data.size();\n Bloque value = (Bloque)data.get(root);\n while (root < heapSize) {\n int childpos = left(root);\n if (childpos < heapSize)\n {\n if ((right(root) < heapSize) && (((Bloque)data.get(childpos+1)).compareTo((Bloque)data.get(childpos)) > 0)){\n childpos++;\n }\n // Assert: childpos indexes smaller of two children\n if (((Bloque)data.get(childpos)).compareTo(value) > 0){\n data.set(root,data.get(childpos));\n root = childpos; // keep moving down\n } else { // found right location\n data.set(root,value);\n return;\n }\n } else { // at a leaf! insert and halt\n data.set(root,value);\n return;\n }\n }\n }", "public static TreeNode<Integer> createBST(int[] array) {\n return createBST(array, 0, array.length - 1);\n }", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "private static Node buildSmallerTree() {\n\t\tNode root = createNode(10);\n\t\troot.leftChild = createNode(25);\n\t\troot.rightChild = createNode(25);\n\t\troot.leftChild.leftChild = createNode(13);\n\t\troot.rightChild.rightChild = createNode(7);\n\t\troot.leftChild.rightChild = createNode(27);\n\t\t\n\t\treturn root;\n\t}", "public void bfs(Node root) {\r\n\t\tQueue<Node> q = new LinkedList<Node>();\r\n\t\tint count = 0;\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tq.add(root);\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tNode n = (Node) q.remove();\r\n\t\t\tSystem.out.print(\" \" + n.data);\r\n\r\n\t\t\tif (n.Lchild != null) {\r\n\r\n\t\t\t\tq.add(n.Lchild);\r\n\t\t\t} else if (n.Rchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\t\t\tif (n.Rchild != null) {\r\n\t\t\t\tq.add(n.Rchild);\r\n\t\t\t} else if (n.Lchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\" + \"the number of gaps :: \" + count);\r\n\t}", "public static TreeNode insertIntoBST(TreeNode root, int val)\n{\n TreeNode droot = root;\n TreeNode par = find(droot, val, null);\n if(par==null)\n return par;\n if(par.val < val)\n par.right = new TreeNode(val);\n else\n par.left = new TreeNode(val);\n return root;\n}", "public static void main(String[] args) {\n BinayTree root = new BinayTree();\n root.data = 8;\n root.left = new BinayTree();\n root.left.data = 6;\n root.left.left = new BinayTree();\n root.left.left.data = 5;\n root.left.right = new BinayTree();\n root.left.right.data = 7;\n root.right = new BinayTree();\n root.right.data = 10;\n root.right.left = new BinayTree();\n root.right.left.data = 9;\n root.right.right = new BinayTree();\n root.right.right.data = 11;\n printTree(root);\n System.out.println();\n mirror(root);\n printTree(root);\n // 1\n // /\n // 3\n // /\n // 5\n // /\n // 7\n // /\n // 9\n BinayTree root2 = new BinayTree();\n root2.data = 1;\n root2.left = new BinayTree();\n root2.left.data = 3;\n root2.left.left = new BinayTree();\n root2.left.left.data = 5;\n root2.left.left.left = new BinayTree();\n root2.left.left.left.data = 7;\n root2.left.left.left.left = new BinayTree();\n root2.left.left.left.left.data = 9;\n System.out.println(\"\\n\");\n printTree(root2);\n System.out.println();\n mirror(root2);\n printTree(root2);\n\n // 0\n // \\\n // 2\n // \\\n // 4\n // \\\n // 6\n // \\\n // 8\n BinayTree root3 = new BinayTree();\n root3.data = 0;\n root3.right = new BinayTree();\n root3.right.data = 2;\n root3.right.right = new BinayTree();\n root3.right.right.data = 4;\n root3.right.right.right = new BinayTree();\n root3.right.right.right.data = 6;\n root3.right.right.right.right = new BinayTree();\n root3.right.right.right.right.data = 8;\n System.out.println(\"\\n\");\n printTree(root3);\n System.out.println();\n mirror(root3);\n printTree(root3);\n\n\n }", "public TreeNode insert(Data newData)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t//parent is full so we need to split and return the split\r\n\t\t\tif (isFull())\r\n\t\t\t{\r\n\t\t\t\tthis.split();\r\n\t\t\t\treturn this; //if split return myself to my caller to be added\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hit a leaf that is not full so simply add the data\r\n\t\t\tif (isLeaf() && !isFull())\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"leaf inserting: \" + newData.getWord());\r\n\t\t\t\tthis.insertData(newData);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t//hit a leaf that is full so we need to split and return the split leaf\r\n\t\t\tif (isLeaf() && isFull())\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"full inserting: \" + newData.getWord());\r\n\t\t\t\tthis.insertData(newData);\r\n\t\t\t\tthis.split();\r\n\t\t\t\treturn this; //if split return myself to my caller to be added\r\n\t\t\t}\r\n\t\t\tTreeNode result = null;\r\n\t\t\tTreeNode previousTreeNode = null;\r\n\t\t\tTreeNode currentTreeNode = null;\r\n\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null) //traverse the current data\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\tif we find the newData in currentData\r\n\t\t\t\tadd the location of the newData to the current one \r\n\t\t\t\t */\r\n\t\t\t\tif (currentData.getWord().equals(newData.getWord()))\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrentData.addPoint((Point) newData.getLocations().get(0));\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//if the newData is less than the currentData then insert there\r\n\t\t\t\tif (newData.getWord().compareTo(currentData.getWord()) < 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrentTreeNode = currentData.getLT();\r\n\t\t\t\t\tif (currentTreeNode != previousTreeNode)\r\n\t\t\t\t\t\tresult = currentTreeNode.insert(newData); //return the result of the insertion\r\n\t\t\t\t\tpreviousTreeNode = currentTreeNode;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//if the newData is greater than the currentData then insert there\r\n\t\t\t\tif ((newData.getWord().compareTo(currentData.getWord()) > 0) && (currentData.nextData() == null))\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrentTreeNode = currentData.getGT();\r\n\t\t\t\t\tif (currentTreeNode != previousTreeNode)\r\n\t\t\t\t\t\tresult = currentTreeNode.insert(newData); //return the result of the insertion\r\n\t\t\t\t\tpreviousTreeNode = currentTreeNode;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\r\n\t\t\t//if the result is a TreeNode then insert it into myself\r\n\t\t\tif (result != null)\r\n\t\t\t{\r\n\t\t\t\t//parent is not full so simply add the data\r\n\t\t\t\tif (!isFull())\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.insertData(result.popData());\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}", "static Node BSTInsert(Node tmp,int key)\n {\n //if the tree is empty it will insert the new node as root\n \n if(tmp==null)\n {\n tmp=new Node(key);\n \n return tmp;\n }\n \n else\n \n rBSTInsert(tmp,key);\n \n \n return tmp;\n }", "private BSTNode<K> insertNode(BSTNode<K> currentNode, K key) \n throws DuplicateKeyException, IllegalArgumentException {\n // if key is null, throw an IllegalArgumentException\n if (key == null) {\n throw new IllegalArgumentException(\"Please input a valid key\");\n }\n // if currentNode is null, create a new node, because of reaching a leaf\n if (currentNode == null) {\n BSTNode<K> newNode = new BSTNode<K>(key);\n return newNode;\n }\n // otherwise, keep searching through the tree until meet a leaf, or find a duplicated node \n else {\n switch(key.compareTo(currentNode.getId())){\n case -1:\n currentNode.setLeftChild(insertNode(currentNode.getLeftChild(), key));\n break;\n case 1:\n currentNode.setRightChild(insertNode(currentNode.getRightChild(), key));\n break;\n default:\n throw new DuplicateKeyException(\"A node with the same value is already existed\");\n }\n // after update currentNode's left and right childNote, let's check currentNode's balanceValue\n // ancestor two levels away from a lead node, its absolute balanceValue may exceeds 1,\n // so codes below has meaning for it \n int balanceValue = getNodeBalance(currentNode); \n if (balanceValue < -1) { // balanceValue < -1 means sublefttree is longer than subrighttree\n switch (key.compareTo(currentNode.getLeftChild().getId())) {\n case -1: // after Left Left Case, balance is updated, so sent currentNode to its ancestor \n return rotateRight(currentNode); \n case 1: // after Left Right Case, balance is updated, so sent currentNode to its ancestor \n currentNode.setLeftChild(rotateLeft(currentNode.getLeftChild()));\n return rotateRight(currentNode);\n }\n }\n else if (balanceValue > 1) { // balanceValue < -1 means subrighttree is longer than sublefttree\n switch (key.compareTo(currentNode.getRightChild().getId())){\n case 1: // after Right Right Case, balance is updated, so sent currentNode to its ancestor \n return rotateLeft(currentNode);\n case -1: // after Right Left Case, balance is updated, so sent currentNode to its ancestor \n currentNode.setRightChild(rotateRight(currentNode.getRightChild()));\n return rotateLeft(currentNode);\n } \n }\n }\n // for leaf node's balanceValue == 0, and for -1 <= leaf node's first ancestor's balanceValue <= 1,\n // codes above(from balanceValue) has no meaning for it, return currentNode straight forward\n return currentNode;\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n if (nums.length == 0) {\n return null;\n }\n return constructBST(nums, 0, nums.length - 1);\n }", "public Node getMinHeightBST(int[] arr, int lo, int hi){\n if(lo > hi){ \n return null; //impllies Node has no children\n }\n int mid = (hi+lo)/2;\n Node midNode = new Node(arr[mid]);\n midNode.left = getMinHeightBST(arr, lo, mid-1);\n midNode.right = getMinHeightBST(arr, mid+1, hi);\n return midNode;\n }", "public TreeNode buildTree(int[] A, int[] B) {\n HashMap<Integer, Integer> order = new HashMap<>();\n for (int i = 0; i < B.length; i++) {\n order.put(B[i], i);\n }\n\n // build Binary Tree from Pre-order list with order of nodes\n TreeNode root = new TreeNode(A[0]);\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerLast(root);\n\n /*\n for (int i = 1; i < A.length; i++) {\n if (order.get(A[i]) < order.get(stack.peekLast().val)) {\n TreeNode parent = stack.peekLast();\n parent.left = new TreeNode(A[i]);\n stack.offerLast(parent.left);\n }\n else {\n TreeNode parent = stack.peekLast();\n while(!stack.isEmpty() &&\n (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = new TreeNode(A[i]);\n stack.offerLast(parent.right);\n }\n\n }\n */\n for (int i = 1; i < A.length; i++) {\n TreeNode parent = stack.peekLast();\n TreeNode node = new TreeNode(A[i]);\n if (order.get(A[i]) < order.get(parent.val)) {\n parent.left = node;\n } else {\n while (!stack.isEmpty() && (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = node;\n }\n stack.offerLast(node);\n }\n\n return root;\n }", "@Test\n\tpublic void testInsert3() {\n\t\t\n\t\tBTree<Long,String> T = new BTree<Long, String>(3);\n\t\tT.insert(new Long(10), \"Ten\");\n\t\tT.insert(new Long(20), \"Twenty\");\n\t\tT.insert(new Long(30), \"Thirty\");\n\t\t\n\t\tT.insert(new Long(70), \"Seventy\");\n\t\tT.insert(new Long(60), \"Sixty\");\n\t\tT.insert(new Long(80), \"Eighty\");\n\t\t\n\t\tT.insert(new Long(50), \"Fifty\");\n\t\tT.insert(new Long(40), \"Fourty\");\n\t\t\n\t\tassertTrue( T.root instanceof InnerNode);\n\t\t\n\t\tInnerNode<Long,String> root = (InnerNode<Long,String>) T.root;\n\t\tassertEquals(3, root.keys.size());\n\t\tassertEquals(30, (long) root.keys.get(0));\n\t\tassertEquals(50, (long) root.keys.get(1));\n\t\tassertEquals(70, (long) root.keys.get(2));\n\t\t\n\t\tassertEquals(4, root.children.size( ));\n\t\tassertTrue( root.children.get(0) instanceof LeafNode );\n\t\tassertTrue( root.children.get(1) instanceof LeafNode );\n\t\tassertTrue( root.children.get(2) instanceof LeafNode );\n\t\tassertTrue( root.children.get(3) instanceof LeafNode );\n\n\t\tLeafNode<Long, String> child0 = (LeafNode<Long, String>) root.children.get(0);\n\t\tLeafNode<Long, String> child1 = (LeafNode<Long, String>) root.children.get(1);\n\t\tLeafNode<Long, String> child2 = (LeafNode<Long, String>) root.children.get(2);\n\t\tLeafNode<Long, String> child3 = (LeafNode<Long, String>) root.children.get(3);\n\t\t\n\t\tassertEquals(2, child0.children.size());\n\t\tassertEquals(10, (long) child0.children.get(0).key);\n\t\tassertEquals(20, (long) child0.children.get(1).key);\n\n\t\tassertEquals(2, child1.children.size());\n\t\tassertEquals(30, (long) child1.children.get(0).key);\n\t\tassertEquals(40, (long) child1.children.get(1).key);\n\n\t\tassertEquals(2, child2.children.size());\n\t\tassertEquals(50, (long) child2.children.get(0).key);\n\t\tassertEquals(60, (long) child2.children.get(1).key);\n\t\t\n\t\tassertEquals(2, child3.children.size());\n\t\tassertEquals(70, (long) child3.children.get(0).key);\n\t\tassertEquals(80, (long) child3.children.get(1).key);\n\t}", "public BSTNode(K key) {\n this.key = key;\n this.left = null;\n this.right = null;\n this.height = 0;\n }", "public void insert(int key) {\n // Implement insert() using the non-recursive version\n // This function should call findClosestLeaf()\n\n if(root!=null){ // มี node ใน tree\n Node n = findClosestLeaf(key); //หา Leaf n ที่ใกล้ค่าที่ใส่มากที่สุด โดย call findClosestLeaf()\n\n\n if(n.key!= key){ // ค่าที่จะใส่ต้องไม่มีใน tree\n if(key > n.key){ // ค่าที่จะใส่มากกว่า Leaf n ให้ใส่เป็นลูฏของ Leaf ด้านขวา\n n.right = new Node(key);\n n.right.parent = n;\n }\n\n else { // ค่าที่จะใส่น้อยกว่า Leaf n ให้ใส่เป็นลูฏของ Leaf ด้านซ้าย\n n.left = new Node(key);\n n.left.parent = n;\n }\n }\n else\n {\n return;\n }\n\n }else{ // ไม่มี node ใน tree ดังนั้นค่าที่ใส่เข้ามาจะกลายเป็ฯ root\n root = new Node(key);\n }\n }", "public static Node insert(Node root,int data) {\r\n\t\t/* If the tree is empty, return a new node */\r\n if (root == null) { \r\n root = new Node(data); \r\n return root; \r\n } \r\n \r\n /* Otherwise, recur down the tree */\r\n if (data < root.data) \r\n root.left = insert(root.left, data); \r\n else if (data > root.data) \r\n root.right = insert(root.right, data); \r\n \r\n /* return the (unchanged) node pointer */\r\n return root; \r\n }", "private TreeNode cBST(int begin,int end){\n\n if(begin >= end){ return null;}\n\n int index = (begin + end)/2;\n\n //Left-Visit\n TreeNode l = cBST(begin,index);\n\n //Middle-Visit\n TreeNode root = new TreeNode(cur.val);\n root.left = l;\n cur = cur.next;\n\n //Right-Visit\n TreeNode r = cBST(index+1,end);\n\n //Post-Process and return values\n root.right = r;\n return root;\n }", "private TreeNode createBBST(KeyValuePair[] sortedKVPArr) {\n\n if (sortedKVPArr == null || sortedKVPArr.length == 0) {\n return null;\n }\n\n int begin = 0;\n int end = sortedKVPArr.length;\n int mid = begin + (end - begin) / 2;\n\n KeyValuePair[] left = Arrays.copyOfRange(sortedKVPArr, begin, mid);\n KeyValuePair[] right = Arrays.copyOfRange(sortedKVPArr, mid + 1, end);\n\n TreeNode node = new TreeNode(sortedKVPArr[mid].getId(), sortedKVPArr[mid].getValue());\n\n if (left.length > 0)\n node.left = createBBST(left);\n if (right.length > 0)\n node.right = createBBST(right);\n\n this.root = node;\n\n return this.root;\n }", "static void rBSTInsert(Node tmp,int key)\n {\n // if the new value is greater than root then it will be inserted to the right subtree\n if(tmp.val<key)\n {\n if(tmp.right==null)\n {\n tmp.right=new Node(key);\n \n \n return;\n }\n \n else rBSTInsert(tmp.right,key);\n \n \n }\n // otherwise the new value will be inserted to the left subtree\n else\n {\n if(tmp.left==null)\n {\n tmp.left=new Node(key);\n \n return;\n }\n \n rBSTInsert(tmp.left,key);\n }\n return;\n }", "public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] node = data.split(\" \");\n Queue<TreeNode> qu = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(node[0]));\n qu.offer(root);\n int i = 1;\n while (!qu.isEmpty()) {\n Queue<TreeNode> nextQu = new LinkedList<>();\n while (!qu.isEmpty()) {\n TreeNode x = qu.poll();\n if (node[i].equals(\"null\")) x.left = null;\n else {\n x.left = new TreeNode(Integer.parseInt(node[i]));\n nextQu.offer(x.left);\n }\n i++;\n if (node[i].equals(\"null\")) x.right = null;\n else {\n x.right = new TreeNode(Integer.parseInt(node[i]));\n nextQu.offer(x.right);\n }\n i++;\n }\n qu = nextQu;\n }\n return root;\n }", "public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }", "private BinaryNode<E> bstInsert(E x, BinaryNode<E> t, BinaryNode<E> parent) {\n\n if (t == null)\n return new BinaryNode<>(x, null, null, parent);\n\n int compareResult = x.compareTo(t.element);\n\n if (compareResult < 0) {\n t.left = bstInsert(x, t.left, t);\n } else {\n t.right = bstInsert(x, t.right, t);\n }\n return t;\n }", "public TreeNode insert(TreeNode root, int key) {\n if (root == null) {\n root = new TreeNode(key);\n return root;\n }\n TreeNode cur = root, par = root;\n while (cur != null) {\n par = cur;\n if (cur.key == key) {\n return root;\n }\n if (key < cur.key) {\n cur = cur.left;\n } else {\n cur = cur.right;\n }\n }\n // this is when cur is null (out of the while)\n if (key < par.key) {\n par.left = new TreeNode(key);\n } else {\n par.right = new TreeNode(key);\n }\n \n return root;\n }", "public static TreeNode task2_1_ConstructBST_pre_in(int[] pre, int[] in) {\n\t\treturn null;\n\t}", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "public void add(Comparable obj)\n { \n \t //TODO\n \t //add code\n \t Node n = new Node(); \n \t n.data = obj;\n \t // \tn.left = null;\n \t // \tn.right = null;\n\n \t Node y = null;\n \t // \tNode x = root;\n \t Node current = root;\n \t while(current != null)\n \t {\n \t\t y = current;\n \t\t if(n.data.compareTo(root.data) < 0)\n \t\t\t current = current.left;\n \t\t else\n \t\t\t current = current.right;\n \t }\n\n\n \t n.parent = y;\n \t if(y == null)\n \t\t root = n;\n \t else\n \t\t if(n.data.compareTo(y.data) < 0)\n \t\t\t y.left = n;\n \t\t else\n \t\t\t y.right = n;\n \t n.left = null;\n \t n.right = null;\n \t n.color = RED;\n \t // \troot = new Node();\n \t // \troot.data = \"k\";\n \t // \tNode test = new Node();\n \t // \ttest.data = \"g\";\n \t // \troot.left= test;\n// \t System.out.println(\"the insertion looks like:\");\n// \t System.out.println(BTreePrinter.printNode(root));\n\n \t fixup(root,n);\n \t /*\n \tThe insert() method places a data item into the tree.\n\n \tInsertions\n \tpseudocode for\n \tRB-Insert(T,z)\n \ty = nil[T]\n \tx = root[T]\n \twhile x != nil[T]\n \ty = x\n \tif key[z] < key[x] then\n \tx = left[x]\n \telse\n \tx = right[x]\n \tp[z] = y\n \tif y = nil[T]\n \troot[T] = z\n \telse\n \tif key[z] < key[y] then\n \tleft[y] = z\n \telse\n \tright[y] = z\n \tleft[z] = nil[T]\n \tright[z] = nil[T]\n \tcolor[z] = RED\n \tRB-Insert-fixup(T,z)\n \t */\n }", "static void treeInsert(double x) {\n if ( root == null ) {\n // If the tree is empty set root to point to a new node \n // containing the new item.\n root = new TreeNode( x );\n return;\n }\n TreeNode runner; // Runs down the tree to find a place for newItem.\n runner = root; // Start at the root.\n while (true) {\n if ( x < runner.item ) {\n // Since the new item is less than the item in runner,\n // it belongs in the left subtree of runner. If there\n // is an open space at runner.left, add a node there.\n // Otherwise, advance runner down one level to the left.\n if ( runner.left == null ) {\n runner.left = new TreeNode( x );\n return; // New item has been added to the tree.\n }\n else\n runner = runner.left;\n }\n else {\n // Since the new item is greater than or equal to the \n // item in runner, it belongs in the right subtree of\n // runner. If there is an open space at runner.right, \n // add a new node there. Otherwise, advance runner\n // down one level to the right.\n if ( runner.right == null ) {\n runner.right = new TreeNode( x );\n return; // New item has been added to the tree.\n }\n else\n runner = runner.right;\n }\n } // end while\n }", "Node insertBinary(Node node, int key) {\n // BST rotation\n if (node == null) {\n return (new Node(key));\n }\n if (key < node.key) {\n node.left = insertBinary(node.left, key);\n } else if (key > node.key) {\n node.right = insertBinary(node.right, key);\n } else\n {\n return node;\n }\n\n // Update height of descendant node\n node.height = 1 + maxInt(heightBST(node.left),\n heightBST(node.right));\n int balance = getBalance(node); \n \n // If this node becomes unbalanced, then there \n // are 4 cases Left Left Case \n if (balance > 1 && key < node.left.key) \n return rightRotate(node); \n \n // Right Right Case \n if (balance < -1 && key > node.right.key) \n return leftRotate(node); \n \n // Left Right Case \n if (balance > 1 && key > node.left.key) { \n node.left = leftRotate(node.left); \n return rightRotate(node); \n } \n \n // Right Left Case \n if (balance < -1 && key < node.right.key) { \n node.right = rightRotate(node.right); \n return leftRotate(node); \n } \n \n /* return the (unchanged) node pointer */\n return node; \n }", "public static void main(String[] args){\n Node root = null;\n BinarySearchTree bst = new BinarySearchTree();\n root = bst.insert(root, 15);\n root = bst.insert(root, 10);\n root = bst.insert(root, 20);\n root = bst.insert(root, 25);\n root = bst.insert(root, 8);\n root = bst.insert(root, 12);\n // System.out.println(\"search result: \" + bst.is_exists(root, 12));\n // System.out.println(\"min value: \" + bst.findMinValue(root));\n // System.out.println(\"max value: \" + bst.findMaxValue(root));\n // System.out.println(\"level order traversal: \");\n // bst.levelOrderTraversal(root);\n // System.out.println(\"preorder traversal : \");\n // bst.preorderTraversal(root);\n // System.out.println(\"inorder traversal : \");\n // bst.inorderTraversal(root);\n // System.out.println(\"postorder traversal : \");\n // bst.postorderTraversal(root);\n // System.out.println(bst.isBinarySearchTree(root));\n // root = bst.deleteNode(root, 10);\n // bst.inorderTraversal(root); // result should be: 8 12 15 20 25\n System.out.println(bst.inorderSuccessor(root, 8)); // result should be: 10\n System.out.println(bst.inorderSuccessor(root, 15)); // result should be: 20\n System.out.println(bst.inorderSuccessor(root, 20)); // result should be: 25\n System.out.println(bst.inorderSuccessor(root, 25)); // result should be: null\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"--------------------------------Binary search Tree---------------------------------------\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\n\t\tBSTTree bstTree = new BSTTree();\n\t\t\n\t\tinput = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the list of nodes(Integer) to insert into tree with comma seperated (eg: 1,2,3): \");\n\t\t\n\t\t//Code for getting user node as Input value\n\t\t/*\n\t\t * String treeNodes = input.nextLine(); String[] nodes = treeNodes.split(\",\");\n\t\t * for (String value : nodes) { bstTree.insert(Integer.parseInt(value.trim()));\n\t\t * }\n\t\t */\n\t\t\n\t\t\t\t\n\t\t/*\n\t\t * bstTree.insert(25); bstTree.insert(20); bstTree.insert(15);\n\t\t * bstTree.insert(27); bstTree.insert(30); bstTree.insert(29);\n\t\t * bstTree.insert(26); bstTree.insert(22); bstTree.insert(32);\n\t\t * bstTree.insert(17);\n\t\t */\n\t\t\n\t\t\n\t\tbstTree.insert(100);\n\t\tbstTree.insert(58); \n\t\tbstTree.insert(30); \n\t\tbstTree.insert(47); \n\t\tbstTree.insert(25);\n\t\tbstTree.insert(39);\n\t\tbstTree.insert(125);\n\t\tbstTree.insert(111);\n\t\tbstTree.insert(137);\n\t\tbstTree.insert(110);\n\t\tbstTree.insert(120);\n\t\tbstTree.insert(130);\n\t\tbstTree.insert(140);\n\t\tbstTree.insert(109);\n\t\tbstTree.insert(121);\n\t\tbstTree.insert(119);\n\t\t\n\t\tSystem.out.println(\"Nodes are inserted into the tree\");\t\t\n\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\n\t\tfor(;;) {\n\t\t\tSystem.out.println(\"1. Insert Node into Tree\");\n\t\t\tSystem.out.println(\"2. In order Traversal\");\n\t\t\tSystem.out.println(\"3. Pre order Traversal\");\n\t\t\tSystem.out.println(\"4. Post order Traversal\");\n\t\t\tSystem.out.println(\"5. Find minimum value of tree\");\n\t\t\tSystem.out.println(\"6. Find maximum value of the tree\");\n\t\t\tSystem.out.println(\"7. Height of the tree\");\n\t\t\tSystem.out.println(\"8. Search Node in tree\");\n\t\t\tSystem.out.println(\"9. Delete Node in tree\");\n\t\t\tSystem.out.println(\"10. Find path between root and node\");\n\t\t\tSystem.out.println(\"Exit\");\n\t\t\tSystem.out.println(\"Enter your option : \");\t\t\t\n\t\t\tint inputOption = Integer.parseInt(input.nextLine());\t\t\t\n\t\t\tswitch(inputOption) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter the node value to insert into tree : \");\n\t\t\t\tString value = input.nextLine();\n\t\t\t\tbstTree.insert(Integer.parseInt(value.trim()));\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"In Order Traversal : \");\n\t\t\t\tbstTree.traverseInOrderNode();\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"Pre Order Traversal : \");\n\t\t\t\tbstTree.traversePreOrderNode();\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"Post Order Traversal : \");\n\t\t\t\tbstTree.traversePostOrderNode();\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.println(bstTree != null && bstTree.getMinimum()!=null ? \"Minimum value in the tree : \" + bstTree.getMinimum().getData() : \"Empty Tree\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 6:\t\t\t\t\n\t\t\t\tSystem.out.println(bstTree != null && bstTree.getMaximum()!= null ? \"Maximum value in the tree : \" + bstTree.getMaximum().getData() : \"Empty tree\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.println(\"Height of the Binary Search Tree : \" + bstTree.getHeight());\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tSystem.out.println(\"Enter the node o search in the tree : \");\n\t\t\t\tint searchNode = Integer.parseInt(input.nextLine());\t\n\t\t\t\tif(null!=bstTree.getNode(searchNode)) {\n\t\t\t\t\tSystem.out.println(\"Data \" + bstTree.getNode(searchNode) +\" is available\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Data \" + searchNode + \" is not available\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tSystem.out.println(\"Enter the node to be deleted\");\n\t\t\t\tint deleteNode = Integer.parseInt(input.nextLine());\n\t\t\t\tbstTree.delete(deleteNode);\n\t\t\t\tSystem.out.println(\"Node Deleted Successfully\");\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tSystem.out.println(\"Enter the node to get the path : \");\n\t\t\t\tint node = Integer.parseInt(input.nextLine());\n\t\t\t\tbstTree.getPath(node);\n\t\t\t\tSystem.out.println();\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"\\t\\t\\t\\tThank you!\");\n\t\t\t\tSystem.out.println(\"-----------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "private Boolean isBST(BinaryNode node) {\n\n if (node == null) return true;\n\n if (node.right == null && node.left == null) {\n return true;\n } else if (node.right == null) {\n if ((Integer)node.left.element < (Integer)node.element) return isBST(node.left);\n else return false;\n } else if (node.left == null) {\n if ((Integer)node.right.element > (Integer)node.element) return isBST(node.right);\n return false;\n } else if ((Integer)node.right.element > (Integer)node.element && (Integer)node.left.element < (Integer)node.element){\n return isBST(node.right) && isBST(node.left);\n } else {return false;}\n }", "void insert(int value){\r\n\t\tNode node = new Node(value);\r\n\t\t \r\n\t\tif( this.root == null ) {\r\n\t\t\tthis.root = node ;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t \r\n\t\tNode tempNode = this.root , parent = this.root;\r\n\t\t\r\n\t\twhile( tempNode != null ) {\r\n\t\t\tparent = tempNode;\r\n\t\t\tif( node.value >= tempNode.value ) {\r\n\t\t\t\ttempNode = tempNode.right;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttempNode = tempNode.left ;\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\tif( node.value < parent.value ) {\r\n\t\t\tparent.left = node ;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.right = node ;\r\n\t\t}\r\n\t}", "public void printBST() {\n prnt = \" \";\n try {\n int size = ((int) Math.pow(2, root.height)) - 1;\n if (size > 0) {\n ArrayTree = new int[size];\n\n int index = 0;\n ArrayTree[index] = root.key;\n\n if (size > 1) {\n BinarySearch(root, index);\n }\n for (int i = 0; i < ArrayTree.length; i++) {\n if (i <= lastIndex) {\n String bstoutput = (ArrayTree[i] == 0) ? \"null \" : ArrayTree[i] + \" \";\n prnt = prnt + \" \" + bstoutput + \", \";\n }\n }\n System.out.print(\"\\nBinary Tree: {\" + prnt + \"}\");\n }\n } catch (NullPointerException e) {\n System.out.println(\"null\");\n\n }\n }", "public static BSTNode insert(BSTNode root, int data) {\n\t\tif (root == null) {\n\t\t\troot = new BSTNode(data);\n\t\t\treturn root;\n\t\t} else {\n\t\t\tif (root.data >= data) {\n\t\t\t\troot.left = insert(root.left, data);\n\t\t\t}\n\t\t\tif (root.data < data) {\n\t\t\t\troot.right = insert(root.right, data);\n\t\t\t}\n\t\t\treturn root;\n\t\t}\n\t}", "@Override\r\n\tpublic int insert(T element) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.size++;\r\n\t\tBSTNode<T> z = new BSTNode();\r\n\t\tz.data = element;\r\n\t\tz.parent = null;\r\n\t\tz.left = null;\r\n\t\tz.right = null;\r\n\t\t\r\n\t\t\r\n\t\tBSTNode<T> x = this.root;\r\n\t\tBSTNode<T> y = null;//trailing\r\n\t\t\r\n\t\tint traversals = 0;\r\n\t\twhile(x!= null) {\r\n\t\t\ttraversals++;\r\n\t\t\ty=x;\r\n\t\t\tif(z.data.compareTo(x.data)<0) {\r\n\t\t\t\tx = x.left;\r\n\t\t\t}else {\r\n\t\t\t\tx = x.right;\r\n\t\t\t}\r\n\t\t}\r\n\t\tz.parent = y;\r\n\t\tif(y==null) {\r\n\t\t\tthis.root=z;\r\n\t\t}else if(z.data.compareTo(y.data)<0) {\r\n\t\t\ty.left=z;\r\n\t\t}else {\r\n\t\t\ty.right=z;\r\n\t\t}\r\n\t\t\r\n\t\treturn traversals;\r\n\t}", "public BSTNode buildBST(int arr[], int start, int end) {\n BSTNode newNode;\n if(start > end)\n return null;\n newNode = new BSTNode();\n\n if(start == end){\n newNode.setData(arr[start]);\n newNode.setLeft(null);\n newNode.setRight(null);\n } else {\n int mid = (start + end)/2;\n newNode.setData(arr[mid]);\n newNode.setLeft(buildBST(arr,start, mid-1));\n newNode.setRight(buildBST(arr,mid+1, end));\n }\n return newNode;\n }", "private void constructBSTree(Node<T> u, int n, String lr) {\n\t\tn++;\n\t\taddToPT(n, lr + \" \" + u.x.toString());\n\t\telements.add(u.x);\n\t\tif (u.left != nil)\n\t\t\tconstructBSTree(u.left, n, lr + \"L\");\n\t\tif (u.right != nil)\n\t\t\tconstructBSTree(u.right, n, lr + \"R\");\n\t}", "public int insert(int newKey){\n int i=n-1;\n int x =0;\n if (isLeaf){\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i]) \n return -1;//duplicate return withoiut doinganything\n key[i+1] = key[i];\n i--;\n \n }\n if(x>=0){\n n++;\n key[i+1]=newKey;\n }\n }\n else{\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i])\n return -1;// find duplictte return without doing anithing \n \n else\n i--;\n }\n if(x>=0){\n \n int insertChild = i+1; // Subtree where new key must be inserted\n if (c[insertChild].isFull()){\n x++;// one more node.\n // The root of the subtree where new key will be inserted has to be split\n // We promote the mediand of that root to the current node and\n // update keys and references accordingly\n \n //System.out.println(\"This is the full node we're going to break \");// Debugging code\n //c[insertChild].printNodes();\n //System.out.println(\"going to promote \" + c[insertChild].key[T-1]);\n n++;\n c[n]=c[n-1];\n for(int j = n-1;j>insertChild;j--){\n c[j] =c[j-1];\n key[j] = key[j-1];\n }\n key[insertChild]= c[insertChild].key[T-1];\n c[insertChild].n = T-1;\n \n BTreeNode newNode = new BTreeNode(T);\n for(int k=0;k<T-1;k++){\n newNode.c[k] = c[insertChild].c[k+T];\n newNode.key[k] = c[insertChild].key[k+T];\n }\n \n newNode.c[T-1] = c[insertChild].c[2*T-1];\n newNode.n=T-1;\n newNode.isLeaf = c[insertChild].isLeaf;\n c[insertChild+1]=newNode;\n \n //System.out.println(\"This is the left side \");\n //c[insertChild].printNodes(); \n //System.out.println(\"This is the right side \");\n //c[insertChild+1].printNodes();\n //c[insertChild+1].printNodes();\n \n if (newKey <key[insertChild]){\n c[insertChild].insert(newKey); }\n else{\n c[insertChild+1].insert(newKey); }\n }\n else\n c[insertChild].insert(newKey);\n }\n \n \n }\n return x ;\n }", "public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] vals = data.split(\"\\\\,\");\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.valueOf(vals[0]));\n queue.offer(root);\n for (int i = 1; i < vals.length; ++i) {\n TreeNode cur = queue.poll();\n if (!vals[i].equals(\"#\")) {\n cur.left = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(cur.left);\n } \n if (!vals[++i].equals(\"#\")) {\n cur.right = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(cur.right);\n }\n }\n return root;\n }", "public TreeNode insert(int value) {\n TreeNode newNode = new TreeNode(value);\n\n // CASE when Root Is NULL\n if (root == null) {\n this.root = newNode;\n } else {\n // CASE when Root is Not NULL\n TreeNode currentlyPointedNode = root;\n boolean keepWalking = true;\n\n while (keepWalking) {\n // CASE : Inserted Value BIGGER THAN Current Node's Value\n if (value >= currentlyPointedNode.value) {\n // CASE : current node's Right Child is NULL\n if (currentlyPointedNode.rightChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.rightChild = newNode;\n keepWalking = false;\n\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.rightChild;\n }\n } else {\n // CASE : Inserted Value SMALLER THAN Current Node's Value\n\n // CASE WHEN current node's LEFT Child is null\n if (currentlyPointedNode.leftChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.leftChild = newNode;\n keepWalking = false;\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.leftChild;\n }\n\n }\n }\n }\n\n return root;\n }", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "public BinarySearchTree(T data, Node<T> left, Node<T> right) {\n\n root = new Node<>(data, null, left, right);\n size = 1;\n\n if (left != null) {\n root.setLeft(left);\n size++;\n }\n if (right != null) {\n root.setRight(right);\n size++;\n }\n }", "public static Treenode createBinaryTree() {\n\t\tTreenode rootnode = new Treenode(40);\r\n\t\tTreenode r40 = new Treenode(50);\r\n\t\tTreenode l40 = new Treenode(20);\r\n\t\tTreenode r50 = new Treenode(60);\r\n\t\tTreenode l50 = new Treenode(45);\r\n\t\tTreenode r20 = new Treenode(30);\r\n\t\tTreenode l20 = new Treenode(10);\r\n\t\trootnode.right = r40;\r\n\t\trootnode.left = l40;\r\n\t\tr40.right=r50;\r\n\t\tr40.left = l50;\r\n\t\tl40.right=r20;\r\n\t\tl40.left=l20;\r\n\t\t r40.parent=rootnode; l40.parent= rootnode;\r\n\t\t r50.parent=r40;\r\n\t\tl50.parent=r40 ;\r\n\t\t r20.parent=l40;\r\n\t\t l20.parent=l40 ;\r\n\t\treturn rootnode;\r\n\t\t\r\n\t}", "public TreeNode deserialize(String data) {\n if (data == \"\") return null; \n \n String[] strs = data.split(\" \");\n Queue<TreeNode> q = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(strs[0]));\n q.offer(root);\n \n for (int i = 1; i < strs.length; i++) {\n TreeNode cur = q.poll(); // cannot use root, since we need return root at the end\n if (!strs[i].equals(\"null\")) { // use equals, not ==\n cur.left = new TreeNode(Integer.parseInt(strs[i]));\n q.offer(cur.left);\n }\n \n if (!strs[++i].equals(\"null\")) { // use equals, not ==\n cur.right = new TreeNode(Integer.parseInt(strs[i]));\n q.offer(cur.right);\n }\n }\n \n return root;\n }", "public Node insertBST(Node node, Node add ){\n\t\tif(node==nil){\n\t\t\t//inserting the node at the correct position\n\t\t\treturn add;\n\t\t}\n\t\tif(add.id <node.id){\n\t\t\t//going to the left if the node to be inserted is smaller than the current node\n\t\t\tnode.left = insertBST(node.left,add);\n\t\t\t//pointing the node just inserted to its parent\n\t\t\tnode.left.parent = node;\n\t\t}else{\n\t\t\t//going right in case the node is equal or bigger\n\t\t\tnode.right = insertBST(node.right,add);\n\t\t\t//attaching the parent\n\t\t\tnode.right.parent = node;\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "private void insert(RBNode<T> node) {\r\n RBNode<T> current = this.root;\r\n //need to save the information of parentNode\r\n //because need the parentNode to connect the new node to the tree\r\n RBNode<T> parentNode = null;\r\n\r\n //1. find the insert position\r\n while(current != null) {\r\n parentNode = current;//store the parent of current, because current is going to move\r\n int cmp = node.key.compareTo(current.key);\r\n if(cmp < 0)//if insert data is smaller than current data, then go into left subtree\r\n current = current.left;\r\n else//if insert data is bigger than or equal to current data, then go into right subtree\r\n current = current.right;\r\n }\r\n\r\n //find the position, let parentNode as the parent of newNode\r\n node.parent = parentNode;\r\n\r\n //2. connect newNode to parentNode\r\n if(parentNode != null) {\r\n int cmp = node.key.compareTo(parentNode.key);\r\n if(cmp < 0)\r\n parentNode.left = node;\r\n else\r\n parentNode.right = node;\r\n } else {\r\n //if parentNode is null, means tree was empty, let root = newNode\r\n this.root = node;\r\n }\r\n\r\n //3. fix the current tree to be a RBTree again\r\n insertFixUp(node);\r\n }", "public BST(Collection<T> data) {\n if (data == null) {\n throw new IllegalArgumentException(\n \"Cannot insert null data.\");\n } else {\n size = 0;\n // for each loop\n for (T t : data) {\n if (t == null) {\n throw new IllegalArgumentException(\"Data cannot be null.\");\n }\n add(t);\n }\n }\n }", "public static void main(String[] args) {\n BinaryTreeNode root = new BinaryTreeNode();\n root.value = 8;\n root.left = new BinaryTreeNode();\n root.left.value = 6;\n root.left.left = new BinaryTreeNode();\n root.left.left.value = 5;\n root.left.right = new BinaryTreeNode();\n root.left.right.value = 7;\n root.right = new BinaryTreeNode();\n root.right.value = 10;\n root.right.left = new BinaryTreeNode();\n root.right.left.value = 9;\n root.right.right = new BinaryTreeNode();\n root.right.right.value = 11;\n printFromToBottom(root);}", "public void insert(int value) {\n var node = new Node(value);\n\n if (root == null) {\n root = node;\n return;\n }\n\n var current = root;\n while (true) {\n if (value < current.value) {\n if (current.leftChild == null) {\n current.leftChild = node;\n break;\n }\n current = current.leftChild;\n } else {\n if (current.rightChild == null) {\n current.rightChild = node;\n break;\n }\n current = current.rightChild;\n }\n }\n }", "public TreeNode deserialize(String data) {\n // write your code here\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n boolean isLeftPosition = true;\n String[] stringArray = data.substring(1, data.length() - 1).split(\",\");\n if(data.equals(\"{}\")){\n \treturn null;\n }\n TreeNode root = new TreeNode(Integer.parseInt(stringArray[0]));\n queue.add(root);\n int index = 0;\n for(int i = 1; i < stringArray.length; i++){\n \tif(!stringArray[i].equals(\"#\")){\n \t\tTreeNode node = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\tSystem.out.print((new TreeNode(Integer.parseInt(stringArray[i])).equals(new TreeNode(Integer.parseInt(stringArray[i])))));\n \t\tif (isLeftPosition){\n \t\t queue.get(index).left = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\telse {\n \t\t queue.get(index).right = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\tqueue.add(new TreeNode(Integer.parseInt(stringArray[i])));\n \t}\n \tif(!isLeftPosition) index++;\n \tisLeftPosition = !isLeftPosition;\n }\n return root;\n }", "private BSTNode insert(BSTNode node, int data) {\r\n \r\n // if the node is null, create a new node\r\n if (node == null) {\r\n \r\n // create new BSTNode node\r\n node = new BSTNode(data);\r\n }\r\n \r\n // if the node is not null, execute\r\n else {\r\n \r\n // if the data < parent, traverse left\r\n if (data < node.getData()) {\r\n \r\n // call the insert method on the left node\r\n node.left = insert(node.left, data); \r\n }\r\n \r\n // if data > parent, traverse right\r\n else if (data > node.getData()) {\r\n \r\n // call the insert method on the right node\r\n node.right = insert(node.right, data);\r\n }\r\n \r\n // if the data == parent, increment intensity count\r\n else {\r\n \r\n // call method to increment the node's intensity count\r\n node.incrementIntensityCount();\r\n }\r\n }\r\n \r\n // return the node\r\n return node;\r\n }", "public void insertBST(Object o) {\n ObjectTreeNode p, q;\n \n ObjectTreeNode r = new ObjectTreeNode(o);\n if (root == null)\n root = r;\n else {\n p = root;\n q = root;\n while (q != null) {\n p = q;\n if (((TreeComparable)(r.getInfo())).compareTo((TreeComparable)(p.getInfo())) < 0 )\n q = p.getLeft();\n else\n q = p.getRight();\n }\n if (((TreeComparable)(r.getInfo())).compareTo((TreeComparable)(p.getInfo())) < 0)\n setLeftChild(p, r);\n else\n setRightChild(p, r);\n }\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n if(nums == null || nums.length == 0){\n \t return null;\n }\n return buildTree(nums, 0, nums.length - 1);\n }", "public boolean Insert(int newInt) {\r\n\t\t//initialize the parent node\r\n\t\tTreeNodeWrapper p = new TreeNodeWrapper();\r\n\t\t//initialize the child node\r\n\t\tTreeNodeWrapper c = new TreeNodeWrapper();\r\n\t\t//initialize a new TreeNode\r\n\t\tTreeNode n = new TreeNode();\r\n\t\t//set value of TreeNode as integer passed in method\r\n\t\tn.Data = newInt;\r\n\t\t//initialize left node as null\r\n\t\tn.Left = null;\r\n\t\t//initialize right node as null\r\n\t\tn.Right = null;\r\n\t\t//will be inserted as a leaf so its balanceFactor will be zero\r\n\t\tn.balanceFactor = 0;\r\n\t\t//if tree is empty set a root node\r\n\t\tif(Root == null)\r\n\t\t{ \r\n\t\t\tRoot = n;\r\n\t\t} else\r\n\t\t//determine which node is parent node using FindNode Method\r\n\t\t{ FindNode(newInt, p, c);\r\n\t\t//if new value is less than parent node then set as left node\r\n\t\t if(newInt < p.Get().Data )\r\n\t\t { \r\n\t\t\tp.Get().Left = n;\r\n\t\t }\r\n\t\t else\r\n\t\t//else new value is more than parent node and set as right node\r\n\t\t { p.Get().Right = n; }\r\n\t\t}\r\n\t\t//insert successful \r\n\t\treturn true;\r\n\t}", "public TreeNode helper(int in_left, int in_right)\n {\n if (in_left == in_right) return null;\n\n // pick up pre_idx element as a root\n int root_val = preorder[pre_idx];\n TreeNode root = new TreeNode(root_val);\n\n // root splits inorder list\n // into left and right subtrees\n int index = idx_map.get(root_val);\n\n // recursion\n pre_idx++;\n // build left subtree\n root.left = helper(in_left, index);\n // build right subtree\n root.right = helper(index + 1, in_right);\n return root;\n }", "public TreeNode sortedListToBST(ListNode head) {\n if (head == null) {\n return null;\n }\n\n // Find the middle element for the list.\n ListNode mid = this.findMiddleElement(head);\n\n // The mid becomes the root of the BST.\n TreeNode node = new TreeNode(mid.val);\n\n // Base case when there is just one element in the linked list\n if (head == mid) {\n return node;\n }\n\n // Recursively form balanced BSTs using the left and right halves of the original list.\n node.left = this.sortedListToBST(head);\n node.right = this.sortedListToBST(mid.next);\n return node;\n }", "private BinaryNode<E> buildTree(ArrayList<E> arr, int height, BinaryNode<E> parent) {\n\n if (arr.isEmpty()) return null;\n BinaryNode<E> curr = new BinaryNode<>(arr.remove(0), null, null, parent);\n if (height > 0) {\n curr.left = buildTree(arr, height - 1, curr);\n curr.right = buildTree(arr, height - 1, curr);\n }\n return curr;\n }", "public BinarySearchTree(T data) {\n this(data, null, null);\n }", "public void insert(T data) {\n if (root == null) {\n root = new Node<>(data);\n } else {\n Node<T> current = root;\n Node<T> newNode = new Node<>(data);\n\n while (true) {\n if (newNode.compareTo(current) <= 0) {\n if (current.hasLeft()) {\n current = current.getLeft();\n } else {\n current.setLeft(newNode);\n break;\n }\n } else {\n if (current.hasRight()) {\n current = current.getRight();\n } else {\n current.setRight(newNode);\n break;\n }\n }\n }\n }\n size++;\n }", "public TreeNode deserialize(String data) {\n if (data == null || data.length() == 0) return null;\n Queue<TreeNode> queue = new LinkedList<>();\n String[] nodes = data.split(\",\");\n TreeNode root = new TreeNode(Integer.parseInt(nodes[0]));\n queue.offer(root);\n for (int i = 1; i < nodes.length; i += 2) {\n TreeNode cur = queue.poll();\n if (!nodes[i].equals(\"null\")) {\n TreeNode left = new TreeNode(Integer.parseInt(nodes[i]));\n cur.left = left;\n queue.offer(left);\n }\n if (!nodes[i+1].equals(\"null\")) {\n TreeNode right = new TreeNode(Integer.parseInt(nodes[i+1]));\n cur.right = right;\n queue.offer(right);\n }\n }\n return root;\n }", "private boolean bstInsert(Node newNode, Node currentNode) {\n if (mRoot == null) {\n // case 1\n mRoot = newNode;\n return true;\n }\n else{\n int compare = currentNode.mKey.compareTo(newNode.mKey);\n if (compare < 0) {\n // newNode is larger; go right.\n if (currentNode.mRight != NIL_NODE)\n return bstInsert(newNode, currentNode.mRight);\n else {\n currentNode.mRight = newNode;\n newNode.mParent = currentNode;\n mCount++;\n return true;\n }\n }\n else if (compare > 0) {\n if (currentNode.mLeft != NIL_NODE)\n return bstInsert(newNode, currentNode.mLeft);\n else {\n currentNode.mLeft = newNode;\n newNode.mParent = currentNode;\n mCount++;\n return true;\n }\n }\n else {\n // found a node with the given key; update value.\n currentNode.mValue = newNode.mValue;\n return false; // did NOT insert a new node.\n }\n }\n }", "public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }", "public static void bfsTraversal(BSTNode root) {\n\t\t // base condition\n\t\t if (root == null) {\n\t\t return;\n\t\t }\n\t\t // let's have a queue to maintain nodes\n\t\t Queue<BSTNode> q = new LinkedList<>();\n\t\t if (root != null) {\n\t\t q.add(root);\n\t\t }\n\t\t \n\t\t while (!q.isEmpty()) {\n\t\t BSTNode curr = q.poll();\n\t\t if (curr != null) {\n\t\t\t q.add(curr.left);\n\t\t\t q.add(curr.right);\n\t\t\t \n\t\t\t System.out.print(curr.data + \" \");\n\t\t }\n\t\t }\n\t\t \n\t}", "public TreeNode sortedArrayToBST2(int[] nums) {\n if (nums.length == 0) {\n return null;\n }\n return doConvertToBST(nums, 0, nums.length - 1);\n }", "static void insert(Node nd, int key)\n\t{\n\t\tif (nd == null) {\n\t\t\troot = new Node(key);\n\t\t\treturn;\n\t\t}\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(nd);\n\n\t\t// Do level order traversal until we find an empty place\n\t\twhile (!q.isEmpty()) {\n\t\t\tnd = q.remove();\n\n\t\t\tif (nd.left == null) {\n\t\t\t\tnd.left = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.left);\n\n\t\t\tif (nd.right == null) {\n\t\t\t\tnd.right = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.right);\n\t\t}\n\t}", "private Node sortedArrayToBST(List<EventPair> allEvents, int start, int end, Node root1) {\n\t\tif (start > end) {\n return createNullLeaf(root1);\n }\n\t\tint mid = (start + end) / 2;\n\t\tNode node = createNode(allEvents.get(mid), Color.BLACK, root1);\n\t\tnode.left = sortedArrayToBST(allEvents, start, mid-1, node);\n\t\tnode.right = sortedArrayToBST(allEvents, mid+1, end, node);\n\t return node;\n\t}", "public TreeNode reconstruct(int[] pre) {\n if (pre == null || pre.length == 0) {\n return null;\n }\n return buildBST(pre, 0, pre.length - 1);\n }", "public static void main(String args[]) {\n \n BST tree = new BST(); \n \n tree.root = new Node(50); \n tree.root.left = new Node(10); \n tree.root.right = new Node(60); \n tree.root.left.left = new Node(5); \n tree.root.left.right = new Node(20); \n tree.root.right.left = new Node(55); \n tree.root.right.left.left = new Node(45); \n tree.root.right.right = new Node(70); \n tree.root.right.right.left = new Node(65); \n tree.root.right.right.right = new Node(80); \n \n /* The complete tree is not BST as 45 is in right subtree of 50. \n The following subtree is the largest BST \n 60 \n / \\ \n 55 70 \n / / \\ \n 45 65 80 \n */\n tree.largestBST(root);\n System.out.println(\"Size of largest BST is \" + res); \n }", "public TreeNode sortedArrayToBST(int[] A) {\n return build(A, 0, A.length - 1);\n }", "public Node insert(Node node, int key) {\n\n //first we insert the key the same way as BST\n if (node == null)\n return (new Node(key));\n\n if (key < node.key)\n node.left = insert(node.left, key);\n else if (key > node.key){\n node.right = insert(node.right, key);\n }\n else\n return node;\n\n //updating the height of ancestor node\n node.height = 1 + max(height(node.left), height(node.right));\n\n //checking if the ancestor got imbalanced\n int balance = balance(node);\n\n // in case it's imbalanced we considar these 4 cases:\n if (balance > 1 && key < node.left.key)\n return rotateright(node);\n\n if (balance < -1 && key > node.right.key)\n return rotateleft(node);\n\n if (balance > 1 && key > node.left.key) {\n node.left = rotateleft(node.left);\n return rotateright(node);\n }\n\n if (balance < -1 && key < node.right.key) {\n node.right = rotateright(node.right);\n return rotateleft(node);\n }\n\n //returning the node\n return node;\n }", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "static void bfs(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n output.add(node.val);\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }", "public TreeNode sortedArrayToBST(int[] nums) {\n if(nums == null || nums.length == 0) return null;\n return makeTree(nums, 0, nums.length-1);\n }", "public BST(E[] objects) {\n for (int i = 0; i < objects.length; i++) {\n insert(objects[i]);\n }\n }" ]
[ "0.6770243", "0.66986835", "0.66941506", "0.66668314", "0.6650464", "0.65775776", "0.6516771", "0.6507246", "0.64908785", "0.6454742", "0.6450441", "0.6445534", "0.640366", "0.64031017", "0.63870484", "0.63691455", "0.6362926", "0.6348345", "0.6311209", "0.6310845", "0.63083994", "0.6291932", "0.62741923", "0.62730557", "0.6264768", "0.6259261", "0.62454635", "0.62310785", "0.61803627", "0.6180107", "0.6179763", "0.61790085", "0.6178514", "0.61619645", "0.61468124", "0.6144966", "0.6140221", "0.6131618", "0.6131168", "0.6130284", "0.6102528", "0.6101106", "0.60981625", "0.6088032", "0.60813856", "0.60780394", "0.6074027", "0.6060084", "0.60408497", "0.603588", "0.60341626", "0.6028929", "0.6021046", "0.60205656", "0.60200703", "0.60189754", "0.6010065", "0.6008962", "0.59991777", "0.59906083", "0.59847575", "0.5982139", "0.597577", "0.59633946", "0.5960612", "0.5959972", "0.5958228", "0.59525716", "0.5951929", "0.594903", "0.5942872", "0.59396535", "0.5938523", "0.5926535", "0.592401", "0.59187704", "0.5916947", "0.5913794", "0.59133023", "0.59095883", "0.59004086", "0.58990824", "0.5895603", "0.5894818", "0.5894052", "0.5892649", "0.5892253", "0.58907074", "0.5887713", "0.5880581", "0.58786094", "0.58749425", "0.5874376", "0.58714515", "0.5868243", "0.58635247", "0.58614767", "0.5861389", "0.58605915", "0.5858815", "0.58540964" ]
0.0
-1
Very easy way of doing BFS.
private static void showBFS(TreeNode root) { Queue<TreeNode> queue = new LinkedList<TreeNode>(); queue.add(root); while (!queue.isEmpty()) { TreeNode node = queue.remove(); System.out.print(node + " "); if (node.left != null) queue.add(node.left); if (node.right != null) queue.add(node.right); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void BFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\tBFS(this.vertices[3], visited, queue); // BFS starting with 40\r\n\r\n\t\t// Call the helper function to print BFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tBFS(this.vertices[i], visited, queue);\r\n\t}", "private void BFS() {\n\n int fruitIndex = vertices.size()-1;\n Queue<GraphNode> bfsQueue = new LinkedList<>();\n bfsQueue.add(vertices.get(0));\n while (!bfsQueue.isEmpty()) {\n GraphNode pollNode = bfsQueue.poll();\n pollNode.setSeen(true);\n for (GraphNode node : vertices) {\n if (node.isSeen()) {\n continue;\n } else if (node.getID() == pollNode.getID()) {\n continue;\n } else if (!los.isIntersects(pollNode.getPoint(), node.getPoint())) {\n pollNode.getNeigbours().add(node);\n if (node.getID() != fruitIndex) {\n bfsQueue.add(node);\n node.setSeen(true);\n }\n }\n }\n }\n }", "int main()\n{\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n \n cout << \"Following is Breadth First Traversal \"\n << \"(starting from vertex 2) n\";\n g.BFS(2);\n \n return 0;\n}", "public static void bfs (String input)\r\n\t{\r\n\t\tNode root_bfs = new Node (input);\r\n\t\tNode current = new Node(root_bfs.getState());\r\n\t\t\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\tQueue<Node> queue_bfs = new LinkedList<Node>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint queue_max_size = 0;\r\n\t\tint queue_size = 0;\r\n\t\tcurrent.cost = 0;\r\n\t\t\r\n\t\t// Initial check for goal state\r\n\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_bfs)\r\n\t\t{\r\n\t\t\t// Add the current node to the visited array\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\t// Get the nodes children from the successor function\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t// State checking, don't add already visited nodes to the queue\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Create child node from the children array and add it to the current node\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Obtaining the path cost\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// State check and adding the child to the queue. Increasing size counter\r\n\t\t\t\t\tif (!queue_bfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_bfs.add(nino);\r\n\t\t\t\t\t\tqueue_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Pop a node off the queue\r\n\t\t\tcurrent = queue_bfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\t// Added this because my queue size variable was always one off based on where my goal check is\r\n\t\t\tif (queue_size > queue_max_size)\r\n\t\t\t{\r\n\t\t\t\tqueue_max_size = queue_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Decrease queue size because a node has been popped and check for goal state\r\n\t\t\tqueue_size--;\r\n\t\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Now that a solution has been found, set the boolean back to false for another run\r\n\t\tgoal_bfs = false;\r\n\t\tSystem.out.println(\"BFS Solved!!\");\r\n\t\t\r\n\t\t// Send metrics to be printed to the console\r\n\t\tSolution.performSolution(current, root_bfs, nodes_popped, queue_max_size);\r\n\t\t\t\r\n\t}", "public void BFS() {\r\n\t\tQueue queue = new Queue();\r\n\t\tqueue.enqueue(this.currentVertex);\r\n\t\tcurrentVertex.printVertex();\r\n\t\tcurrentVertex.visited = true;\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tVertex vertex = (Vertex) queue.dequeue();\r\n\t\t\tVertex child = null;\r\n\t\t\twhile ((child = getUnvisitedChildVertex(vertex)) != null) {\r\n\t\t\t\tchild.visited = true;\r\n\t\t\t\tchild.printVertex();\r\n\t\t\t\tqueue.enqueue(child);\r\n\t\t\t}\r\n\t\t}\r\n\t\tclearVertexNodes();\r\n\t\tprintLine();\r\n\t}", "public void bfs(Vertex<T> start) {\n\t\t\t// BFS uses Queue data structure\n\t\t\tQueue<Vertex<T>> que = new LinkedList<Vertex<T>>();\n\t\t\tstart.visited = true;\n\t\t\tque.add(start);\n\t\t\tprintNode(start);\n\n\t\t\twhile (!que.isEmpty()) {\n\t\t\t\tVertex<T> n = (Vertex<T>) que.remove();\n\t\t\t\tVertex<T> child = null;\n\t\t\t\twhile ((child = getUnvisitedChildren(n)) != null) {\n\t\t\t\t\tchild.visited = true;\n\t\t\t\t\tque.add(child);\n\t\t\t\t\tprintNode(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void BFS(int s);", "void bfs(SimpleVertex simpleVertex) {\n\t\twhile (true) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\n\t\t\t\tif (simpleVertex.isAdded == false) {\n\t\t\t\t\tqueue.add(simpleVertex);\n\t\t\t\t\tsimpleVertex.isAdded = true;\n\t\t\t\t}\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\n\t\t\t\t\tif (node.two.isAdded == false)\n\t\t\t\t\t\tqueue.add(node.two);\n\t\t\t\t\tnode.two.isAdded = true;\n\n\t\t\t\t}\n\t\t\t\tqueue.poll();\n\t\t\t\tif (!queue.isEmpty())\n\t\t\t\t\tbfs(queue.peek());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n public void bfs() {\n\n }", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public void bfs(Pair<Integer, Integer> current, Pair<Integer, Integer> goal) {\n var visited = new HashSet<Pair<Integer, Integer>>(300);\n var queue = new LinkedList<Pair<Integer, Integer>>();\n \n visited.add(current);\n queue.add(current);\n \n while (!queue.isEmpty()) {\n var toVisit = queue.poll();\n if (goal.equals(toVisit)) {\n goal.setParent(toVisit);\n toVisit.setChild(goal);\n break;\n }\n var neighbors = Utils.getNeighbors(toVisit);\n neighbors.forEach(p -> {\n // only move through SAFE tiles!\n // unless the neighbor is goal node!\n if (p.equals(goal) ||\n (!visited.contains(p) &&\n grid[p.getA()][p.getB()].getTileTypes().contains(Tile.SAFE)))\n {\n visited.add(p);\n p.setParent(toVisit);\n toVisit.setChild(p);\n queue.add(p);\n }\n });\n }\n }", "static void bfs(String label) {\n\n /* Add a graph node to the queue. */\n queue.addLast(label);\n graphVisited.put(label, true);\n\n while (!queue.isEmpty()) {\n\n /* Take a node out of the queue and add it to the list of visited nodes. */\n if (!graphVisited.containsKey(queue.getFirst()))\n graphVisited.put(queue.getFirst(), true);\n\n String str = queue.removeFirst();\n\n /*\n For each unvisited vertex from the list of the adjacent vertices,\n add the vertex to the queue.\n */\n for (String lab : silhouette.get(str)) {\n if (!graphVisited.containsKey(lab) && lab != null && !queue.contains(lab))\n queue.addLast(lab);\n }\n }\n }", "static void bfs(int[][] G){\n\t\tQueue<Integer> q = new LinkedList<Integer>();\t\t\n\t\tfor (int ver_start = 0; ver_start < N; ver_start ++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\tq.add(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!q.isEmpty()){\n\t\t\t\tint vertex = q.remove();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the queue\n\t\t\t\t\t\tq.add(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"--\");\t\t\t\n\t\t}\n\t}", "void Graph::BFS(int s)\n{\n bool *visited = new bool[V];\n for(int i = 0; i < V; i++)\n visited[i] = false;\n \n // Create a queue for BFS\n list<int> queue;\n \n // Mark the current node as visited and enqueue it\n visited[s] = true;\n queue.push_back(s);\n \n // 'i' will be used to get all adjacent vertices of a vertex\n list<int>::iterator i;\n \n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << \" \";\n queue.pop_front();\n \n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it visited\n // and enqueue it\n for(i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if(!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }", "public static void breadthFirstSearch(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"BFS:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tQueue<Node> queue = new LinkedList<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tqueue.add(node);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tnode = queue.remove();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the queue for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "HashMap<GamePiece, GamePiece> bfs(GamePiece from) {\n ArrayDeque<GamePiece> worklist = new ArrayDeque<GamePiece>();\n ArrayList<GamePiece> seen = new ArrayList<GamePiece>();\n HashMap<GamePiece, GamePiece> graph = new HashMap<GamePiece, GamePiece>();\n worklist.addFirst(from);\n graph.put(from, from);\n while (worklist.size() > 0) {\n GamePiece next = worklist.removeFirst();\n if (seen.contains(next)) {\n // if seen has the next element, don't do anything with it\n }\n else {\n for (String s : this.directions) {\n if (next.hasNeighbor(s) && next.connected(s)) {\n worklist.addFirst(next.neighbors.get(s));\n graph.put(next.neighbors.get(s), next);\n }\n }\n seen.add(next);\n }\n }\n return graph;\n }", "private void bfs(int nodeKey) {\n Queue<Integer> q = new LinkedList<>();\n // initialize all the nodes\n for (node_data node : G.getV())\n node.setTag(0);\n\n int currentNode = nodeKey;\n\n // iterate the graph and mark nodes that have been visited\n while (G.getNode(currentNode) != null) {\n for (edge_data edge : G.getE(currentNode)) {\n node_data dest = G.getNode(edge.getDest());\n if (dest.getTag() == 0) {\n q.add(dest.getKey());\n }\n G.getNode(currentNode).setTag(1);\n }\n if(q.peek()==null)\n currentNode=-1;\n else\n currentNode = q.poll();\n }\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "private static void bfs(State curr) {\n curr.buildStack(curr.getSuccessors(curr));\r\n \r\n if(curr.isGoalState()) \r\n System.out.println(curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(curr.getOrderedPair());//initial\r\n \r\n curr.close.add(curr);\r\n while(!curr.open.isEmpty()&&!curr.isGoalState()) {\r\n curr.buildStack(curr.getSuccessors(curr));\r\n curr.printHelp(curr, 3);\r\n curr = curr.open.get(0);\r\n curr.close.add(curr.open.remove(0));\r\n }\r\n \r\n if(curr.isGoalState()) {\r\n System.out.println(curr.getOrderedPair() + \" Goal\");\r\n curr.printPath(curr);\r\n }\r\n }", "public void bfs(Queue<Integer> queue, int visited[]) {\n if (queue.isEmpty()) {\n return;\n }\n\n int root = queue.poll();\n\n if (visited[root] == 1) {\n bfs(queue, visited);\n return;//alreadu into consideration\n }\n\n\n System.out.printf(\"Exploring of node %d has started\\n\", root);\n visited[root] = 1;\n\n\n for (int i = 0; i < adjMatrix[root].size(); i++) {\n if (visited[adjMatrix[root].get(i)] == 1 || visited[adjMatrix[root].get(i)] == 2) {\n continue;\n }\n queue.add(adjMatrix[root].get(i));\n }\n bfs(queue, visited);\n System.out.printf(\"Exploring of node %d has end\\n\", root);\n visited[root] = 2;\n }", "public static void main (String[] args) {\n\t GraphListBfs g = new GraphListBfs(7);\n\t g.addEdge(0,1);\n\t g.addEdge(0,4);\n\t g.addEdge(1,2);\n\t g.addEdge(1,3);\n\t g.addEdge(1,4);\n\t g.addEdge(2,3);\n\t g.addEdge(3,4);\n\t\n\t g.bfs(0);\n\t}", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void BFS(int[][] adjacencyMatrix) {\n\t\tint n = adjacencyMatrix.length;\n\t\tboolean visited[] = new boolean[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(!visited[i]) {\n\t\t\tprintBFS(adjacencyMatrix,i,visited);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\n\t}", "private void bfs(Dungeon d, Site s) {\n\t\t\n\t\t// use a queue to do BFS, and initialize instance variables\n\t\tQueue<Site> q = new LinkedList<Site>();\n\t\tfor (int x = 0; x < d.size(); x++)\n\t\t\tfor (int y = 0; y < d.size(); y++)\n\t\t\t\tdistTo[x][y] = INFINITY; \n\t\tdistTo[s.getX()][s.getY()] = 0;\n\t\tmarked[s.getX()][s.getY()] = true;\n\t\t\n\t\t// pop site from queue until it's empty\n\t\tq.offer(s);\n\t\twhile (!q.isEmpty()) {\n\t\t\t\n\t\t\t// pop the next site in the queue\n\t\t\tSite v = q.poll(); \t \n\t\t\tint x = v.getX();\n\t\t\tint y = v.getY();\n\n\t\t\t// 4 adjacent sites\n\t\t\tSite east = new Site(x + 1, y);\n\t\t\tSite west = new Site(x - 1, y);\n\t\t\tSite north = new Site(x, y - 1);\n\t\t\tSite south = new Site(x, y + 1);\n\n\t\t\t// BFS the rest of the dungeon\n\t\t\tif (d.isLegalMove(v, east) && !marked[east.getX()][east.getY()]) {\n\t\t\t\tedgeTo[east.getX()][east.getY()] = v;\n\t\t\t\tdistTo[east.getX()][east.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[east.getX()][east.getY()] = true;\n\t\t\t\tq.offer(east);\n\t\t\t}\n\t\t\tif (d.isLegalMove(v, west) && !marked[west.getX()][west.getY()]) {\n\t\t\t\tedgeTo[west.getX()][west.getY()] = v;\n\t\t\t\tdistTo[west.getX()][west.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[west.getX()][west.getY()] = true;\n\t\t\t\tq.offer(west);\n\t\t\t}\n\t\t\tif (d.isLegalMove(v, north) && !marked[north.getX()][north.getY()]) {\n\t\t\t\tedgeTo[north.getX()][north.getY()] = v;\n\t\t\t\tdistTo[north.getX()][north.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[north.getX()][north.getY()] = true;\n\t\t\t\tq.offer(north);\n\t\t\t}\n\t\t\tif (d.isLegalMove(v, south) && !marked[south.getX()][south.getY()]) {\n\t\t\t\tedgeTo[south.getX()][south.getY()] = v;\n\t\t\t\tdistTo[south.getX()][south.getY()] = distTo[x][y] + 1;\n\t\t\t\tmarked[south.getX()][south.getY()] = true;\n\t\t\t\tq.offer(south);\n\t\t\t}\n\n\t\t}\n\n\t}", "void BFS(int s) {\n // Mark all the vertices as not visited(By default\n // set as false)\n boolean visited[] = new boolean[V];\n\n // Create a queue for BFS\n LinkedList<Integer> queue = new LinkedList<Integer>();\n\n // Mark the current node as visited and enqueue it\n visited [s] = true;\n queue.add(s);\n\n while (queue.size() != 0) {\n // Dequeue a vertex from queue and print it\n s = queue.poll();\n System.out.print(s + \" \");\n\n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it\n // visited and enqueue it\n Iterator<Integer> i = adj [s].listIterator();\n while (i.hasNext()) {\n int n = i.next();\n if (!visited [n]) {\n visited [n] = true;\n queue.add(n);\n }\n }\n }\n }", "void BFS(int s)\n {\n /* List of visited vertices; all false in the beginning) */\n boolean visited[] = new boolean[V];\n\n /* Queue data structure is used for BFS */\n LinkedList<Integer> queue = new LinkedList<>();\n\n /* Mark starting node s as visited and enqueue it */\n visited[s]=true;\n queue.add(s);\n\n /* Until queue is empty, dequeue a single node in queue and look for it's neighboring vertices.\n * If an adjecent node hasn't been visited yet, set it as visited and enqueue this node. s*/\n while (queue.size() != 0)\n {\n /* Dequeue */\n s = queue.poll();\n System.out.print( s + \" \");\n\n /* Get all adjacent vertices */\n Iterator<Integer> i = adj[s].listIterator();\n while (i.hasNext())\n {\n int n = i.next();\n if (!visited[n])\n {\n visited[n] = true;\n queue.add(n);\n }\n }\n }\n }", "private void bfs(Graph G, int s){\n queue.add(s);\n visited[s] = true;\n while (!queue.isEmpty()) {\n int v = queue.removeFirst();\n for (int w : G.adj(v)) {\n if (!visited[w]) {\n queue.add(w);\n visited[w] = true;\n edgeTo[w] = v;\n }\n }\n }\n }", "public static int runBFS(int[][]map, coordinate src1, coordinate src2){\n\t \n boolean visited[][] = new boolean[dim][dim]; //visited boolean 2d array that is the same size as 2d map\n coordinate visit1[][]=new coordinate[dim][dim]; // this is the one used to hold previous location\n coordinate visit2[][]=new coordinate[dim][dim]; // this is the one used to hold previous location\n\t \n\t visit1[0][0]=new coordinate(0,0); //same as BFS\n \n\t visit2[dim-1][dim-1] = new coordinate(dim-1,dim-1);\n\t //marked both the 0,0 and dim-1, dim-1 srcs as visited\n\t \n\t Queue<QueueNode> queue1 = new LinkedList<>(); //queue for src1\n\t Queue<QueueNode> queue2 = new LinkedList<>(); //queue for src2\n\t \n\t QueueNode sn1 = new QueueNode(src1, 0, src1); //src node 1 queue node\n\t QueueNode sn2 = new QueueNode(src2, 0, src2);\n\t \n\t ArrayList<coordinate> pathHold1 = new ArrayList<>(); //for first path\n\t ArrayList<coordinate> pathHold2 = new ArrayList<>(); //for second path \n\t \n\t visited[src1.x][src1.y] = true; //mark the start node as visited inside of the visited boolean 2d array for first src\n\t visited[src2.x][src2.y] = true; //mark the start node as visited inside of the visited boolean 2d array for second src\n\t \n\t System.out.println();\n\t \n\t queue1.add(sn1);\n\t queue2.add(sn2);\n\t //added the start nodes\n\t \n\t QueueNode current1 = null;\n\t QueueNode current2 = null;\n\t //to be used later to hold current node being looked at\n\t coordinate c1 = null;\n\t coordinate c2 = null;\n\t\t//coordinates to be examined\n\t \n\t while(!queue1.isEmpty()&&!queue2.isEmpty()){\n\t //keep iterating so long as queues have items -- but if one becomes empty, check at each iteration\n\t\t\t//to avoid null pointer so we are not dequeuing from empty queue\n int maxFringe = 0;\n\t\t//use this to check max fringe at each time we add to either queue\n if(queue1.size()>maxFringe || queue2.size()>0) {\n \t if(queue1.size()>maxFringe) {\n \t\t maxFringe=queue1.size();\n \t }else {\n \t\t maxFringe=queue2.size();\n \t }\n }\n\t \n\t \tif(!queue1.isEmpty()) { \n\t\t\t\t//while first queue is not empty, pop\n\t \t\t current1 = queue1.peek(); // this is n\n\t c1 = current1.point;\n\t \t\t visited[c1.x][c1.y]=true; //mark this node as visited, will check neighbors later\n\t boolean inFringe = false;\n\t inFringe = compareFringe(c1, queue2); //see if intersect or not\n\t \n\t \n\t // compare current point to the queue2 fringe. If not in fringe\n\t if(inFringe) {\n\t \t //we have found the duplicate \n\t \t System.out.println(\"duplicate\");\n\t \t intersect = c1;\n\t\t System.out.println(\"Intersect is :\"+c1.x+\",\"+c1.y);\n\t\t visit1[c1.x][c1.y]=current1.prev; //set prev node or where we came from\n\t\t \n\t\t System.out.println(\"We have reached our goal!\");\n\t\t \n\t\t if(current2 != null) {\n\t\t\t\t\t //so long as paths have values, add length and return\n\t\t return current1.pathTotal+current2.pathTotal;\n\t\t }else {\n\t\t\t\t\t //else return only one path \n\t\t \t return current1.pathTotal;\n\t\t }\n\t }\n\t\t\t\t//this is getting the neighbors, same as BFS\n\t \n\t int row1 = 0;\n\t int col1 = 0;\n\t \n\t for (int i = 0; i < 4; i++) { \n\t row1= c1.x + rowNum1[i]; \n\t col1 = c1.y + colNum1[i]; \n\t //grab neighbor of current\n\t if (cellValid(row1, col1) && map[row1][col1] == 1 && !visited[row1][col1]){ \n\t \t \n\t // mark cell as visited and enqueue it \n\t visited[row1][col1] = true; //we visited the node so mark it\n\t visit1[row1][col1] = new coordinate(c1.x, c1.y); //set prev as current coord\n\n\t QueueNode Adjcell = new QueueNode(new coordinate(row1, col1), current1.pathTotal + 1, new coordinate(row1-rowNum1[i], col1-colNum1[i])); \n\t queue1.add(Adjcell); //make it a queueNode to add to q1 for first path\n\t }else if(cellValid(row1, col1) && map[row1][col1] == 1 && (visited[row1][col1]&&visit2[row1][col1]!=null)){\n\t \t // System.out.println(\"already visited\"+row1+\",\"+col1); \n\t\t\t\t //check if already visited and valid (not off grid) and = 1 so we can take path -- \n\t\t\t\t //if so, this means we found intersect\n\t\t\t\t //make sure node has been visited in other path to guarantee it is intersect\n\t \t intersect=new coordinate(row1,col1); //set intersect\n\t \t visit1[intersect.x][intersect.y]=new coordinate(c1.x, c1.y); //set where we came from\n\t \t //current1.pathTotal++;\n\t \t printfin(visit1, visit2); //used to print final path -- set map\n \n int nodesExplored1 = 0;\n int nodesExplored2 = 0;\n for(coordinate coor : pathHold1){\n nodesExplored1++;\n }\n for(coordinate coor : pathHold2){\n nodesExplored2++;\n }\n\t\t\t\t \n\t\t\t\t //get number of nodes expanded in each path, add together\n\n int fin = nodesExplored1+nodesExplored2; //this is final explored nodes in each path\n System.out.println(\"Nodes explored: \" + fin);\n \n\t \t return pathsize; //return total pathsize\n\t \t //break;\n\t }\n\t \n\t \n\t } \n\t //once all of the neighbors have been visited, dequeue from queue 1 in path 1\n\t queue1.remove(); \n\t pathHold1.add(c1); //add to explored\n\t \n\t }\n\t \t//now to the same in path2 from (dim-1, dim-1) as src2\n\t \tif(!queue2.isEmpty()) {\n\t \t\t\n\t \t\t current2 = queue2.peek(); // this is n\n\t c2 = current2.point;\n\t \t\t visited[c2.x][c2.y]=true;\n\t boolean inFringe = false;\n\t inFringe = compareFringe(c2, queue1);\n\t \n\t // compare current point to the queue2 fringe. If not in fringe\n\t if(inFringe) {\n\t \t //we have found the duplicate \n\t \t System.out.println(\"duplicate\");\n\t \t intersect = c2;\n\t\t // System.out.println(\"Intersect is :\"+c2.x+\",\"+c2.y);\n\t\t visit2[c2.x][c2.y]=current2.prev;\n\t\t \n\t\t System.out.println(\"We have reached our goal!\");\n\t\t \n\t\t \n\t\t if(current1 != null) {\n\t\t\t return current1.pathTotal+current2.pathTotal;\n\t\t\t }else {\n\t\t\t \t return current2.pathTotal;\n\t\t\t }\n\t }\n\t \n\t \t// get neighbors\n\t int row2 = 0;\n\t int col2 = 0;\n\t \n\t for (int i = 0; i < 4; i++) { \n\t row2= c2.x + rowNum2[i]; \n\t col2 = c2.y + colNum2[i]; \n\t \n\t \n\t if (cellValid(row2, col2) && map[row2][col2] == 1 && !visited[row2][col2]){ \n\t \t \n\t // mark cell as visited and enqueue it \n\t visited[row2][col2] = true; \n\t visit2[row2][col2] = new coordinate(c2.x, c2.y);\n\n\t QueueNode Adjcell2 = new QueueNode(new coordinate(row2, col2), current2.pathTotal + 1, new coordinate(row2-rowNum2[i], col2-colNum2[i])); \n\t queue2.add(Adjcell2);\n\t }else if(cellValid(row2, col2) && map[row2][col2] == 1 && (visited[row2][col2]&&visit1[row2][col2]!=null)){\n\t \t \n\t \t intersect=new coordinate(row2,col2);\n\t \t \n\t \t visit2[intersect.x][intersect.y]=new coordinate(c2.x, c2.y);\n\t \n\t \n\t printfin(visit1, visit2);\n\t int nodesExplored1 = 0;\n int nodesExplored2 = 0;\n for(coordinate coor : pathHold1){\n nodesExplored1++;\n }\n for(coordinate coor : pathHold2){\n nodesExplored2++;\n }\n\n int fin = nodesExplored1+nodesExplored2;\n System.out.println(\"Nodes explored: \" + fin);\n\t \t return pathsize;\n\t \t \n\t }\n\t \n\t } \n\t //once all of the neighbors have been visited, dequeue \n\t queue2.remove(); \n\t pathHold2.add(c2);\n\t \t\t\n\t \t}\n\n\t }\n \n int nodesExplored1 = 0;\n int nodesExplored2 = 0;\n for(coordinate coor : pathHold1){\n nodesExplored1++;\n }\n for(coordinate coor : pathHold2){\n nodesExplored2++;\n }\n\n int fin = nodesExplored1+nodesExplored2;\n System.out.println(\"Nodes explored: \" + fin);\n\t //if here, means no path was found\n\t return -1;\n\t \n\t }", "public void BFS() {\n visitedCells = 1;\n\n // Initialize the vertices\n for (int j = 0; j < maze.getGrid().length; j++) {\n for (int k = 0; k < maze.getGrid().length; k++) {\n Cell cell = maze.getGrid()[j][k];\n cell.setColor(\"WHITE\");\n cell.setDistance(0);\n cell.setParent(null);\n }\n }\n\n Cell sourceCell = maze.getGrid()[0][0];\n Cell neighbor = null;\n Cell currentCell;\n int distance = 0;\n\n // Initialize the source node\n sourceCell.setColor(\"GREY\");\n sourceCell.setDistance(0);\n sourceCell.setParent(null);\n\n queue.add(sourceCell);\n\n // Visits each cell until the queue is empty\n while (!queue.isEmpty()) {\n currentCell = queue.remove();\n\n for (int i = 0; i < currentCell.mazeNeighbors.size(); i++) {\n neighbor = currentCell.mazeNeighbors.get(i);\n\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n visitedCells++;\n break;\n }\n\n // Checks each neighbor and adds it to the queue if its color is white\n if (neighbor.getColor().equalsIgnoreCase(\"WHITE\")) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setColor(\"GREY\");\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n queue.add(neighbor);\n visitedCells++;\n }\n }\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1)\n break;\n\n currentCell.setColor(\"BLACK\");\n }\n }", "private void bfs(Node node, HashSet<Integer> visited) {\n\t\tLinkedList<Node> queue = new LinkedList<Node>();\n\t\tvisited.add(node.id);\n\t\tqueue.add(node);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tNode s = queue.remove();\n\t\t\tSystem.out.println(s.id);\n\t\t\tfor(Node n : s.adj) {\n\t\t\t\tif(!visited.contains(n.id)) {\n\t\t\t\t\tqueue.add(n);\n\t\t\t\t\tvisited.add(n.id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void resolverBFS() {\n\t\tQueue<Integer> cola = new LinkedList<Integer>();\n\t\tint[] vecDistancia = new int[nodos.size()];\n\t\tfor (int i = 0; i < vecDistancia.length; i++) {\n\t\t\tvecDistancia[i] = -1;\n\t\t\trecorrido[i] = 0;\n\t\t}\n\t\tint nodoActual = 0;\n\t\tcola.add(nodoActual);\n\t\tvecDistancia[nodoActual] = 0;\n\t\trecorrido[nodoActual] = -1;\n\t\twhile (!cola.isEmpty()) {\n\t\t\tif (tieneAdyacencia(nodoActual, vecDistancia)) {\n\t\t\t\tfor (int i = 1; i < matrizAdyacencia.length; i++) {\n\t\t\t\t\tif (matrizAdyacencia[nodoActual][i] != 99 && vecDistancia[i] == -1) {\n\t\t\t\t\t\tcola.add(i);\n\t\t\t\t\t\tvecDistancia[i] = vecDistancia[nodoActual] + 1;\n\t\t\t\t\t\trecorrido[i] = nodoActual;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcola.poll();\n\t\t\t\tif (!cola.isEmpty()) {\n\t\t\t\t\tnodoActual = cola.peek();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\tgraph g=new graph(5);\r\n\t\tg.addEdge(0, 1);\r\n\t\tg.addEdge(0, 2);\r\n\t\tg.addEdge(1, 3);\r\n\t\tg.addEdge(3, 4);\r\n\t\tg.addEdge(4, 2);\r\n\t\tg.print();\r\n\t\tg.BFS(2);\r\n\t}", "void BFS(Node root) {\n\t\tQueue<Node> qe=new LinkedList<Node>();\n\t\tqe.add(root);\n\t\twhile (!qe.isEmpty()) {\n\t\t\tNode q = (Node) qe.poll();\n\t\t\tif (q != null) {\n\t\t\t\tSystem.out.print(q.data + \",\");\n\t\t\t\tqe.add(q.left);\n\t\t\t\tqe.add(q.right);\n\t\t\t}\n\t\t}\n\t}", "public static void bfs(int a, int b) {\n\t\t\r\n\t\tQueue<Node> q = new LinkedList<>();\r\n\t\t\r\n\t\tq.add(new Node(a,b));\r\n\t\t\r\n\t\twhile(!q.isEmpty()) {\r\n\t\t\t\r\n\t\t\tNode n = q.remove();\r\n\t\t\t\r\n\t\t\tint x = n.x;\r\n\t\t\tint y = n.y;\r\n\t\t\t\r\n\t\t\tif(x+1 <= N && map[x+1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x+1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x+1,y));\r\n\t\t\t\t\tvisited[x+1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(x-1 > 0 && map[x-1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x-1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x-1,y));\r\n\t\t\t\t\tvisited[x-1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y-1 > 0 && map[x][y-1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y-1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y-1));\r\n\t\t\t\t\tvisited[x][y-1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y+1 <=N && map[x][y+1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y+1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y+1));\r\n\t\t\t\t\tvisited[x][y+1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\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}", "void BFS(String start){\n\t\tint iStart = index(start);\n\t\t\n\t\tFronta f = new Fronta(pocetVrcholu*2);\n\t\t\n\t\tvrchP[iStart].barva = 'S';\n\t\tvrchP[iStart].vzdalenost = 0;\n\t\t\n\t\tf.vloz(start);\n\t\t\n\t\twhile(!f.jePrazdna()){\n\t\t\tString u = f.vyber();\n\t\t\tint indexU = index(u);\n\t\t\tint pom = 0;\n\t\t\t\n\t\t\tfor(int i = 1;i<= vrchP[indexU].pocetSousedu;i++){\n\t\t\t\twhile(matice[indexU][pom] == 0){\n\t\t\t\t\tpom++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tint a = pom++;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(vrchP[a].barva =='B'){\n\t\t\t\t\tvrchP[a].barva = 'S';\n\t\t\t\t\tvrchP[a].vzdalenost = vrchP[indexU].vzdalenost + 1;\n\t\t\t\t\tvrchP[a].predchudce = u;\n\t\t\t\t\tf.vloz(vrchP[a].klic);\n\t\t\t\t}\n\t\t\t}\n\t\t\tvrchP[indexU].barva = 'C';\n\t\t\tpole.add(vrchP[indexU].klic);\n\t\t}\n\t\t\n\t\t\n\t}", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "private void bfs(int[][] board){\n int[][] original = {{1,2,3},{4,5,0}};\n LinkedList<Cell> queue = new LinkedList<>();\n HashMap<Cell,int[][]> states = new HashMap<Cell,int[][]>();\n Set<String> seen = new HashSet<>();\n queue.offer(new Cell(1,2));\n states.put(queue.peekFirst(),original);\n int step = 0;\n while(step <= maxStep){\n int sz = queue.size();\n while(sz-- > 0){\n Cell cur = queue.pollFirst();\n int[][] curBoard = states.get(cur);\n if(seen.contains(this.toStr(curBoard))){\n continue;\n }\n seen.add(this.toStr(curBoard));\n \n if (isSame(curBoard,board)){\n this.res = step;\n return;\n }\n // move around\n for(int i = 0; i < 4; ++i){\n int r = cur.row + dr[i];\n int c = cur.col + dc[i];\n if(r < 0 || c < 0 || r > 1 || c > 2) continue; \n Cell next = new Cell(r, c);\n queue.offer(next);\n int[][] nextboard = this.clone(curBoard);\n nextboard[cur.row][cur.col] = nextboard[r][c];\n nextboard[r][c] = 0;\n states.put(next,nextboard);\n }\n }\n ++step;\n }\n return;\n }", "public String BFS(int g) {\n\t\t//TODO\n\t}", "public void bfs(int s) {\n boolean[] visited = new boolean[v];\n int level = 0;\n parent[s] = 0;\n levels[s] = level;\n Queue<Integer> queue = new LinkedList<>();\n queue.add(s);\n visited[s] = true;\n while (!queue.isEmpty()){\n Integer next = queue.poll();\n System.out.print(next+\", \");\n Iterator<Integer> it = adj[next].listIterator();\n\n while (it.hasNext()){\n Integer i = it.next();\n if(!visited[i]){\n visited[i] = true;\n levels[i] = level;\n parent[i] = next;\n queue.add(i);\n }\n }\n\n level++;\n }\n }", "static boolean bfs(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n queue.add(root);\n while (!queue.isEmpty()) {\n TreeNode node = (TreeNode) queue.remove();\n if (node == null)\n continue;\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n queue.addAll(node.getChildren());\n // dump(queue);\n }\n return false;\n }", "private void BFS(Vertex start, Set<Vertex> visited, Queue<Vertex> queue) {\r\n\t\t// if(visited.contains(start)) return;\r\n\r\n\t\t// Mark the current node as visited and enqueue it\r\n\t\tvisited.add(start);\r\n\t\tqueue.offer(start);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (queue.size() != 0) { // or !queue.isEmpty()\r\n\t\t\t// Dequeue a vertex from queue and print it\r\n\t\t\tcurrentNode = queue.poll();\r\n\t\t\tSystem.out.print(currentNode + \" \");\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!visited.contains(n)) {\r\n\t\t\t\t\tvisited.add(n);\r\n\t\t\t\t\tqueue.offer(n);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * neighbors.forEach(n -> { if (!visited.contains(n)){\r\n\t\t\t * visited.add(n); queue.offer(n); } });\r\n\t\t\t */\r\n\t\t}\r\n\t}", "void BFS(int s, int d) \r\n { \r\n int source = s;\r\n int destination = d;\r\n boolean visited[] = new boolean[V];\r\n int parent[] = new int[V];\r\n \r\n // Create a queue for BFS \r\n LinkedList<Integer> queue = new LinkedList<Integer>(); \r\n \r\n // Mark the current node as visited and enqueue it \r\n \r\n visited[s]=true; \r\n queue.add(s); \r\n System.out.println(\"Search Nodes: \");\r\n while (queue.size() != 0) \r\n { \r\n int index = 0;\r\n \r\n // Dequeue a vertex from queue and print it \r\n \r\n s = queue.poll();\r\n \r\n System.out.print(convert2(s)); \r\n \r\n if(s == destination)\r\n {\r\n break;\r\n }\r\n \r\n System.out.print(\" -> \");\r\n while(index < adj[s].size()) \r\n { \r\n \r\n \r\n int n = adj[s].get(index); \r\n if (!visited[n]) \r\n { \r\n visited[n] = true;\r\n parent[n] = s;\r\n queue.add(n); \r\n }\r\n index = index+ 2;\r\n \r\n \r\n }\r\n \r\n \r\n \r\n }\r\n int check = destination;\r\n int cost = 0, first, second = 0;\r\n String string = \"\" + convert2(check);\r\n while(check!=source)\r\n {\r\n \r\n first = parent[check];\r\n string = convert2(first) + \" -> \" + string;\r\n while(adj[first].get(second) != check)\r\n {\r\n second++;\r\n }\r\n cost = cost + adj[first].get(second +1);\r\n check = first;\r\n second = 0;\r\n \r\n }\r\n \r\n System.out.println(\"\\n\\nPathway: \");\r\n \r\n System.out.println(string);\r\n \r\n \r\n System.out.println(\"\\nTotal cost: \" + cost);\r\n }", "public static void main(String[] args) {\n BreadthFirstSearch g = new BreadthFirstSearch(4);\n\n /* Add edges in graph */\n g.addEdge(0, 0);\n g.addEdge(0,1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n\n System.out.println(\"Traverse graph with BFS...\");\n System.out.println(\"Starting Vertex: 2\");\n\n g.BFS(2);\n }", "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "private static void bfs(int idx) {\n\t\t\n\t\tQueue<node> q =new LinkedList<node>();\n\t\tq.add(new node(idx,0,\"\"));\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode tmp = q.poll();\n\t\t\tif(tmp.idx<0 ||tmp.idx > 200000) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tmp.cnt> min) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tmp.idx == k) {\n\t\t\t\tif(tmp.cnt < min) {\n\t\t\t\t\tmin = tmp.cnt;\n\t\t\t\t\tminnode = tmp;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!visit[tmp.idx] && tmp.idx<=100000) {\n\t\t\t\tvisit[tmp.idx]= true;\n\t\t\t\tq.add(new node(tmp.idx*2, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx-1, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx+1, tmp.cnt+1,tmp.s));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }", "public void bfs(GraphNode source)\n {\n Queue<GraphNode> q = new ArrayDeque<>();\n q.add(source);\n HashMap<GraphNode,Boolean> visit =\n new HashMap<GraphNode,Boolean>();\n visit.put(source,true);\n while (!q.isEmpty())\n {\n GraphNode u = q.poll();\n System.out.println(\"Value of Node \" + u.val);\n System.out.println(\"Address of Node \" + u);\n if (u.neighbours != null)\n {\n List<GraphNode> v = u.neighbours;\n for (GraphNode g : v)\n {\n if (visit.get(g) == null)\n {\n q.add(g);\n visit.put(g,true);\n }\n }\n }\n }\n System.out.println();\n }", "static void bfs(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n output.add(node.val);\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }", "public static void main(String[] args) {\n\n /*\n * Given below directed graph, show the DFS and BFS traversal and print the paths\n * it took throughout the traversal of the graph\n *\n * (D)--(F)\n * /\n * (B)--(E)\n * /\n * (A)\n * \\\n * (C)--(G)\n *\n * Do Breadth First Search and Depth First Search, conclude on the trade offs\n * between the two traversal\n */\n\n // Initialize the graph here and its edges\n Graphs graph = new Graphs();\n graph.addNode('A', new Node('A'));\n graph.addNode('B', new Node('B'));\n graph.addNode('C', new Node('C'));\n graph.addNode('D', new Node('D'));\n graph.addNode('E', new Node('E'));\n graph.addNode('F', new Node('F'));\n graph.addNode('G', new Node('G'));\n\n graph.addEdge('A','B');\n graph.addEdge('B','D');\n graph.addEdge('D','F');\n graph.addEdge('B','E');\n graph.addEdge('A','C');\n graph.addEdge('C','G');\n\n // Initialize the list of paths\n ArrayList<String> traversedNodes;\n // Do a DFS on the graph\n traversedNodes = graph.depthFirstSearch('A','G');\n System.out.println(\"Traversal in DFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n // Do a BFS on the graph\n traversedNodes = graph.breadthFirstSearch('A','G');\n System.out.println(\"\\nTraversal in BFS:\");\n // Print all of the paths\n for(String path : traversedNodes) {\n System.out.println(path);\n }\n\n }", "private Queue<Integer> breadthSearch(int i, int j, Queue<Integer> queue, Queue<Integer> path) {\n while(queue.size() != 0) {\n queue.poll();\n }//while\n return new LinkedList();\n }", "public void greedyBFS(String input)\r\n\t{\r\n\t\tNode root_gbfs = new Node (input);\r\n\t\tNode current = new Node(root_gbfs.getState());\r\n\t\t\r\n\t\tNodeComparator gbfs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, gbfs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.total_cost = 0;\r\n\t\t\r\n\t\twhile(!goal_gbfs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_gbfs.getState());\r\n\t\t\t\t\tnino.setTotalCost(greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_gbfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_gbfs = false;\r\n\t\tSystem.out.println(\"GBFS Solved!!\");\r\n\t\tSolution.performSolution(current, root_gbfs, nodes_popped, pqueue_max_size);\r\n\t}", "public List<GeographicPoint> bfs(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n Consumer<GeographicPoint> temp = (x) -> {};\n return bfs(start, goal, temp);\n\t}", "public void setBFS(java.lang.Boolean BFS) {\n this.BFS = BFS;\n }", "public Vector<K> BFS(){\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tVector v= new Vector();\n\t\tif (root == null)\n\t\t\t{return v;}\n\t\tq.add(root);\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode n = (Node) q.remove();\n\t\t\tv.add(n.key);\n\t\t\tif (n.left != null){\n\t\t\t\tq.add(n.left);\n\t\t\t}\n\t\t\tif (n.right != null){\n\t\t\t\tq.add(n.right);\n\t\t\t}\n\t\t}\n\t\treturn v;\n\t}", "public void traverseBFS(Node root) {\n if (root != null) {\n Queue<Node> queue = new LinkedList<>();\n //Insert the root in the queue\n queue.add(root);\n while (!queue.isEmpty()) {\n // Extract the Node from the queue\n Node node = queue.remove();\n // Print the extracted Node\n System.out.println(node.value);\n // Insert the Node's children into the queue\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }\n }", "public static void bfs(gNode[] G, boolean[] visited, int[] path, int s){\n\t\tQueue<Integer> Q = new LinkedList<Integer>();\n\n\t\tQ.add(s);\n\t\tvisited[s] = true;\n\t\twhile(!Q.isEmpty()){\n\t\t\ts = Q.poll();\n\t\t\tfor(gNode t=G[s]; t!= null; t=t.dest){\n\t\t\t\tSystem.out.println(\"BFS\");\n\t\t\t\tif(!visited[t.item]){\t\t//once an item has been visited, set it equal to true\n\t\t\t\t\tvisited[t.item] = true;\n\t\t\t\t\tpath[t.item] = s;\t\t//change the int value of the path\n\t\t\t\t\tQ.add(t.item);\n\t\t\t\t\tSystem.out.println(t.item);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void BFS(int startingVertex) {\n boolean[] visited = new boolean[numberVertices];\n Queue<Integer> q = new LinkedList<>();\n\n //Add starting vertex\n q.add(startingVertex);\n visited[startingVertex] = true;\n\n //Go through queue adding vertex edges until everything is visited and print out order visited\n while (!q.isEmpty()) {\n int current = q.poll();\n System.out.println(current + \" \");\n for (int e : adj[current]) {\n if (!visited[e]) {\n q.add(e);\n visited[e] = true;\n }\n\n }\n }\n }", "public static Vector<int []> BFS(int[] startPosition,int[] unexploreNode, mapNode[][] nodes){\n\t\t\r\n\t\tVector<int []> shortestPath;\r\n\t\t\r\n\t\t//initial all nodes' status to UN-visited\r\n\t\tfor(int i = 0; i < nodes.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < nodes[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tnodes[i][j].setTotDistance(999999999);//set the initial distance to INF\r\n\t\t\t\tnodes[i][j].gridPosition[0] = i;//save current node x position\r\n\t\t\t\tnodes[i][j].gridPosition[1] = j;//save current node y position\r\n\t\t\t\tnodes[i][j].setNodeVistied(false);//set all nodes are not visited yet\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//create start node and add it into the execution queue\r\n\t\tmapNode tempNode = new mapNode();\r\n\t\ttempNode = nodes[startPosition[0]][startPosition[1]];\r\n\t\tVector<mapNode> tempQueue = new Vector<mapNode>();\r\n\t\ttempQueue.add(tempNode);\r\n\t\t//main loop: check all nodes on the map\r\n\t\twhile(tempQueue.size() != 0)\r\n\t\t{\r\n\t\t\t//create four nearby nodes\r\n\t\t\tmapNode tempTopNode = new mapNode();\r\n\t\t\tmapNode tempBottomNode = new mapNode();\r\n\t\t\tmapNode tempLeftNode = new mapNode();\r\n\t\t\tmapNode tempRightNode = new mapNode();\r\n\t\t\t\t\r\n\t\t\t//update Top node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).topNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = nodes[tempQueue.get(0).topNode.gridPosition[0]][tempQueue.get(0).topNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Bottom node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).bottomNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = nodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Left node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).leftNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = nodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Right node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).rightNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = nodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = null;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//start re-calculate distance of each node\r\n\t\t\t//check the top node and update new distance\r\n\t\t\tif(tempTopNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempTopNode.getNodeVisited() == false && tempTopNode.getOwnElevation() != 999999999 && tempTopNode.getStatus() != Status.EXPLORED )\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\ttempTopNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\tnodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(tempTopNode.gridPosition[0] == unexploreNode[0] && tempTopNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//print out the end node\r\n\t\t\t\t\t//print out the total distance between two points\r\n\t\t\t\t\t//print out the total number node of path\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempTopNode.gridPosition[0], tempTopNode.gridPosition[1]) == false && tempTopNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempTopNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check the bottom node and update new distance\r\n\t\t\tif(tempBottomNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempBottomNode.getNodeVisited() == false && tempBottomNode.getOwnElevation() != 999999999 && tempBottomNode.getStatus() != Status.EXPLORED)\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\ttempBottomNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(tempBottomNode.gridPosition[0] == unexploreNode[0] && tempBottomNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempBottomNode.gridPosition[0]][tempBottomNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempBottomNode.gridPosition[0], tempBottomNode.gridPosition[1]) == false && tempBottomNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempBottomNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check the left node and update new distance\r\n\t\t\tif(tempLeftNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempLeftNode.getNodeVisited() == false && tempLeftNode.getOwnElevation() != 999999999 && tempLeftNode.getStatus() != Status.EXPLORED)\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\ttempLeftNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(tempLeftNode.gridPosition[0] == unexploreNode[0] && tempLeftNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempLeftNode.gridPosition[0]][tempLeftNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempLeftNode.gridPosition[0], tempLeftNode.gridPosition[1]) == false && tempLeftNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempLeftNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//check the right node and update new distance\r\n\t\t\tif(tempRightNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempRightNode.getNodeVisited() == false && tempRightNode.getOwnElevation() != 999999999 && tempRightNode.getStatus() != Status.EXPLORED)\r\n\t\t\t\t{\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check to see if new node existed in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\ttempRightNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(tempRightNode.gridPosition[0] == unexploreNode[0] && tempRightNode.gridPosition[1] == unexploreNode[1]){\r\n\t\t\t\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t\t\t\t//System.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\t\t\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\t\t\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\t\t\t\tshortestPath.add(unexploreNode);\r\n\t\t\t\t\treturn shortestPath;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempRightNode.gridPosition[0]][tempRightNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempRightNode.gridPosition[0], tempRightNode.gridPosition[1]) == false && tempRightNode.getOwnElevation() != 999999999)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempRightNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//set current node to visited node and\r\n\t\t\t//remove current node from execution queue\r\n\t\t\ttempQueue.get(0).setNodeVistied(true);\r\n\t\t\tnodes[tempQueue.get(0).gridPosition[0]][tempQueue.get(0).gridPosition[1]].setNodeVistied(true);\r\n\t\t\ttempQueue.remove(0);\t\r\n\t\t}\r\n\t\t//print out the end node\r\n\t\t//print out the total distance between two points\r\n\t\t//print out the total number node of path\r\n\t\tSystem.out.println(\"End 5 Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\tSystem.out.println(\"Total Distance: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotDistance());\r\n\t\tSystem.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\tshortestPath.add(unexploreNode);\r\n\t\treturn shortestPath;\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint[] a = {2,6,5,8,3,4,7,9,0};\n\t\tBinaryTree b = new BinaryTree();\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tb.add(a[i],i);\n\t\t}\n\t\t//System.out.println(b.search(9));\n\t\t\n\t\t//b.preordertravel(b.root);\n\t\t//b.midordertravel(b.root);\n\t\t//b.postordertravel(b.root);\n\t\t\n\t\t//System.out.println(b.depth());\n\t\tb.BFS();\n\t}", "Bfs_search(int v) \r\n { \r\n V = v; \r\n \r\n adj = new LinkedList[v]; \r\n \r\n for (int i=0; i<v; ++i) \r\n adj[i] = new LinkedList(); \r\n }", "public static Integer[] LexBFS(Graph<Integer,String> g) {\n\t\tGraph<myVertex,String> h = new SparseGraph<myVertex,String>();\r\n\t\th = convertToWeighted(g);\r\n\t\tfinal int N = g.getVertexCount();\r\n\t\t//System.out.print(\"Done. Old graph: \"+N+\" vertices. New graph \" +h.getVertexCount()+\"\\n\");\r\n\t\t\r\n\t\t//System.out.print(\"New graph is:\\n\"+h+\"\\n\");\r\n\t\tmyVertex[] queue = new myVertex[N];\r\n\t\t\r\n\t\tIterator<myVertex> a = h.getVertices().iterator();\r\n\t\tqueue[0] = a.next(); // start of BFS search. Now add neighbours.\r\n\t\tint indexCounter = 1;\r\n\t\tint pivot = 0;\r\n\t\t//System.out.print(\"Initial vertex is: \"+queue[0]+\" \");\r\n\t\tSystem.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\tIterator<myVertex> b = h.getNeighbors(queue[0]).iterator();\r\n\t\twhile (b.hasNext()) {\r\n\t\t\tqueue[indexCounter] = b.next();\r\n\t\t\tqueue[indexCounter].label.add(N);\r\n\t\t\tqueue[indexCounter].setColor(1); // 1 = grey = queued\r\n\t\t\tindexCounter++;\r\n\t\t}\r\n\t\t//System.out.print(\"with \"+(indexCounter-1) +\" neighbours\\n\");\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\tqueue[0].setColor(2); // 2 = black = processed\r\n\t\t// indexCounter counts where the next grey vertex will be enqueued\r\n\t\t// pivot counts where the next grey vertex will be processed and turned black\r\n\r\n\t\tpivot = 1;\r\n\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\twhile (pivot < indexCounter) {\r\n\t\t\t// first, find the highest labelled entry in the rest of the queue\r\n\t\t\t// and move it to the pivot position. This should be improved upon\r\n\t\t\t// by maintaining sorted order upon adding elements to the queue\r\n\t\t\t\r\n\t\t\t//System.out.print(\"choosing next vertex...\\n\");\r\n\t\t\tint max = pivot;\r\n\t\t\tfor (int i = pivot+1; i<indexCounter; i++) {\r\n\t\t\t\t//indexCounter is the next available spot, so indexCounter-1 is the last\r\n\t\t\t\t//entry i.e. it is last INDEX where queue[INDEX] is non-empty.\r\n\t\t\t\tif (queue[i].comesBefore(queue[max])) {\r\n\t\t\t\t\tmax = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t\t// at the end of this for-loop, found the index \"max\" of the element of\r\n\t\t\t// the queue with the lexicographically largest label. Swap it with pivot.\r\n\t\t\tmyVertex temp = queue[pivot];\r\n\t\t\tqueue[pivot] = queue[max];\r\n\t\t\tqueue[max] = temp;\r\n\r\n\t\t\t//System.out.print(\"Chose vertex: \"+temp+\" to visit next\\n\");\r\n\t\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t\t\r\n\t\t\t// process the pivot point => find and mark its neighbours, turn it black.\r\n\t\t\tb = h.getNeighbors(queue[pivot]).iterator();\r\n\t\t\twhile (b.hasNext()) {\r\n\t\t\t\tmyVertex B = b.next();\r\n\t\t\t\tif (B.color == 0) {\r\n\t\t\t\t\t// found a vertex which has not been queued...\r\n\t\t\t\t\tqueue[indexCounter] = B;\r\n\t\t\t\t\tB.label.add(N-pivot);\r\n\t\t\t\t\tB.setColor(1);\r\n\t\t\t\t\tindexCounter++;\r\n\t\t\t\t}\r\n\t\t\t\telse if (B.color == 1) {\r\n\t\t\t\t\t// found a vertex in the queue which has not been processed...\r\n\t\t\t\t\tB.label.add(N-pivot);\r\n\t\t\t\t}\r\n\t\t\t\telse if (B.color != 2) {\r\n\t\t\t\t\tSystem.out.print(\"Critical Error: found a vertex in LexBFS process \");\r\n\t\t\t\t\tSystem.out.print(\"which has been visited but is not grey or black.\\n\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t\t}\r\n\t\t\tqueue[pivot].setColor(2); //done processing current pivot\r\n\t\t\tpivot ++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//LexBFS done; produce integer array to return;\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\tInteger[] LBFS = new Integer[N]; // N assumes the graph is connected...\r\n\t\tfor (int i = 0; i<N; i++) {\r\n\t\t\tLBFS[i] = queue[i].id;\r\n\t\t}\r\n\t\t//System.out.print(\"STATUS REPORT:\\n queue = \"+queue+\"\\n indexCounter=\" + indexCounter+\"\\n pivot=\"+pivot+\"\\n\");\r\n\t\t//System.out.print(\"Returning array: \" + LBFS);\r\n\t\treturn LBFS;\r\n\t}", "public static void bfsTraversal(BSTNode root) {\n\t\t // base condition\n\t\t if (root == null) {\n\t\t return;\n\t\t }\n\t\t // let's have a queue to maintain nodes\n\t\t Queue<BSTNode> q = new LinkedList<>();\n\t\t if (root != null) {\n\t\t q.add(root);\n\t\t }\n\t\t \n\t\t while (!q.isEmpty()) {\n\t\t BSTNode curr = q.poll();\n\t\t if (curr != null) {\n\t\t\t q.add(curr.left);\n\t\t\t q.add(curr.right);\n\t\t\t \n\t\t\t System.out.print(curr.data + \" \");\n\t\t }\n\t\t }\n\t\t \n\t}", "public static String BFS(Graph grafo, Vertice vertice) {\r\n\t\tArrayList<Integer> busca = new ArrayList<Integer>(); // vertice nivel pai em ordem de descoberta\r\n\t\tArrayList<Vertice> aux1 = new ArrayList<Vertice>(); // fila de nos pais a serem visitados\r\n\t\tArrayList<Vertice> aux2 = new ArrayList<Vertice>(); // fila de nos filhos a serem visitdados\r\n\r\n\t\tint nivel = 0;\r\n\r\n\t\taux1.add(vertice);// adiciona a raiz a aux1 para inicio da iteracao\r\n\t\tvertice.setPai(0);// seta o pai da raiz para zero\r\n\r\n\t\twhile (aux1.size() > 0) {\r\n\t\t\tfor (int i = 0; i < aux1.size(); i++) {\r\n\t\t\t\tif (aux1.get(i).statusVertice() == false) {// verifrifica se o no ja nao foi atingido por outra ramificacao.\r\n\t\t\t\t\tbusca.add(aux1.get(i).getValor());\r\n\t\t\t\t\tbusca.add(nivel);\r\n\t\t\t\t\tbusca.add(aux1.get(i).getPai());\r\n\t\t\t\t\tvertice.alteraStatusVertice(true);\r\n\r\n\t\t\t\t\tfor (int j = 0; i < vertice.getArestas().size(); j++) {\r\n\t\t\t\t\t\tproxVertice(vertice, vertice.getArestas().get(j)).setPai(aux1.get(i).getValor());// associa o no pai\r\n\t\t\t\t\t\taux2.add(proxVertice(vertice, vertice.getArestas().get(j)));// adiciona lista dos proximos nos filhos serem percorridos\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\taux1 = aux2; // todos os nos pai ja foram percoridos, filhos se tornam a lista de nos pai\r\n\t\t\t\t\taux2.clear(); // lista de nos filhos e esvaziada para o proximo ciclo de iteracoes\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tnivel++;\r\n\t\t}\r\n\r\n\t\tresetStatusVertex(grafo);\r\n\r\n\t\treturn criaStringDeSaida(grafo, busca);// formata o resutltado da busca para a string esperada\r\n\t}", "public static void main(String[] args) {\n\t\tGraph g = new Graph();\n\t\tg.addEdge(0, 1, 12);\n\t\tg.addEdge(0, 4, 1);\n\t\tg.addEdge(1, 2, 1);\n\t\tg.addEdge(1, 3, 1);\n\t\tg.addEdge(1, 4, 1);\n\t\tg.addEdge(2, 3, 1);\n\t\tg.addEdge(2, 4, 1);\n\t\tfor(Node n : g.getNodes()){\n\t\t\tSystem.out.print(\"Vertex \" + n.id + \" is connected to: \");\n\t\t\tfor(Node n1 :n.adj) {\n\t\t\t\tSystem.out.print(n1.id + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"--------------------BFS------------------\");\n\t\tg.bfs(0);\n\t}", "private int bfs(String source, String destination, Map<String, List<String>> graph) {\n\n class Node {\n String word;\n int distance = 0;\n\n public Node(String word, int distance) {\n this.word = word;\n this.distance = distance;\n }\n }\n\n final Queue<Node> queue = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n queue.offer(new Node(source, 0)); //distance of source to source is 0\n visited.add(source);\n\n while (!queue.isEmpty()) {\n\n final Node node = queue.poll();\n final int distance = node.distance;\n\n //if we reached the destination node\n if (node.word.equals(destination)) {\n return distance + 1;\n }\n\n //try all word which is 1 weight away\n for (String neighbour : graph.getOrDefault(node.word, new ArrayList<>())) {\n if (!visited.contains(neighbour)) {\n visited.add(neighbour);\n queue.offer(new Node(neighbour, distance + 1));\n }\n }\n\n\n }\n return 0;\n }", "public static void main(String[] args) {\n Graph graph = new Graph(16);\n graph.addEdge(0,1);\n graph.addEdge(1,2);\n graph.addEdge(2,3);\n graph.addEdge(3,4);\n graph.addEdge(4,5);\n graph.addEdge(5,6);\n graph.addEdge(6,7);\n graph.addEdge(8,9);\n graph.addEdge(9,10);\n graph.addEdge(10,11);\n graph.addEdge(11,12);\n graph.addEdge(13,14);\n graph.addEdge(14,15);\n graph.addEdge(15,0);\n graph.addEdge(0,8);\n graph.addEdge(1,10);\n graph.addEdge(2,9);\n graph.addEdge(3,11);\n graph.addEdge(3,14);\n graph.addEdge(4,7);\n graph.addEdge(4,13);\n graph.addEdge(5,8);\n graph.addEdge(5,15);\n graph.printGraph();\n System.out.println(\"DFS Traversal\");\n graph.DFS(3);\n System.out.println();\n System.out.println(\"BFS Traversal\");\n graph.BFS(3);\n// System.out.println();\n// for (int i=0; i<graph.vertices; i++)\n// {\n// if(graph.visited[i]!=true)\n// {\n// graph.DFS(i);\n// }\n// }\n\n }", "private boolean bfs(int[] pos, int[][] dis, int[][] grid,int m, int n,int bcnt){\n Queue<int[]> q = new LinkedList<>();\n int curx=0, cury=0, curlevel=0 ;\n int newx = 0, newy=0, newlevel = 0;\n int[] cur;\n boolean availableplace = false;\n boolean[][] vd = new boolean[m][n];\n int res =0;\n vd[pos[0]][pos[1]] = true;\n q.offer(pos);\n while(!q.isEmpty()){\n cur = q.poll();\n curx = cur[0];\n cury = cur[1];\n curlevel = cur[2];\n vd[curx][cury]=true;\n for(int[] mm : M){\n newx = curx+mm[0];\n newy = cury+mm[1];\n if(newx >=0 && newx <m && newy >=0 && newy <n && !vd[newx][newy] &&grid[newx][newy]!=2){\n vd[newx][newy] = true;\n if(grid[newx][newy]==1) res++;\n else if(grid[newx][newy]==0){\n availableplace = true;\n dis[newx][newy]+=curlevel;\n q.offer(new int[]{newx,newy,curlevel+1});\n }\n }\n }\n }\n return res==bcnt-1&&availableplace;\n }", "public void bfs(Node root) {\r\n\t\tQueue<Node> q = new LinkedList<Node>();\r\n\t\tint count = 0;\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tq.add(root);\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tNode n = (Node) q.remove();\r\n\t\t\tSystem.out.print(\" \" + n.data);\r\n\r\n\t\t\tif (n.Lchild != null) {\r\n\r\n\t\t\t\tq.add(n.Lchild);\r\n\t\t\t} else if (n.Rchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\t\t\tif (n.Rchild != null) {\r\n\t\t\t\tq.add(n.Rchild);\r\n\t\t\t} else if (n.Lchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\" + \"the number of gaps :: \" + count);\r\n\t}", "private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }", "int BFS(int source,int sink) \n {\n\tint first=0, last=0; \n int[] queue=new int[V]; \n int[] mark = new int[V]; \n \n for (int i = 0; i < V; i++) {\n mark[i] = 0; // Mark all vertices as not visited \n minFlow[i] = 10000000;\n }\n\n queue[last++] = source; //enqueue source vertex\n mark[source] = 1; //mark source vertex as visited\n //BFS Loop\n while (first != last) { // While queue is not empty.\n int v = queue[first++];\n for (int u = 0; u < V; u++){\n if (mark[u] == 0 && resCap[v][u] > 0) {\n minFlow[u] = Math.min(minFlow[v],resCap[v][u]);\n parent[u] = v;\n mark[u] = 1;\n if (u == sink) //If we reach sink starting from source, then return 1\n return 1;\n queue[last++] = u;\n }\n }\n }\n return 0; //else return 0\n }", "public BFS(Graph graph, Visitor vis)\n {\n this.graph = graph;\n this.filt = graph.getFilter();\n this.colors = new Color[graph.nodeAttrSize()];\n this.bfsNumbers = new int[graph.nodeAttrSize()];\n this.bfsNum = 0;\n this.visitor = vis;\n Arrays.fill(colors, Color.white);\n queue = new LinkedList<Node>();\n }", "public List<GeographicPoint> bfs(GeographicPoint start, \n\t\t\t \t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 3\n\t\t\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tList<GeographicPoint> queue = new ArrayList<GeographicPoint>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> prev = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tprev.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal)) \n\t\t\treturn null;\n\t\t\n\t\tqueue.add(start);\n\t\twhile (!queue.isEmpty() && !visited.contains(goal)) {\n\t\t\t\n\t\t\tGeographicPoint currPoint = queue.get(0);\n\t\t\tMapNode currNode = map.get(currPoint);\n\t\t\tnodeSearched.accept(currPoint);\n\t\t\t\n\t\t\tqueue.remove(0);\n\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\tfor (GeographicPoint n : neighbours.values()) {\n\t\t\t\tif (n.equals(start))\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!visited.contains(n)) {\n\t\t\t\t\tqueue.add(n);\n\t\t\t\t\tvisited.add(n);\n\t\t\t\t\tprev.get(n).add(currPoint);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn backTrack(prev, goal);\n\t}", "public static void main(String[] args) {\n\t\tint[][] m= { {197,130,139,188},{20,24,167,182},{108,78,169,193},{184,65,83,41} };\r\n\t\tint[][] m2= {{149,77,42,136},\r\n\t\t\t\t{145,155,45,0},\r\n\t\t\t\t{136,102,182,87},\r\n\t\t\t\t{178,183,143,60}};\r\n\t\tfor (int[] is : m2) {\r\n\t\t\tfor (int is2 : is) {\r\n\t\t\t\tSystem.out.print(is2+\",\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t\tSearchable matrix=new Matrix(m2,new MatrixState(\"0,0\"),new MatrixState(\"3,3\"));\r\n\t\tSearcher<String> sol=new BFS<>();\r\n\t\tSystem.out.println(sol.search(matrix));\r\n\t}", "public static void BFS(char[][] board, int y, int x){\n \tint[] offsetX = {-1,0,1,0};\n \tint[] offsetY = {0, -1, 0, 1};\n \tQueue<pair> que = new LinkedList<pair>();\n \tque.add(new pair(x,y));\n \twhile(!que.isEmpty()){\n \t\tpair p = que.poll();\n \t \tif (board[p.y][p.x] == 'D'){\n\t continue;\n \t \t}\n \t\t//System.out.println(p.x);\n \t\t//System.out.println(p.y);\n \t \tboard[p.y][p.x] = 'D';\t \t\n \t \tfor(int i = 0; i < offsetX.length; i++){\n \t \t\tif(p.x + offsetX[i] >= 0 &&p.x+offsetX[i] < board[0].length&& p.y + offsetY[i] >= 0 &&p.y+offsetY[i] < board.length\n \t \t\t\t\t&& board[p.y+offsetY[i]][p.x+offsetX[i]] == 'O'){\n \t \t\t\tque.add(new pair(p.x+offsetX[i], p.y+offsetY[i]));\n \t \t\t}\n \t \t}\n \t}\n \n }", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\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\treturn null;\n\t\t}\n\t}", "private void breadthFirst(PathBetweenNodes graph, LinkedList<String> visited) {\r\n\r\n LinkedList<String> nodes = graph.adjacentNodes(visited.getLast());\r\n for (String node : nodes)\r\n {\r\n if (visited.contains(node))\r\n {\r\n continue;\r\n }\r\n if (node.equals(END))\r\n {\r\n \tif (mode1 && mode){\r\n visited.add(node);\r\n printPath(visited); \r\n graph.flag=false;\r\n mode=false;\r\n visited.removeLast();\r\n \t} else if(mode2){\r\n visited.add(node);\r\n printPath(visited); \r\n flag=mode2; \r\n visited.removeLast();\r\n \t} \r\n } \r\n }\r\n\r\n for (String node : nodes) { // implementing a for loop to call each node in the array nodes\r\n if (visited.contains(node) || node.equals(END)) { // if statement to see if node is already visited or it is the end node\r\n continue;\r\n }\r\n flag=true;\r\n visited.addLast(node); //adding the last node to visited array\r\n breadthFirst(graph, visited); // implementing the breath first search\r\n visited.removeLast(); // removing the last node from array visited\r\n }\r\n if (flag == false) {\r\n System.out.println(\"No path Exists between \" + START + \" and \" + END);\r\n flag = true;\r\n }\r\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode();\n root.createBalancedBST();\n root.InOrderDisplay();\n BFS(root);\n }", "public void bft() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public AbstractGraph<V>.Tree bfs(int v);", "public AbstractGraph<V>.Tree bfs(int v);", "public void bfs(DSAGraphVertex vx, DSAStack visited, DSAQueue queue, DSAGraphVertex target)\n\t{\n\n\t\ttry {\n\t\t\tif(vx != null) //base case if it's null end recursion\n\t\t\t{\n\t\t\t\tvisited.push(vx); //push onto visited stack\n\t\t\t\tIterator<DSAGraphVertex> itr = vx.getAdjacent().iterator();\n\n\t\t\t\tdo{\n\t\t\t\t\twhile (itr.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tvx = itr.next();\n\t\t\t\t\t\tif(!vx.getVisited() && !vx.equals(target)) //if not visited and is not target traverse here\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueue.enqueue(vx); //adds to output queue\n\t\t\t\t\t\t\tvx.setVisited(); //sets to visited\n\t\t\t\t\t\t\tbfs(vx, visited, queue, target);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tvisited.pop();\n\n\t\t\t\t} while(!visited.isEmpty());\n\t\t\t}\n\t\t}\n\t\tcatch (IllegalArgumentException e) //catches empty stack exceptions\n\t\t{\n\t\t\t//System.out.println(e.getMessage());\n\t\t}\n\n\n\t}", "public static void main(String[] args) {\r\n \r\n Graph X=new Graph();\r\n \r\n X.GenerateGraph();\r\n \r\n \r\n X.DisplayGraph();\r\n // System.out.println(\"Printing Stack\");\r\n // X.DFS();\r\n \r\n // System.out.println(X.AdjList.get(3).neighbours);\r\n \r\n // ArrayList<Vertex> A=new ArrayList();\r\n \r\n X.BFS();\r\n \r\n X.TraceBack();\r\n }", "public static void main(String[] args) {\n\t\t//new BFS\n\t\tBFS mybfs = new BFS();\n\t\tmybfs.loadFile(\"maze-1\");\n\t\t// need to retrace the path\n\t\tif(mybfs.solve()){\n\t\t\tSystem.out.println(\"The shortest path is:\");\n\t\t\tmybfs.retrace();\n\t\t}\n\t\telse System.out.println(\"There are no paths to the destination.\");\n\t}", "public static void breadthFirstSearch (HashMap<String, Zpair> stores,\n HashSet<Zpair> visited,\n List<Integer> sortedQueue) {\n List<String> q = new ArrayList<String>();\n q.add(\"Q\");\n // k=0\n //int k = 0;\n while(q.size() != 0) {\n //if(k == 21) {\n // System.exit(20);\n // }\n List<StringBuffer> path = new ArrayList<StringBuffer>(); // this is the return string\n List<String> q1 = new ArrayList<String>();\n int size = q.size();\n //System.out.println(k);\n for(int i = 0; i < size; i++) {\n //printList(q);\n path.add(ZMethods.stringPop(q));\n execute(path.get(i), stores, visited, q1, sortedQueue);\n }\n copyStringBuffer(q1,q);\n //k++;\n }\n }", "private void breadthHelper(Graph<VLabel, ELabel>.Vertex v) {\n LinkedList<Graph<VLabel, ELabel>.Vertex> fringe =\n new LinkedList<Graph<VLabel, ELabel>.Vertex>();\n fringe.add(v);\n while (fringe.size() > 0) {\n Graph<VLabel, ELabel>.Vertex curV = fringe.poll();\n try {\n if (!_marked.contains(curV)) {\n _marked.add(curV);\n try {\n visit(curV);\n } catch (RejectException rExc) {\n fringe.add(curV);\n continue;\n }\n for (Graph<VLabel, ELabel>.Edge e: _graph.outEdges(curV)) {\n Graph<VLabel, ELabel>.Vertex child = e.getV(curV);\n if (!_marked.contains(child)) {\n try {\n preVisit(e, curV);\n fringe.add(child);\n } catch (RejectException rExc) {\n int unused = 0;\n }\n }\n }\n fringe.add(curV);\n } else {\n postVisit(curV);\n while (fringe.remove(curV)) {\n continue;\n }\n }\n } catch (StopException sExc) {\n _finalVertex = curV;\n return;\n }\n }\n }", "private static void breadthFirstSearch(int source, ArrayList<ArrayList<Integer>> nodes) {\n\t\tArrayList<ArrayList<Integer>> neighbours = nodes;\n\t\tQueue<Integer> queue= new LinkedList<Integer>();\n\t\t\n\t\tboolean[] visited = new boolean[nodes.size()];\n\t\t\n\t\tqueue.add(source);\n\t\tvisited[source]=true;\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint k =queue.remove();\n\t\t\tSystem.out.println(k);\n\t\t\tfor(int p : nodes.get(k)) {\n\t\t\t\tif(!visited[p]) {\n\t\t\t\t\tqueue.add(p);\n\t\t\t\t\tvisited[p]=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private int bfs(int startNode, Map<Integer, List<Integer>> adjacencyList, int[] distanceToNode) {\n int furthestNode = 1;\n int furthestDistance = Integer.MIN_VALUE;\n\n Queue<Integer> queue = new LinkedList<>();\n Arrays.fill(distanceToNode, -1);\n\n // Put start node in queue\n queue.add(startNode);\n // Set distance of the first node to 0 (0 edge to itself)\n distanceToNode[startNode - 1] = 0;\n\n // While queue is not empty\n while (!queue.isEmpty()) {\n // Pop node\n int curNode = queue.remove();\n\n // Iterate through node's neighbours\n for (int neighbour : adjacencyList.get(curNode)) {\n // If neighbour is not visited (distance not -1)\n if (distanceToNode[neighbour - 1] == -1) {\n // Calculate distance by taking curNode distance and add 1\n // Update distance in array as a way of marking it as visited\n distanceToNode[neighbour - 1] = distanceToNode[curNode - 1] + 1;\n\n // Add to queue to process next\n queue.add(neighbour);\n\n // If the distance is bigger than current furthest one, update\n if (distanceToNode[neighbour - 1] > furthestDistance)\n furthestNode = neighbour;\n }\n }\n }\n return furthestNode;\n }", "static int[] bfs(int n, int m, int[][] edges, int s) {\r\n \r\n HashSet<Integer> aList[] = new HashSet[n];\r\n // Array of the nodes of the tree\r\n\r\n Queue<Integer> bfsQueue = new LinkedList();\r\n\r\n boolean visited[] = new boolean[n];\r\n // check if a node is visited or not\r\n\r\n\r\n int cost[] = new int[n];\r\n // cost to travel from one node to other\r\n\r\n for (int i = 0; i < n; i++) {\r\n // intialising the values\r\n visited[i] = false;\r\n cost[i] = -1;\r\n\r\n aList[i] = new HashSet<Integer>();\r\n // Each element of aList is a Set\r\n // To store the neighbouring nodes of a particular node\r\n }\r\n\r\n for (int i = 0; i < m; i++) {\r\n // let node[i] <--> node[j]\r\n\r\n // adding node[j] to neighbours list of node[i]\r\n aList[edges[i][0] - 1].add(edges[i][1] - 1);\r\n\r\n // adding node[i] to neighbours list of node[j]\r\n aList[edges[i][1] - 1].add(edges[i][0] - 1);\r\n }\r\n\r\n //\r\n s = s - 1;\r\n bfsQueue.add(s);\r\n visited[s] = true;\r\n cost[s] = 0;\r\n //\r\n \r\n \r\n while (!bfsQueue.isEmpty()) {\r\n \r\n int curr = bfsQueue.poll();\r\n // takes the last element of the queue\r\n \r\n for (int neigh : aList[curr]) { // iterating the neighbours of node 'curr'\r\n if (!visited[neigh]) { // checking if node neigh id already visited during the search\r\n visited[neigh ] = true;\r\n bfsQueue.add(neigh); //add the node neigh to bfsqueue\r\n cost[neigh] = cost[curr] + 6; \r\n }\r\n }\r\n }\r\n\r\n int result[] = new int[n-1];\r\n\r\n for (int i=0, j=0; i<n && j<n-1; i++, j++) {\r\n if (i == s){\r\n i++;\r\n }\r\n result[j] = cost[i];\r\n }\r\n \r\n return result;\r\n }", "public java.lang.Boolean getBFS() {\n return BFS;\n }", "@Override\n\tpublic List<Node<E>> bfs(DirectedGraph<E> graph) {\n\t\tList<Node<E>> returnList = new ArrayList<>(); // O(1)\n\t\tHashSet<Node<E>> visitedList = new HashSet<>(); // O(1)\n\t\tHashSet<Node<E>> hashSet = new HashSet<>(); // O(1)\n\n\t\t// If the graph does contains heads, iterate from the head.\n\t\tif(graph.headCount() > 0) { // O(1)\n\t\t\tIterator<Node<E>> heads = graph.heads(); // O(1)\n\t\t\twhile(heads.hasNext()) { // O(n)\n\t\t\t\tNode<E> node = heads.next(); // O(1)\n\n\t\t\t\tif(!visitedList.contains(node)) { // O(1)\n\t\t\t\t\tnode.num = visitedList.size(); // O(1)\n\t\t\t\t\tvisitedList.add(node); // O(1)\n\t\t\t\t\thashSet.add(node); // O(1)\n\t\t\t\t\treturnList.add(node); // O(1)\n\t\t\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Else start from the first node in the graph.\n\t\telse {\n\t\t\thashSet.add(graph.getNodeFor(graph.allItems().get(0))); // O(1)\n\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t}\n\t\treturn returnList;\n\t}", "private String bfs(){\n String ans=\"\";\n //Base Case\n if (mRoot == null)\n return \"\";\n if (mRoot.mIsLeaf)\n return mRoot.toString();\n //create a queue for nodes and a queue for signs\n Queue<BTNode> q = new QueueAsLinkedList<>();\n Queue<Character> s = new QueueAsLinkedList<>();\n BTNode currNode = mRoot;\n q.enqueue(currNode);\n return getBfsOutput(ans, q, s, currNode);\n }", "public List<Integer> BFS(int s, int t, ArrayList<ArrayList<Integer>> adjacencyLists) {\n\t\tint N = adjacencyLists.size();\n boolean visited[] = new boolean[N]; \n int parrent[] = new int[N];\n \n // Create a queue for BFS \n LinkedList<Integer> queue = new LinkedList<Integer>(); \n \n // Mark the current node as visited and enqueue it \n visited[s]=true; \n parrent[s]=-1;\n queue.add(s); \n Boolean hasPath = false;\n \n while (queue.size() != 0) \n { \n // Dequeue a vertex from queue and print it \n int current = queue.poll(); \n \n Iterator<Integer> i = adjacencyLists.get(current).listIterator();\n while (i.hasNext()) \n { \n int n = i.next(); \n if (!visited[n]) \n { \n visited[n] = true; \n parrent[n] = current;\n if (n == t) {\n \thasPath = true;\n \tbreak;\n }\n queue.add(n); \n } \n } \n } \n if (!hasPath) {\n \treturn null;\n }\n \n int trace = t;\n ArrayList<Integer> shortestPath = new ArrayList<Integer>();\n while(parrent[trace] != -1) {\n \tshortestPath.add(trace);\t\n \ttrace = parrent[trace];\n }\n shortestPath.add(s);\n Collections.reverse(shortestPath);\n return shortestPath;\n }", "public static void bfs(Vertex[] vertices, int start, int dest)\r\n\t{\r\n\t\tint[] parent = new int[vertices.length];\r\n\t\tboolean[] seen = new boolean[vertices.length];\r\n\t\tLinkedList<Integer> queue;\r\n\t\t\r\n\t\tqueue = new LinkedList<Integer>();\r\n\t\tseen[start] = true;\r\n\t\tqueue.add(start);\r\n\t\t\r\n\t\tint current = Integer.MIN_VALUE;\r\n\t\twhile(!queue.isEmpty())\r\n\t\t{\r\n\t\t\tcurrent = queue.poll();\r\n\t\t\tArrayList<Integer> neighbors = vertices[current].getNeighbors();\r\n\t\t\tfor(int n = 0; n < neighbors.size(); n++)\r\n\t\t\t{\r\n\t\t\t\tif(!seen[neighbors.get(n)])\r\n\t\t\t\t{\r\n\t\t\t\t\tseen[neighbors.get(n)] = true;\r\n\t\t\t\t\tqueue.add(neighbors.get(n));\r\n\t\t\t\t\tparent[neighbors.get(n)] = current;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// backtrack to update number of paths\r\n\t\tint y = dest;\r\n\t\twhile(y != start)\r\n\t\t{\r\n\t\t\tif(parent[y] != start)\r\n\t\t\t{\r\n\t\t\t\tvertices[parent[y]].incrementNumPaths();\r\n\t\t\t}\r\n\t\t\ty = parent[y];\r\n\t\t}\r\n\t}", "public static int bfs() {\r\n check = new int[N][N]; // check 변수 초기화\r\n q = new LinkedList<Point>();\t\t\t\t\t//bfs 할때 필요한 그 stack. first in first out\r\n q.offer(new Point(shark.x, shark.y));\t\t\t//q.offer == 해당 큐의 맨 뒤에 전달된 요소를 삽입함. list에서 list.add와 같은 말임.\r\n check[shark.x][shark.y] = 1;\r\n\r\n int FishCheck = 0;\t\t\t\t\t\t\t\t//the number of the fish in the sea map\r\n Shark fish = new Shark(N, N);\t\t\t\t\t//new shark initiation\r\n loop: while (!q.isEmpty()) {\r\n int r = q.peek().x;\t\t\t\t\t\t\t//q.peek == 해당 큐의 맨 앞에 있는(제일 먼저 저장된) 요소를 반환함\r\n int c = q.poll().y;\t\t\t\t\t\t\t//q.poll == 해당 큐의 맨 앞에 있는(제일 먼저 저장된) 요소를 반환하고, 해당 요소를 큐에서 제거함. 만약 큐가 비어있으면 null을 반환함.\r\n\r\n for (int d = 0; d < dr.length; d++) {\r\n int nr = r + dr[d];\t\t\t\t\t\t//북(0),남(1),동(2),서(3) 순으로. nr == new row\r\n int nc = c + dc[d];\t\t\t\t\t\t//북(0),남(1),동(2),서(3) 순으로. nc == new column\r\n\r\n // 지나갈 수 있는 곳: 자신보다 큰 물고기가 없는 곳\r\n if (isIn(nr, nc) && check[nr][nc] == 0 && sea[nr][nc] <= shark.lv) {\r\n check[nr][nc] = check[r][c] + 1;\r\n q.offer(new Point(nr, nc));\r\n\r\n // 위치가 더 커질 경우, 더이상 확인할 필요 X\r\n if (FishCheck != 0 && FishCheck < check[nr][nc]) {\r\n break loop;\r\n }\r\n \r\n // 처음 먹을 수 있는 자기보다 물고기가 발견 되었을 때\r\n if (0 < sea[nr][nc] && sea[nr][nc] < shark.lv && FishCheck == 0) {\r\n FishCheck = check[nr][nc];\r\n fish.x = nr;\r\n fish.y = nc;\r\n fish.lv = sea[nr][nc];\r\n }\r\n // 같은 위치에 여러 마리 있을 경우, 가장 위의 가장 왼쪽 물고기부터 먹음\r\n else if (FishCheck == check[nr][nc] && 0 < sea[nr][nc] && sea[nr][nc] < shark.lv) {\r\n if (nr < fish.x) { // 가장 위에 있는 거 우선권\r\n fish.x = nr;\r\n fish.y = nc;\r\n fish.lv = sea[nr][nc];\r\n } else if (nr == fish.x && nc < fish.y) { // 다 가장 위일 경우, 가장 왼쪽 우선권\r\n fish.x = nr;\r\n fish.y = nc;\r\n fish.lv = sea[nr][nc];\r\n }\r\n\r\n }\r\n\r\n }else if(isIn(nr, nc) && check[nr][nc] == 0) {\r\n check[nr][nc] = -1;\r\n }\r\n }\r\n }\r\n // idx 초과 안날 경우\r\n if (fish.x != N && fish.y != N) {\r\n eatFish(fish);\r\n }\r\n \r\n return (FishCheck - 1);\r\n }", "private static void printBFS(int[][] adjacencyMatrix, int sv, boolean[] visited) {\n\t\tint n= adjacencyMatrix.length;\n\t\tvisited[sv]= true;\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\t\tqueue.add(sv);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint frontnode = queue.poll();\n\t\t\tSystem.out.print(frontnode+\" \");\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tif(adjacencyMatrix[frontnode][i] == 1 && !visited[i]) {\n\t\t\t\t\tvisited[i]= true;\n\t\t\t\t\tqueue.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "private static boolean bfs(int u, int v) {\n int i;\n String[] color = new String[Graph.size()];\n // init the arr\n for (i = 0; i < color.length; i++) {\n color[i] = \"White\";\n }\n\n color[u] = \"Grey\";\n\n Queue<Integer> q = new LinkedList<>();\n q.add(u);\n\n while (!q.isEmpty()) {\n int current = q.poll();\n\n // iterating through the current neighbours\n for (i = 0; i < Graph.get(current).size(); i++) {\n int neighbour = Graph.get(current).get(i);\n\n // it means we reach v from another way so the graph is connected even tough we deleted an edge.\n if (neighbour == v) {\n return true;\n }\n\n // checking if the neighbours are white, if so turn them to grey.\n if (color[neighbour].equals(\"White\")) {\n color[neighbour] = \"Grey\";\n }\n\n // entering next neighbour to the queue.\n if (!color[neighbour].equals(\"Black\"))\n q.add(neighbour);\n }\n // after we finished with the current vertex.\n color[current] = \"Black\";\n\n\n }\n return false;\n }", "static int BFS(int mat[][], Point src,\n\t\t\t\t\t\t\tPoint dest)\n{\n\t// check source and destination cell\n\t// of the matrix have value 1\n\tif (mat[src.x][src.y] != 1 ||\n\t\tmat[dest.x][dest.y] != 1)\n\t\treturn -1;\n\n\tboolean [][]visited = new boolean[ROW][COL];\n\t\n\t// Mark the source cell as visited\n\tvisited[src.x][src.y] = true;\n\n\t// Create a queue for BFS\n\tQueue<queueNode> q = new LinkedList<>();\n\t\n\t// Distance of source cell is 0\n\tqueueNode s = new queueNode(src, 0);\n\tq.add(s); // Enqueue source cell\n\n\t// Do a BFS starting from source cell\n\twhile (!q.isEmpty())\n\t{\n\t\tqueueNode curr = q.peek();\n\t\tPoint pt = curr.pt;\n\n\t\t// If we have reached the destination cell,\n\t\t// we are done\n\t\tif (pt.x == dest.x && pt.y == dest.y)\n\t\t\treturn curr.dist;\n\n\t\t// Otherwise dequeue the front cell\n\t\t// in the queue and enqueue\n\t\t// its adjacent cells\n\t\tq.remove();\n\n\t\tfor (int i = 0; i < 4; i++)\n\t\t{\n\t\t\tint row = pt.x + rowNum[i];\n\t\t\tint col = pt.y + colNum[i];\n\t\t\t\n\t\t\t// if adjacent cell is valid, has path\n\t\t\t// and not visited yet, enqueue it.\n\t\t\tif (isValid(row, col) &&\n\t\t\t\t\tmat[row][col] == 1 &&\n\t\t\t\t\t!visited[row][col])\n\t\t\t{\n\t\t\t\t// mark cell as visited and enqueue it\n\t\t\t\tvisited[row][col] = true;\n\t\t\t\tqueueNode Adjcell = new queueNode\n\t\t\t\t\t\t\t(new Point(row, col),\n\t\t\t\t\t\t\t\tcurr.dist + 1 );\n\t\t\t\tq.add(Adjcell);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return -1 if destination cannot be reached\n\treturn -1;\n}", "@Override\r\n\tpublic boolean BFS(E src) {\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tVertex<E> s = vertices.get(src);\r\n\t\t\tlastSrc = s;\r\n\t\t\tvertices.forEach((E e, Vertex<E> u) -> {\r\n\t\t\t\tu.setColor(Color.WHITE);\r\n\t\t\t\tu.setDistance(Integer.MAX_VALUE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t});\r\n\t\t\ts.setColor(Color.GRAY);\r\n\t\t\ts.setDistance(0);\r\n\t\t\t//s.predecessor is already null so skip that step\r\n\t\t\tQueue<Vertex<E>> queue = new Queue<>();\r\n\t\t\tqueue.enqueue(s);\r\n\t\t\ttry {\r\n\t\t\t\twhile(!queue.isEmpty()) {\r\n\t\t\t\t\tVertex<E> u = queue.dequeue();\r\n\t\t\t\t\tArrayList<Edge<E>> adj = adjacencyLists.get(u.getElement());\r\n\t\t\t\t\tfor(Edge<E> ale: adj) {\r\n\t\t\t\t\t\tVertex<E> v = vertices.get(ale.getDst());\r\n\t\t\t\t\t\tif(v.getColor() == Color.WHITE) {\r\n\t\t\t\t\t\t\tv.setColor(Color.GRAY);\r\n\t\t\t\t\t\t\tv.setDistance(u.getDistance()+1);\r\n\t\t\t\t\t\t\tv.setPredecessor(u);\r\n\t\t\t\t\t\t\tqueue.enqueue(v);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tu.setColor(Color.BLACK);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception emptyQueueException) {\r\n\t\t\t\t//-_-\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}" ]
[ "0.7733544", "0.7685774", "0.75929016", "0.75623804", "0.74789804", "0.7391509", "0.7384982", "0.73839617", "0.72606254", "0.7237814", "0.7201928", "0.7200624", "0.71551305", "0.7154427", "0.71487427", "0.714874", "0.71453047", "0.71352035", "0.70960015", "0.709554", "0.70921946", "0.70759", "0.7073615", "0.70690507", "0.705817", "0.6999208", "0.6987656", "0.6980201", "0.69659", "0.69559467", "0.6909626", "0.69025695", "0.6876442", "0.6845472", "0.68144274", "0.68029064", "0.67962223", "0.6790516", "0.6790464", "0.67862755", "0.6764824", "0.67631644", "0.6754146", "0.67523277", "0.67083555", "0.6701534", "0.66800696", "0.66476697", "0.66366816", "0.66174847", "0.661664", "0.66069645", "0.6586139", "0.6537806", "0.65307254", "0.6505789", "0.6498248", "0.649583", "0.6483619", "0.6467969", "0.6457365", "0.645396", "0.64404994", "0.6433306", "0.64331067", "0.642506", "0.6416947", "0.6412015", "0.64117646", "0.6405165", "0.6388796", "0.63885957", "0.63877344", "0.637361", "0.637135", "0.63702244", "0.6358178", "0.63425195", "0.634028", "0.6337268", "0.6336724", "0.6336724", "0.6325613", "0.6318175", "0.63073456", "0.629647", "0.628476", "0.6283015", "0.627801", "0.62738657", "0.6267723", "0.62662876", "0.62576807", "0.6244584", "0.6238695", "0.6233972", "0.6222069", "0.6215465", "0.62088966", "0.6206858" ]
0.6721995
44
Find the maximum depth in the tree without using recursion
private static int maxDepthNoRecursion(TreeNode root) { return Math.max(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMax_depth();", "int maxDepth();", "public int getMaxDepth() {\n return maxDepth;\n }", "public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}", "@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}", "public int maxDepth() {\n\t\treturn maxDepth(root);\n\t}", "int getTemporaryMaxDepth();", "public int maxDepth() {\n return maxDepth;\n }", "public int maxDepth() {\n return maxDepth;\n }", "public int maxDepth(TreeNode root) {\n return helper(0,root);\n }", "public int maxDepth(TreeNode root) {\n helper(root,1);\n return m;\n }", "public Integer getMaxDepth() {\n return this.maxDepth;\n }", "static int maximumDepth( TreeNode node, int depth ) {\n if ( node == null ) {\n // The tree is empty. Return 0.\n return 0;\n }\n else if ( node.left == null && node.right == null) {\n // The node is a leaf, so the maximum depth in this\n // subtree is the depth of this node (the only leaf \n // that it contains).\n return depth;\n }\n else {\n // Get the maximum depths for the two subtrees of this\n // node. Return the larger of the two values, which\n // represents the maximum in the tree overall.\n int leftMax = maximumDepth(node.left, depth + 1);\n int rightMax = maximumDepth(node.right, depth + 1);\n if (leftMax > rightMax)\n return leftMax;\n else\n return rightMax;\n }\n }", "private static int maxDepth(TreeNode node) {\r\n\t\tif (node == null) return 0;\r\n\t\treturn 1 + Math.max(maxDepth(node.left), maxDepth(node.right));\r\n\t}", "public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }", "public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}", "public static int maxDepth(TreeNode root){\n if(root == null) return 0;\n\n return maxDepthRec(root, 0, 1);\n }", "public int maxDepth(Node root) {\n\n int depth = 0;\n\n if (root == null)\n return depth;\n\n Queue<Node> queue = new LinkedList<Node>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n // as soon as we encounter node we have to increase the counter\n depth++;\n \n int levelSize = queue.size();\n\n for (int i = 0; i < levelSize; i++) {\n\n Node currentNode = queue.poll();\n\n for (Node child : currentNode.children) {\n queue.offer(child);\n }\n }\n }\n return depth;\n }", "public int maxDepth(Node root)\r\n\t {\r\n\t if(root == null)\r\n\t return 0;\r\n\t \r\n\t int lh = maxDepth(root.leftChild);\r\n\t\t int rh = maxDepth(root.rightChild);\r\n\t\t \r\n\t return Math.max(lh, rh) + 1; \r\n\t }", "public int maxDepth2(Node root) {\r\n\t\tif(root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tQueue<Node> queue = new LinkedList<Node>();\r\n\t\tqueue.offer(root);\r\n\t\t\r\n\t\tint depth = 0;\r\n\t\t\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tint levelSize = queue.size();\r\n\t\t\t\r\n\t\t\tdepth++;\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<levelSize; i++) {\r\n\t\t\t\tNode current = queue.poll();\r\n\t\t\t\t\r\n\t\t\t\tfor(Node node : current.children) {\r\n\t\t\t\t\tqueue.offer(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn depth;\r\n\t}", "public Integer getMaxNestingLevel(){\n\t\tint i=-1;\n\t\tfor(Loop lp:loops){\n\t\t\tint temp = getNestingLevel(lp);\n\t\t\tif(temp>i)i=temp;\n\t\t}\n\t\treturn i;\n\t}", "public static int maxDepth2(TreeNode root){\n if(root == null) return 0;\n\n return maxDepthRec2(root, 1);\n }", "int depth();", "int depth();", "public int maxDepth(TreeNode root){\r\n if(root==null) return 0;\r\n return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));\r\n }", "public int maxDepth(TreeNode root) {\n if(root == null){\n return 0;\n }\n return 1 +(Math.max(maxDepth(root.left), maxDepth(root.right)));\n }", "public int maxDepth(Node root) {\n\t\tif (root == null)\n\t\t\treturn 0;\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(root);\n\t\tint level = 0;\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tlevel++;\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode temp = q.poll();\n\t\t\t\tfor (int j = 0; j < temp.children.size(); j++) {\n\t\t\t\t\tq.offer(temp.children.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn level;\n\n\t}", "public int depth() { return Math.max(left.depth(), right.depth()) + 1; }", "public int discoverMaximumLayerDepth() {\n\t\tif (this.layers.size() > 0) {\n\t\t\tint layerDepth;\n\t\t\t\n\t\t\tfor (int i = 0; i < this.layers.size(); i++) {\n\t\t\t\tlayerDepth = this.layers.get(i).getDepth();\n\t\t\t\tthis.maximumLayerDepth = layerDepth > this.maximumLayerDepth ? layerDepth : this.maximumLayerDepth;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn this.maximumLayerDepth;\n\t}", "public int depth ();", "public int maxDepth(Node root) {\r\n\t\tif(root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tint depth = 1;\r\n\t\t\r\n\t\tfor(Node node : root.children) {\r\n\t\t\tdepth = Math.max(depth, maxDepth(node)+1);\r\n\t\t}\r\n\t\t\r\n\t\treturn depth;\r\n\t}", "int getDepth();", "public int findMax(){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\tNode temp = root;\n\t\twhile(temp.right != nil){\n\t\t\ttemp = temp.right;\n\t\t}\n\t\treturn temp.id;\n\t}", "public int getDepth();", "private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}", "public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}", "public int maxDepth(TreeNode root) {\n\t\tif (root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tLinkedList<TreeNode> queue = new LinkedList<TreeNode>();\n\t\tqueue.add(root);\n\t\tint cur_child = 1;\n\t\tint nxt_child = 0;\n\t\tint level = 1;\n\t\tTreeNode node = null;\n\t\twhile (!queue.isEmpty()) {\n\t\t\tnode = queue.poll();\n\t\t\tcur_child--;\n\t\t\tif (node.left != null) {\n\t\t\t\tqueue.add(node.left);\n\t\t\t\tnxt_child++;\n\t\t\t}\n\t\t\tif (node.right != null) {\n\t\t\t\tqueue.add(node.right);\n\t\t\t\tnxt_child++;\n\t\t\t}\n\t\t\tif (cur_child == 0) {\n\t\t\t\t// End level\n\t\t\t\tlevel++;\n\t\t\t\tcur_child = nxt_child;\n\t\t\t\tnxt_child = 0;\n\t\t\t}\n\t\t}\n\t\treturn --level;\n\t}", "private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }", "int depth(Node root) {\n\t\tif (root == null) return 0;\n\t\treturn Math.max(depth(root.left), depth(root.right)) + 1 ;\n\t}", "public int getHeight(){\n\t\tint h=maxDepth(root);\n\t\treturn h;\n\t}", "int getRecursionDepth();", "public int maxDepthOfTree(Node root) {\n if (root == null) {\n return 0;\n }\n return Math.max(maxDepthOfTree(root.left), maxDepthOfTree(root.right)) + 1;\n }", "private int getDepthRecursive(Node currNode) {\n int max = 0;\n int val;\n\n // Return 0 if this Node is null or if it is invalid.\n if (currNode == null || currNode.key < 0) return 0;\n\n // Finds the maximum depth of this Node's subtrees.\n for (int i = 0; i < getNumChildren(); ++i) {\n val = getDepthRecursive(currNode.children[i]);\n max = Math.max(max, val);\n\n }\n\n // Returns the maximum depth of this Node's subtree plus one.\n return max + 1;\n\n }", "private int getTreeDepth(Node root, int depth) {\r\n\t\tif (root == null) {\r\n\t\t\treturn depth - 1;\r\n\t\t}\r\n\t\tif (depth > maxDepth) {\r\n\t\t\tmaxDepth = depth;\r\n\t\t}\r\n\t\tint lChildDepth = getTreeDepth(root.getlChild(), depth + 1);\r\n\t\tint rChildDepth = getTreeDepth(root.getrChild(), depth + 1);\r\n\r\n\t\treturn lChildDepth > rChildDepth ? lChildDepth : rChildDepth;\r\n\t}", "public int minDepth(TreeNode root) {\n /*\n 主页君认为,在这应该是属于未定义行为,这里我们定义为MAX会比较好,因为\n null就是取不到任何节点,没有path,不应该将最小值定为0.\n */\n if (root == null) {\n return 0;\n }\n \n int level = 0;\n \n Queue<TreeNode> q = new LinkedList<TreeNode>();\n q.offer(root);\n \n while (!q.isEmpty()) {\n int size = q.size();\n level++;\n for (int i = 0; i < size; i++) {\n TreeNode cur = q.poll();\n \n if (cur.left == null && cur.right == null) {\n return level;\n }\n \n if (cur.left != null) {\n q.offer(cur.left);\n }\n \n if (cur.right != null) {\n q.offer(cur.right);\n }\n }\n }\n \n return 0;\n }", "public Node findMax(){\n if(root!=null){ // มี node ใน tree\n return findMax(root); // Call the recursive version\n }\n else{\n return null;\n }\n }", "public int maxDepth5(TreeNode root) {\n int res = 0;\n if(root == null) return res;\n\n return goDeep3(root);\n }", "public int maxDepth6(TreeNode root) {\n if(root == null) return 0; \n \n return 1 + Math.max(maxDepth(root.left), maxDepth(root.right)); \n }", "public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}", "private int negaMax(int depth, String indent) {\r\n\r\n\t\tif (depth <= 0\r\n\t\t\t|| this.chessGame.getGameState() == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t|| this.chessGame.getGameState() == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\t\r\n\t\t\treturn evaluateState();\r\n\t\t}\r\n\t\t\r\n\t\tList<Move> moves = generateMoves(false);\r\n\t\tint currentMax = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tfor(Move currentMove : moves){\r\n\t\t\t\r\n\t\t\texecuteMove(currentMove);\r\n\t\t\t//ChessConsole.printCurrentGameState(this.chessGame);\r\n\t\t\tint score = -1 * negaMax(depth - 1, indent+\" \");\r\n\t\t\t//System.out.println(indent+\"handling move: \"+currentMove+\" : \"+score);\r\n\t\t\tundoMove(currentMove);\r\n\t\t\t\r\n\t\t\tif( score > currentMax){\r\n\t\t\t\tcurrentMax = score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(indent+\"max: \"+currentMax);\r\n\t\treturn currentMax;\r\n\t}", "public static int maxDepth(TreeNode root) {\n if (root == null) {\n return 0;\n }\n\n int lDepth = maxDepth(root.left);\n int rDepth = maxDepth(root.right);\n\n return 1 + (lDepth > rDepth ? lDepth : rDepth);\n }", "public void setMaxDepth (int maxDepth) {\n \n }", "public int maxDepht(Node node){\n //if a tree is empty then return 0\n if (node == null)\n return 0;\n\n else {\n //compute the depth of each subtree\n int leftDepth = maxDepht(node.left);\n int rightDepth = maxDepht(node.right);\n\n if (leftDepth > rightDepth)\n return leftDepth+1;\n else\n return rightDepth+1;\n }\n }", "public interface MaximumDepthOfBinaryTree {\n int maxDepth(TreeNode root);\n}", "public static int maxDepth(TreeNode root) {\n if (root == null) {\n return 0;\n }\n return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));\n }", "public static int minDepth(TreeNode root) {\n if(root == null) return 0;\n Queue<TreeNode> queue = new ArrayDeque<>();\n int level = 1;\n queue.offer(root);\n while(!queue.isEmpty()) {\n int n = queue.size();\n while(n-- > 0) {\n TreeNode node = queue.poll();\n if(node.left == null && node.right == null)\n return level;\n\n if(node.left != null)\n queue.offer(node.left);\n if(node.right != null)\n queue.offer(node.right);\n }\n level++;\n }\n return level;\n }", "public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}", "private static int minDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.min(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "public int getDepth() {\n return getDepthRecursive(root);\n\n }", "int getMaxLevel();", "int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}", "public int findMaxValueWithoutRecursion() {\n\t\tQueue<XTreeNode<Integer>> collectedNodes = new LinkedList<>();\n\t\tcollectedNodes.add( (XTreeNode<Integer>) this );\n\n\t\tint maxValue = Integer.MIN_VALUE;\n\t\twhile( !collectedNodes.isEmpty() ) {\n\t\t\tXTreeNode<Integer> node = collectedNodes.poll();\n\t\t\tmaxValue = node.getData() > maxValue ? node.getData() : maxValue;\n\n\t\t\tif( node.getLeftChild() != null ) {\n\t\t\t\tcollectedNodes.add( node.getLeftChild() );\n\t\t\t}\n\t\t\tif( node.getRightChild() != null ) {\n\t\t\t\tcollectedNodes.add( node.getRightChild() );\n\t\t\t}\n\t\t}\n\t\treturn maxValue;\n\t}", "public int treeHigh(TreeNode node) \n { \n if (node == null) \n return 0; \n else \n { \n /* compute the depth of each subtree */\n int lDepth = treeHigh(node.left); \n int rDepth = treeHigh(node.right); \n \n /* use the larger one */\n if (lDepth > rDepth) \n return (lDepth + 1); \n else \n return (rDepth + 1); \n } \n }", "boolean isMaxdepthSpecified();", "public int treeDepth(TreeNode root){\n if(root == null){\n return 0;\n }\n return 1 + Math.max(treeDepth(root.left), treeDepth(root.right));\n }", "public double getDepth();", "private int depth(Node current, int level)\r\n\t{\r\n\t\t// Current Node has two Children\r\n\t\tif(current.hasTwo())\r\n\t\t{\r\n\t\t\t// Traverse left subtree and obtain its level\r\n\t\t\tint tempLeft = (depth(current.getLeftChild(), level + 1));\r\n\t\t\t// Traverse right subtree and obtain its level\r\n\t\t\tint tempRight = (depth(current.getRightChild(), level + 1));\r\n\t\t\t// Return the maximum of the levels that were traversed by the left and right subtrees\r\n\t\t\treturn Math.max(tempLeft, tempRight);\r\n\t\t}\r\n\t\t// Current Node has no children (aka is a leaf)\r\n\t\telse if(current.isLeaf())\r\n\t\t{\r\n\t\t\treturn level;\r\n\t\t}\r\n\t\t// Current Node only has right child\r\n\t\telse if(current.getLeftChild() == null)\r\n\t\t{\r\n\t\t\treturn depth(current.getRightChild(), level + 1);\r\n\t\t}\r\n\t\t// Current Node only has left child\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn depth(current.getLeftChild(), level + 1);\r\n\t\t}\r\n\t}", "private int getMax(TreeNode root) {\n\t\twhile(root.right!=null)\n\t\t\troot=root.right;\n\t\treturn root.val;\n\t}", "private int getDepthRaw(TreeNode root){\n if (root == null) {\n return 0;\n }\n\n int left = getDepthRaw(root.left);\n int right = getDepthRaw(root.right);\n if (left == -1 || right == -1) {\n return -1;\n }else{\n if (Math.abs(left - right) > 1) {\n return -1;\n }else{\n return Math.max(left, right) + 1;\n }\n }\n }", "@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}", "abstract int getMaxLevel();", "int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }", "public static int getDepth() {\n return depth;\n }", "public int findMax(TreeNode root){\r\n TreeNode current;\r\n if( isLeaf(root )){\r\n return root.getValue();\r\n }else {\r\n current = root;\r\n current = current.right;\r\n if( isLeaf(current)){\r\n return current.value;\r\n }\r\n if( current.left != null && current.right == null){\r\n return current.left.getValue();\r\n }\r\n }\r\n return current.getValue();\r\n }", "public int depth() {\n\t\treturn depthHelp(root);\r\n\t}", "public double getMaxDepthForRuptureInRegionBounds() {\n if(maxDepth == 0)\n getSiteRegionBounds();\n return maxDepth;\n }", "@Override\n public TreeNode<E> tree_maximum() {\n return tree_maximum(root);\n }", "public int findMaxValue(Node root) {\n if(root == null) {\n return Integer.MIN_VALUE;\n }\n int output = (int)root.getData();\n int leftOutput = findMaxValue(root.getLeftChildNode());\n int rightOutput = findMaxValue(root.getRightChildNode());\n if(leftOutput > output){\n output = leftOutput;\n }\n if(rightOutput > output) {\n output = rightOutput;\n }\n return output;\n\n }", "public static Node findMax(Node node){\n if(node.right!=null){ // recursive right-subtree จนตกเกือบ null แล้ว return node นั้น\n return findMax(node.right);\n }\n else{\n return node;}\n }", "public static int maxDepth(Node root, int depth)\n\t{\n\t\t//Root is null, don't compare depth\n\t\tif(root == null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t//Root is leaf, compare it's depth\n\t\tif(isLeaf(root))\n\t\t{\n\t\t\treturn depth;\n\t\t}\n\t\t\n\t\t//Root is not null or leaf, compare depth of left and right subtrees\n\t\treturn Math.max(maxDepth(root.leftChild, depth + 1), \n\t\t\t\tmaxDepth(root.rightChild, depth + 1));\n\t}", "public int getMaxLevel() {\r\n int maxLev = 0;\r\n for (final Category name : map.keySet()) {\r\n if (name.categories.size() > maxLev) {\r\n maxLev = name.categories.size();\r\n }\r\n }\r\n return maxLev;\r\n }", "public int getDepth()\n {\n return depth; \n }", "public int getMaxLevel()\r\n\t{\treturn this.maxLevel;\t}", "public int getDepth() {\r\n return depth;\r\n }", "public int getDepth(){\r\n return this.depth;\r\n }", "public static int depth(Node root, Node node){\n\n if(node!=root){ // node มีตัวตน\n return 1 + depth (root,node.parent) ; // depth = length(path{node->root})\n\n }\n else {\n return 0;\n }\n\n }", "private void maxDepthHelper(TreeNode node, int curDepth) {\n if (node == null) {\n return;\n }\n\n if (curDepth > depth) {\n depth = curDepth;\n }\n\n maxDepthHelper(node.left, curDepth + 1);\n maxDepthHelper(node.right, curDepth + 1);\n }", "public TreeNode largest() {\n\t\tif(root == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tTreeNode current = root; \n\t\t\twhile(current.getRightChild() != null) {\n\t\t\t\tcurrent = current.getRightChild();\n\t\t\t}\n\t\t\treturn current;\n\t\t}\n\t}", "public static int max(treenode root)\n {\n treenode curr=root;\n while(curr.right!=null)\n {\n curr=curr.right;\n }\n return curr.val;\n }", "public abstract int getMaxChildren();", "public int depth() {\r\n\t\treturn this.depth;\r\n\t}", "public int getDepth() {\n return depth;\n }", "public int getDepth(){\n\t\treturn _depth;\n\t}", "public int getMaxHierarchyDepth(Das2TypeI type) {\n\tint depth = Das2FeaturesCapabilityI.UNKNOWN;\n if (type instanceof UcscType) {\n\t UcscType utype = (UcscType)type;\n\t TrackType track_type = utype.getTrackType();\n\n\t if (track_type == TrackType.GENEPRED || \n\t\ttrack_type == TrackType.PSL || \n\t\ttrack_type == TrackType.BED12 || \n\t\ttrack_type == TrackType.BED15) {\n\t\tdepth = 2;\n\t }\n\t else if (track_type == TrackType.BED3 ||\n\t\t track_type == TrackType.BED4 ||\n\t\t track_type == TrackType.BED5 ||\n\t\t track_type == TrackType.BED6 ||\n\t\t track_type == TrackType.BED8 ||\n\t\t track_type == TrackType.BED9 ) {\n\t\tdepth = 1;\n\t }\n\t}\n\treturn depth;\n }", "void setTemporaryMaxDepth(int depth);", "public int longestZigZag(TreeNode root) {\n // left -> 0, right -> 1\n dfs(root, 0, 0);\n dfs(root, 1, 0);\n return max;\n }", "float getDepth();", "float getDepth();", "public int getDepth(){\n\t\treturn depth;\n\t}", "public E findMax() {\n Node<E> temp = root;\n // while loop will run until there is no longer a node that has a right child.\n // temp is then assigned to the next node in the right child and will return\n // the node with the maximum value in the BST. The node that does not have a right\n // child will be the maximum value.\n while(temp.right != null){\n temp = temp.right;\n }\n return temp.getInfo();\n }" ]
[ "0.8748095", "0.8728726", "0.80001956", "0.7891501", "0.7834018", "0.7806201", "0.78034973", "0.7766343", "0.7763043", "0.7758932", "0.77551574", "0.7727429", "0.7583594", "0.74933964", "0.74316984", "0.74129033", "0.74127483", "0.7381585", "0.7353114", "0.7344785", "0.7330365", "0.73136324", "0.7294772", "0.7294772", "0.72730863", "0.727136", "0.72290087", "0.7207358", "0.720374", "0.7199761", "0.7168519", "0.71376324", "0.7131294", "0.71006614", "0.7100465", "0.7087798", "0.7086508", "0.70851743", "0.7054988", "0.7025139", "0.70163476", "0.70072484", "0.7004906", "0.6998892", "0.6996152", "0.69885445", "0.697521", "0.69718045", "0.6942456", "0.693266", "0.69050664", "0.6896135", "0.68916327", "0.68760306", "0.68532014", "0.685054", "0.684769", "0.6832868", "0.6831648", "0.68300366", "0.6822914", "0.6809839", "0.68089765", "0.67983603", "0.67848253", "0.6780316", "0.67470276", "0.6738462", "0.67320895", "0.67303425", "0.67299354", "0.6728546", "0.66837406", "0.66511977", "0.66445655", "0.65991724", "0.65953314", "0.658372", "0.6577839", "0.657579", "0.6548235", "0.6506566", "0.6504109", "0.6497617", "0.6496827", "0.64885855", "0.64823246", "0.647682", "0.6460471", "0.64518297", "0.6450994", "0.64494884", "0.6440365", "0.643481", "0.6431839", "0.6424435", "0.64215964", "0.64215964", "0.6418453", "0.6408964" ]
0.77134305
12
Find the minimum depth in the tree without using recursion
private static int minDepthNoRecursion(TreeNode root) { return Math.min(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinDepth() {\n return minDepth;\n }", "public int minDepth(BinaryTree root) {\n int i = 1;\n if (root == null) {\n return 0;\n }\n subTreeDepth(root, i);\n System.out.println(\"Minimum depth of the tree : \" + depth);\n return depth;\n }", "public static int minDepth(TreeNode root) {\n if(root == null) return 0;\n Queue<TreeNode> queue = new ArrayDeque<>();\n int level = 1;\n queue.offer(root);\n while(!queue.isEmpty()) {\n int n = queue.size();\n while(n-- > 0) {\n TreeNode node = queue.poll();\n if(node.left == null && node.right == null)\n return level;\n\n if(node.left != null)\n queue.offer(node.left);\n if(node.right != null)\n queue.offer(node.right);\n }\n level++;\n }\n return level;\n }", "private static int minDepth(TreeNode node) {\r\n\t\tif (node == null) return 0;\r\n\t\treturn 1 + Math.min(minDepth(node.left), minDepth(node.right));\r\n\t}", "public int minDepth(TreeNode root) {\n /*\n 主页君认为,在这应该是属于未定义行为,这里我们定义为MAX会比较好,因为\n null就是取不到任何节点,没有path,不应该将最小值定为0.\n */\n if (root == null) {\n return 0;\n }\n \n int level = 0;\n \n Queue<TreeNode> q = new LinkedList<TreeNode>();\n q.offer(root);\n \n while (!q.isEmpty()) {\n int size = q.size();\n level++;\n for (int i = 0; i < size; i++) {\n TreeNode cur = q.poll();\n \n if (cur.left == null && cur.right == null) {\n return level;\n }\n \n if (cur.left != null) {\n q.offer(cur.left);\n }\n \n if (cur.right != null) {\n q.offer(cur.right);\n }\n }\n }\n \n return 0;\n }", "public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}", "public int minDepth(TreeNode root) {\n if (root == null) return 0;\n return helper(root);\n }", "public int minDepth(Node root) \r\n\t {\r\n\t\t if(root == null)\r\n\t return 0;\r\n\t\t \r\n\t int lh = minDepth(root.leftChild);\r\n\t int rh = minDepth(root.rightChild);\r\n\t \r\n\t if(root.leftChild != null && root.rightChild != null)\r\n\t return 1 + Math.min(lh,rh);\r\n\t \r\n\t return 1 + Math.max(lh,rh); \r\n\t }", "public int minDepth(TreeNode root) {\n if(root == null) { // corner case and base case 1 for node with only one child\n return 0;\n }\n if(root.left == null && root.right == null) { // base case for leaf node\n return 1;\n }\n \n \n // At current level\n int left = minDepth(root.left);\n int right = minDepth(root.right);\n \n if(left == 0) {\n return 1 + right; // The depth from leaf\n } else if(right == 0) {\n return 1 + left;\n } else {\n return 1 + Math.min(left, right);\n }\n }", "public static <E extends Comparable> int minDeep(TreeNode<E> root) {\r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int minDeep = 1;\r\n \r\n queue.add(root);\r\n \r\n while(true){\r\n for(int deep = 0; deep < Math.pow(2, minDeep); deep++) {\r\n TreeNode<E> node = queue.poll();\r\n if(node.getLeft() == null || node.getRight() == null) return minDeep;\r\n queue.add(node.getLeft());\r\n queue.add(node.getRight());\r\n }\r\n \r\n minDeep++;\r\n }\r\n }", "int getMax_depth();", "public int minDepth(TreeNode root) {\n if (root == null) return 0;\n int ldepth = minDepth(root.left);\n int rdepth = minDepth(root.right);\n if (ldepth == 0 && rdepth == 0) {\n return 1;\n }\n if (ldepth == 0) {\n ldepth = Integer.MAX_VALUE;\n }\n if (rdepth == 0) {\n rdepth = Integer.MAX_VALUE;\n }\n return Math.min(ldepth, rdepth) + 1;\n }", "public int minDepth(TreeNode root) {\r\n\t\tif(root==null) return 0;\r\n\t\tint left = minDepth(root.left);\r\n\t\tint right = minDepth(root.right);\r\n\t\treturn (left == 0 || right == 0) ? left+right+1:Math.min(left, right) + 1;\r\n\r\n\t}", "int maxDepth();", "public int minDepth (TreeNode root) {\n if (root == null)\n return 0;\n return Math.min (minDepth (root.left), minDepth (root.right)) + 1;\n }", "int depth();", "int depth();", "public int depth ();", "public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}", "int getDepth();", "public int getDepth();", "public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}", "public int depth() { return Math.max(left.depth(), right.depth()) + 1; }", "public int findMin(){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\tNode temp = root;\n\t\twhile(temp.left != nil){\n\t\t\ttemp=temp.left;\n\t\t}\n\t\treturn temp.id;\n\t}", "public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }", "private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}", "int getRecursionDepth();", "private static int findMinimumSumLevelInGivenTree(Node tree){\n Map<Integer, Integer> sumAtEachLevelMap = new HashMap<Integer, Integer>();\n \n //puts all level sums in map\n findLevelSums(tree, sumAtEachLevelMap, 1);\n \n // gets the level with least sum\n return getMinimumSumLevel(sumAtEachLevelMap);\n }", "int getTemporaryMaxDepth();", "private static int maxDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.max(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "public double getDepth();", "int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }", "int depth(Node root) {\n\t\tif (root == null) return 0;\n\t\treturn Math.max(depth(root.left), depth(root.right)) + 1 ;\n\t}", "int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}", "private Node minNode(Node node) {\n Node updt = node;\n // Finding the leftmost leaf\n while (updt.left != null) {\n updt = updt.left;\n }\n return updt;\n }", "public TreeNode smallest() {\n\t\tif(root == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tTreeNode current = root; \n\t\t\twhile(current.getLeftChild() != null) {\n\t\t\t\tcurrent = current.getLeftChild();\n\t\t\t}\n\t\t\treturn current;\n\t\t}\n\t}", "Node minValueNode(Node node) \n { \n Node current = node; \n \n /* loop down to find the leftmost leaf */\n while (current.left != null) \n current = current.left; \n \n return current; \n }", "public static Node findMin(Node node){\n if(node.left!=null){\n return findMin(node.left); // recursive left-subtree จนตกเกือบ null แล้ว return node นั้น\n }\n else{\n return node;}\n }", "@Override\n public TreeNode<E> tree_minimum() {\n return tree_minimum(root);\n }", "public static int min(treenode root)\n {\n treenode curr=root;\n while(curr.left!=null)\n curr=curr.left;\n return curr.val;\n }", "public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}", "static int downToZero(Node root) {\n /*\n * Write your code here.\n */\n Queue<Node> queue = new PriorityQueue<>();\n queue.add(root);\n int min = 100001;\n while (!queue.isEmpty()){\n Node current = queue.poll();\n if(current.value <= 4){\n if (current.value == 4){\n min = current.depth + 3;\n return min;\n }\n min = current.depth+current.value;\n return min;\n }\n Node toAdd1 = new Node(current.value-1, current.depth+1);\n queue.add(toAdd1);\n for(int i = 2; i<=Math.sqrt(current.value); i++){\n if(current.value%i==0){\n Node toAdd = new Node(current.value/i, current.depth+1);\n queue.add(toAdd);\n }\n }\n }\n return min;\n }", "private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }", "@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}", "private static Node min(Node root) {\n\t\tif(root.left == null) {\n\t\t\treturn root;\n\t\t}\n\t\treturn min(root.left);\n\t}", "public int getDepth() {\n return getDepthRecursive(root);\n\n }", "public int minDiffInBST(TreeNode root) {\n PriorityQueue<Integer> tree = new PriorityQueue<>();\n dfs(root, tree);\n int min = Integer.MAX_VALUE;\n int pr = tree.poll();\n while (!tree.isEmpty()) {\n min = Math.min(min, Math.abs(pr - tree.peek()));\n pr = tree.poll();\n }\n return min;\n }", "private int getDepthRaw(TreeNode root){\n if (root == null) {\n return 0;\n }\n\n int left = getDepthRaw(root.left);\n int right = getDepthRaw(root.right);\n if (left == -1 || right == -1) {\n return -1;\n }else{\n if (Math.abs(left - right) > 1) {\n return -1;\n }else{\n return Math.max(left, right) + 1;\n }\n }\n }", "public Website treeMinimum(Website site) {\r\n\t\tWebsite localSite = site; // Local pointer to given Site\r\n\t\twhile (localSite.getLeft() != null&&localSite.getLeft().getPageRank()!=0) { // Traversing Loop, stops at null node\r\n\t\t\tlocalSite = localSite.getLeft(); // incrementation Condition\r\n\t\t}\r\n\t\treturn localSite; // Returns minimum\r\n\t}", "public void setMinDepth(int minDepth) {\n this.minDepth = minDepth;\n }", "public int minTreeRank() {\r\n\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int getDepth(){\r\n return this.depth;\r\n }", "public static int getDepth() {\n return depth;\n }", "public static int depth(Node root, Node node){\n\n if(node!=root){ // node มีตัวตน\n return 1 + depth (root,node.parent) ; // depth = length(path{node->root})\n\n }\n else {\n return 0;\n }\n\n }", "public static int minimum(Node root){\r\n int mn = Integer.MAX_VALUE;\r\n for(Node child : root.children){\r\n mn = Math.min(mn, minimum(child));\r\n }\r\n return Math.min(mn, root.data);\r\n }", "public int getDepth()\n {\n return depth; \n }", "private static int maxDepth(TreeNode node) {\r\n\t\tif (node == null) return 0;\r\n\t\treturn 1 + Math.max(maxDepth(node.left), maxDepth(node.right));\r\n\t}", "public Integer getMaxNestingLevel(){\n\t\tint i=-1;\n\t\tfor(Loop lp:loops){\n\t\t\tint temp = getNestingLevel(lp);\n\t\t\tif(temp>i)i=temp;\n\t\t}\n\t\treturn i;\n\t}", "private int getTreeDepth(Node root, int depth) {\r\n\t\tif (root == null) {\r\n\t\t\treturn depth - 1;\r\n\t\t}\r\n\t\tif (depth > maxDepth) {\r\n\t\t\tmaxDepth = depth;\r\n\t\t}\r\n\t\tint lChildDepth = getTreeDepth(root.getlChild(), depth + 1);\r\n\t\tint rChildDepth = getTreeDepth(root.getrChild(), depth + 1);\r\n\r\n\t\treturn lChildDepth > rChildDepth ? lChildDepth : rChildDepth;\r\n\t}", "public int getNodeDepth() {\n int depth = 0;\n TreeNode tn = this;\n \n while(tn.getFather() != null) {\n tn = tn.getFather();\n depth++;\n }\n \n return depth;\n }", "private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }", "float getDepth();", "float getDepth();", "private int getDepthRecursive(Node currNode) {\n int max = 0;\n int val;\n\n // Return 0 if this Node is null or if it is invalid.\n if (currNode == null || currNode.key < 0) return 0;\n\n // Finds the maximum depth of this Node's subtrees.\n for (int i = 0; i < getNumChildren(); ++i) {\n val = getDepthRecursive(currNode.children[i]);\n max = Math.max(max, val);\n\n }\n\n // Returns the maximum depth of this Node's subtree plus one.\n return max + 1;\n\n }", "private static int dfs( int n, int level, int min ) {\n\n if (n == 0 || level >= min) return level; //returns only number of perfect squares\n\n for (int i = (int) Math.sqrt(n); i > 0; i--) { //Math.sqrt = same as prime-sieve of prime numbers\n\n min = dfs(n - ((int) Math.pow(i, 2)), level + 1, min);\n\n }\n return min;\n }", "public TreeNode<T> getMinElement(){\n TreeNode<T> t = this;\n while(t.left != null){\n t = t.left;\n }\n return t;\n }", "public int getDepth() {\r\n return depth;\r\n }", "public int getDepth(){\n\t\treturn _depth;\n\t}", "public int depth() {\n\t\treturn depthHelp(root);\r\n\t}", "public int getDepth()\n {\n return traversalStack.size();\n }", "public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}", "public int getDepth() {\n return depth;\n }", "public static <E extends Comparable> int deep(TreeNode<E> root) {\r\n \r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int deep = 0;\r\n \r\n queue.add(root);\r\n TreeNode<E> startNewLine = root;\r\n \r\n while(!queue.isEmpty()) {\r\n TreeNode<E> currentNode = queue.poll();\r\n if(currentNode == startNewLine) {\r\n startNewLine = null;\r\n deep ++;\r\n }\r\n if(currentNode.getLeft() != null) queue.add(currentNode.getLeft());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getLeft();\r\n }\r\n if(currentNode.getRight()!= null) queue.add(currentNode.getRight());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getRight();\r\n }\r\n }\r\n \r\n \r\n return deep;\r\n }", "public int getDepth(){\n\t\treturn depth;\n\t}", "public int getDepth()\n {\n return m_Depth;\n }", "public int maxDepth(TreeNode root) {\n return helper(0,root);\n }", "public int treeDepth(TreeNode root){\n if(root == null){\n return 0;\n }\n return 1 + Math.max(treeDepth(root.left), treeDepth(root.right));\n }", "@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}", "public int getMaxDepth() {\n return maxDepth;\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(1);\n root.right = new TreeNode(2);/*\n root.right.left = new TreeNode(4);\n root.right.right = new TreeNode(11);*/\n\n Solution solution = new Solution();\n int minimumDifference = solution.getMinimumDifference(root);\n System.out.println(minimumDifference);\n\n }", "public int depth() {\r\n\t\treturn this.depth;\r\n\t}", "public Node min() {\n\t\tNode x = root;\n\t\tif (x == null) return null;\n\t\twhile (x.getLeft() != null)\n\t\t\tx = x.getLeft();\n\t\treturn x;\n\t}", "private static int minimum(BinarySearchTreeNode<Integer> root) {\n if (root == null) {\n return Integer.MAX_VALUE;\n }\n\n int leftMin = minimum(root.left);\n int rightMin = minimum(root.right);\n\n return Math.min(root.data, Math.min(leftMin, rightMin));\n }", "public E findMin() {\n Node<E> temp = root;\n // while loop will run until there is no longer a node that has a left child.\n // temp is then assigned to the next node in the left child and will return\n // the node with the minimum value in the BST. The node that does not have a left\n // child will be the minimum value.\n while(temp.left != null){\n temp = temp.left;\n }\n return temp.getInfo();\n }", "public int getDepth() {\n return depth_;\n }", "int minValue(Node node) {\r\n\t\tif (node == null) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tNode root = node;\r\n\t\twhile (root.left != null) {\r\n\t\t\troot = root.left;\r\n\t\t}\r\n\t\treturn root.data;\r\n\t}", "public int maxDepth2(Node root) {\r\n\t\tif(root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tQueue<Node> queue = new LinkedList<Node>();\r\n\t\tqueue.offer(root);\r\n\t\t\r\n\t\tint depth = 0;\r\n\t\t\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tint levelSize = queue.size();\r\n\t\t\t\r\n\t\t\tdepth++;\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<levelSize; i++) {\r\n\t\t\t\tNode current = queue.poll();\r\n\t\t\t\t\r\n\t\t\t\tfor(Node node : current.children) {\r\n\t\t\t\t\tqueue.offer(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn depth;\r\n\t}", "private static <K extends Comparable<? super K>, V> Node<K, V> findSmallestNode(Node<K, V> root) {\n @Var Node<K, V> current = root;\n while (current.left != null) {\n current = current.left;\n }\n return current;\n }", "private int depth(Node current, int level)\r\n\t{\r\n\t\t// Current Node has two Children\r\n\t\tif(current.hasTwo())\r\n\t\t{\r\n\t\t\t// Traverse left subtree and obtain its level\r\n\t\t\tint tempLeft = (depth(current.getLeftChild(), level + 1));\r\n\t\t\t// Traverse right subtree and obtain its level\r\n\t\t\tint tempRight = (depth(current.getRightChild(), level + 1));\r\n\t\t\t// Return the maximum of the levels that were traversed by the left and right subtrees\r\n\t\t\treturn Math.max(tempLeft, tempRight);\r\n\t\t}\r\n\t\t// Current Node has no children (aka is a leaf)\r\n\t\telse if(current.isLeaf())\r\n\t\t{\r\n\t\t\treturn level;\r\n\t\t}\r\n\t\t// Current Node only has right child\r\n\t\telse if(current.getLeftChild() == null)\r\n\t\t{\r\n\t\t\treturn depth(current.getRightChild(), level + 1);\r\n\t\t}\r\n\t\t// Current Node only has left child\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn depth(current.getLeftChild(), level + 1);\r\n\t\t}\r\n\t}", "private static int calculateNodeDepths(Node root, int depth) {\n\t\tif(root == null)\n\t\t\treturn 0;\n//\t\tSystem.out.println(root.data);\n\t\treturn depth + calculateNodeDepths(root.left, depth + 1) + calculateNodeDepths(root.right, depth + 1); \n\t}", "Node<T> findDeepestNegativeSubtree() {\n Node<T> minSubtreeRoot = root;\n int maxHeight = 0;\n\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.addAll(root.getChildren());\n\n while (pendingNodes.size() > 0) {\n Node<T> currNode = pendingNodes.poll();\n T currNodeSubtreeWeight = currNode.getSubtreeWeight();\n\n if (operations.compare(currNodeSubtreeWeight, operations.getZero()) == -1 && currNode.getHeight() > maxHeight) {\n minSubtreeRoot = currNode;\n maxHeight = currNode.getHeight();\n }\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n return minSubtreeRoot;\n }", "private int minChild(int ind)\n {\n int bestChild = kthChild(ind, 1);\n int k =2;\n int pos = kthChild(ind, k);\n while ((k <= d) && (pos < heapSize)){\n if(heap[pos] < heap[bestChild])\n {\n bestChild = pos;\n }\n else {\n pos = kthChild(ind, k++);\n }\n }\n return bestChild;\n\n }", "public Node<T> extractMin() {\n Node<T> z = min;\n if (z != null) {\n if (z.child != null) {\n Node<T> leftChild = z.child.leftSibling;\n Node<T> rightChild = z.child;\n z.child.parent = null;\n while (leftChild != rightChild) {\n leftChild.parent = null;\n leftChild = leftChild.leftSibling;\n }\n leftChild = leftChild.rightSibling;\n\n // add child to the root list\n Node<T> tmp = z.rightSibling;\n z.rightSibling = leftChild;\n leftChild.leftSibling = z;\n tmp.leftSibling = rightChild;\n rightChild.rightSibling = tmp;\n }\n\n // remove z from the root list\n z.rightSibling.leftSibling = z.leftSibling;\n z.leftSibling.rightSibling = z.rightSibling;\n\n if (z == z.rightSibling) {\n min = null;\n } else {\n min = z.rightSibling;\n consolidate();\n }\n\n size--;\n }\n return z;\n }", "public int treeHigh(TreeNode node) \n { \n if (node == null) \n return 0; \n else \n { \n /* compute the depth of each subtree */\n int lDepth = treeHigh(node.left); \n int rDepth = treeHigh(node.right); \n \n /* use the larger one */\n if (lDepth > rDepth) \n return (lDepth + 1); \n else \n return (rDepth + 1); \n } \n }", "AVLTreeNode Min() {\r\n\r\n AVLTreeNode current = root;\r\n\r\n /* loop down to find the leftmost leaf */\r\n while (current.left != null)\r\n current = current.left;\r\n\r\n return current;\r\n\r\n\r\n }", "public void testFindMin() {\r\n assertNull(tree.findMin());\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n assertEquals(\"act\", tree.findMin());\r\n tree.remove(\"act\");\r\n assertEquals(\"apple\", tree.findMin());\r\n }", "public int maxDepth() {\n\t\treturn maxDepth(root);\n\t}", "private Node min(Node node){\n if(node == null)\n return null;\n else if(node.left == null)\n return node;\n\n //walk left nodes\n return min(node.left);\n }", "public int maxDepth(TreeNode root) {\n helper(root,1);\n return m;\n }", "private static int nodeDepthsIterativeStack(Node root) {\n\t\tStack<Level>st = new Stack<>();\n\t\tst.add(new Level(root, 0));\n\t\tint result = 0;\n\t\twhile(!st.isEmpty()) {\n\t\t\tLevel curr = st.pop();\n\t\t\tif(curr.root == null)\n\t\t\t\tcontinue;\n\t\t\tSystem.out.println(curr.toString());\n\t\t\tresult += curr.depth;\n\t\t\t// Push right before left to process the nodes in inorder fashion.\n\t\t\tst.push(new Level(curr.root.right, curr.depth+1));\n\t\t\tst.push(new Level(curr.root.left, curr.depth+1));\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.79023516", "0.78540736", "0.78132045", "0.7766894", "0.7686075", "0.7548415", "0.754738", "0.75400233", "0.75399137", "0.74841434", "0.7431502", "0.7413139", "0.7363647", "0.71991724", "0.71109337", "0.7095869", "0.7095869", "0.70462376", "0.69863516", "0.69837546", "0.69536823", "0.6951313", "0.68995607", "0.685687", "0.6802879", "0.6776694", "0.67720014", "0.6696391", "0.6631535", "0.6616218", "0.6610098", "0.66040546", "0.65997386", "0.65901875", "0.65433687", "0.65180784", "0.6506521", "0.6495096", "0.6467429", "0.6466679", "0.6450522", "0.6429597", "0.6417483", "0.64109397", "0.64051497", "0.64027715", "0.6393644", "0.6388503", "0.63677466", "0.6355942", "0.632278", "0.63133264", "0.6308748", "0.63025594", "0.6284427", "0.6274572", "0.6273237", "0.6256831", "0.62465304", "0.6244419", "0.6241167", "0.6238973", "0.6238973", "0.6236919", "0.6212693", "0.62044936", "0.6198912", "0.6198714", "0.6196646", "0.6179384", "0.6162335", "0.6160778", "0.6159457", "0.61577857", "0.6147603", "0.6124275", "0.61219406", "0.6117129", "0.6116508", "0.6114383", "0.61130255", "0.60967964", "0.6072767", "0.60667044", "0.6034723", "0.60303664", "0.6022278", "0.6016154", "0.60124254", "0.60084504", "0.6008126", "0.6002083", "0.59974825", "0.59952277", "0.5985258", "0.59823185", "0.59801847", "0.59800744", "0.597856", "0.5969701" ]
0.78031105
3
Find the maximum depth in the tree using recursion.
private static int maxDepth(TreeNode node) { if (node == null) return 0; return 1 + Math.max(maxDepth(node.left), maxDepth(node.right)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int maxDepth();", "int getMax_depth();", "public int getMaxDepth() {\n return maxDepth;\n }", "public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}", "public int maxDepth() {\n return maxDepth;\n }", "public int maxDepth() {\n return maxDepth;\n }", "public int maxDepth() {\n\t\treturn maxDepth(root);\n\t}", "@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}", "public Integer getMaxDepth() {\n return this.maxDepth;\n }", "public int maxDepth(TreeNode root) {\n return helper(0,root);\n }", "public int maxDepth(TreeNode root) {\n helper(root,1);\n return m;\n }", "static int maximumDepth( TreeNode node, int depth ) {\n if ( node == null ) {\n // The tree is empty. Return 0.\n return 0;\n }\n else if ( node.left == null && node.right == null) {\n // The node is a leaf, so the maximum depth in this\n // subtree is the depth of this node (the only leaf \n // that it contains).\n return depth;\n }\n else {\n // Get the maximum depths for the two subtrees of this\n // node. Return the larger of the two values, which\n // represents the maximum in the tree overall.\n int leftMax = maximumDepth(node.left, depth + 1);\n int rightMax = maximumDepth(node.right, depth + 1);\n if (leftMax > rightMax)\n return leftMax;\n else\n return rightMax;\n }\n }", "int getTemporaryMaxDepth();", "private static int maxDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.max(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "public static int maxDepth(TreeNode root){\n if(root == null) return 0;\n\n return maxDepthRec(root, 0, 1);\n }", "public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}", "public int discoverMaximumLayerDepth() {\n\t\tif (this.layers.size() > 0) {\n\t\t\tint layerDepth;\n\t\t\t\n\t\t\tfor (int i = 0; i < this.layers.size(); i++) {\n\t\t\t\tlayerDepth = this.layers.get(i).getDepth();\n\t\t\t\tthis.maximumLayerDepth = layerDepth > this.maximumLayerDepth ? layerDepth : this.maximumLayerDepth;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn this.maximumLayerDepth;\n\t}", "public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }", "public Integer getMaxNestingLevel(){\n\t\tint i=-1;\n\t\tfor(Loop lp:loops){\n\t\t\tint temp = getNestingLevel(lp);\n\t\t\tif(temp>i)i=temp;\n\t\t}\n\t\treturn i;\n\t}", "public int maxDepth(Node root) {\n\n int depth = 0;\n\n if (root == null)\n return depth;\n\n Queue<Node> queue = new LinkedList<Node>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n // as soon as we encounter node we have to increase the counter\n depth++;\n \n int levelSize = queue.size();\n\n for (int i = 0; i < levelSize; i++) {\n\n Node currentNode = queue.poll();\n\n for (Node child : currentNode.children) {\n queue.offer(child);\n }\n }\n }\n return depth;\n }", "public int maxDepth(Node root)\r\n\t {\r\n\t if(root == null)\r\n\t return 0;\r\n\t \r\n\t int lh = maxDepth(root.leftChild);\r\n\t\t int rh = maxDepth(root.rightChild);\r\n\t\t \r\n\t return Math.max(lh, rh) + 1; \r\n\t }", "public static int maxDepth2(TreeNode root){\n if(root == null) return 0;\n\n return maxDepthRec2(root, 1);\n }", "public int maxDepth(TreeNode root){\r\n if(root==null) return 0;\r\n return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));\r\n }", "int getRecursionDepth();", "public int maxDepth(TreeNode root) {\n if(root == null){\n return 0;\n }\n return 1 +(Math.max(maxDepth(root.left), maxDepth(root.right)));\n }", "public int findMax(){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\tNode temp = root;\n\t\twhile(temp.right != nil){\n\t\t\ttemp = temp.right;\n\t\t}\n\t\treturn temp.id;\n\t}", "public int maxDepth(Node root) {\n\t\tif (root == null)\n\t\t\treturn 0;\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(root);\n\t\tint level = 0;\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tlevel++;\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode temp = q.poll();\n\t\t\t\tfor (int j = 0; j < temp.children.size(); j++) {\n\t\t\t\t\tq.offer(temp.children.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn level;\n\n\t}", "int depth();", "int depth();", "public int maxDepth2(Node root) {\r\n\t\tif(root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tQueue<Node> queue = new LinkedList<Node>();\r\n\t\tqueue.offer(root);\r\n\t\t\r\n\t\tint depth = 0;\r\n\t\t\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tint levelSize = queue.size();\r\n\t\t\t\r\n\t\t\tdepth++;\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<levelSize; i++) {\r\n\t\t\t\tNode current = queue.poll();\r\n\t\t\t\t\r\n\t\t\t\tfor(Node node : current.children) {\r\n\t\t\t\t\tqueue.offer(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn depth;\r\n\t}", "public int maxDepth(Node root) {\r\n\t\tif(root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tint depth = 1;\r\n\t\t\r\n\t\tfor(Node node : root.children) {\r\n\t\t\tdepth = Math.max(depth, maxDepth(node)+1);\r\n\t\t}\r\n\t\t\r\n\t\treturn depth;\r\n\t}", "private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}", "private int getDepthRecursive(Node currNode) {\n int max = 0;\n int val;\n\n // Return 0 if this Node is null or if it is invalid.\n if (currNode == null || currNode.key < 0) return 0;\n\n // Finds the maximum depth of this Node's subtrees.\n for (int i = 0; i < getNumChildren(); ++i) {\n val = getDepthRecursive(currNode.children[i]);\n max = Math.max(max, val);\n\n }\n\n // Returns the maximum depth of this Node's subtree plus one.\n return max + 1;\n\n }", "public int depth ();", "public int maxDepth(TreeNode root) {\n\t\tif (root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tLinkedList<TreeNode> queue = new LinkedList<TreeNode>();\n\t\tqueue.add(root);\n\t\tint cur_child = 1;\n\t\tint nxt_child = 0;\n\t\tint level = 1;\n\t\tTreeNode node = null;\n\t\twhile (!queue.isEmpty()) {\n\t\t\tnode = queue.poll();\n\t\t\tcur_child--;\n\t\t\tif (node.left != null) {\n\t\t\t\tqueue.add(node.left);\n\t\t\t\tnxt_child++;\n\t\t\t}\n\t\t\tif (node.right != null) {\n\t\t\t\tqueue.add(node.right);\n\t\t\t\tnxt_child++;\n\t\t\t}\n\t\t\tif (cur_child == 0) {\n\t\t\t\t// End level\n\t\t\t\tlevel++;\n\t\t\t\tcur_child = nxt_child;\n\t\t\t\tnxt_child = 0;\n\t\t\t}\n\t\t}\n\t\treturn --level;\n\t}", "private int negaMax(int depth, String indent) {\r\n\r\n\t\tif (depth <= 0\r\n\t\t\t|| this.chessGame.getGameState() == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t|| this.chessGame.getGameState() == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\t\r\n\t\t\treturn evaluateState();\r\n\t\t}\r\n\t\t\r\n\t\tList<Move> moves = generateMoves(false);\r\n\t\tint currentMax = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tfor(Move currentMove : moves){\r\n\t\t\t\r\n\t\t\texecuteMove(currentMove);\r\n\t\t\t//ChessConsole.printCurrentGameState(this.chessGame);\r\n\t\t\tint score = -1 * negaMax(depth - 1, indent+\" \");\r\n\t\t\t//System.out.println(indent+\"handling move: \"+currentMove+\" : \"+score);\r\n\t\t\tundoMove(currentMove);\r\n\t\t\t\r\n\t\t\tif( score > currentMax){\r\n\t\t\t\tcurrentMax = score;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(indent+\"max: \"+currentMax);\r\n\t\treturn currentMax;\r\n\t}", "int getDepth();", "private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }", "public int depth() { return Math.max(left.depth(), right.depth()) + 1; }", "public Node findMax(){\n if(root!=null){ // มี node ใน tree\n return findMax(root); // Call the recursive version\n }\n else{\n return null;\n }\n }", "public int getHeight(){\n\t\tint h=maxDepth(root);\n\t\treturn h;\n\t}", "public static int maxDepth(TreeNode root) {\n if (root == null) {\n return 0;\n }\n\n int lDepth = maxDepth(root.left);\n int rDepth = maxDepth(root.right);\n\n return 1 + (lDepth > rDepth ? lDepth : rDepth);\n }", "public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}", "public int maxDepthOfTree(Node root) {\n if (root == null) {\n return 0;\n }\n return Math.max(maxDepthOfTree(root.left), maxDepthOfTree(root.right)) + 1;\n }", "private int getTreeDepth(Node root, int depth) {\r\n\t\tif (root == null) {\r\n\t\t\treturn depth - 1;\r\n\t\t}\r\n\t\tif (depth > maxDepth) {\r\n\t\t\tmaxDepth = depth;\r\n\t\t}\r\n\t\tint lChildDepth = getTreeDepth(root.getlChild(), depth + 1);\r\n\t\tint rChildDepth = getTreeDepth(root.getrChild(), depth + 1);\r\n\r\n\t\treturn lChildDepth > rChildDepth ? lChildDepth : rChildDepth;\r\n\t}", "int depth(Node root) {\n\t\tif (root == null) return 0;\n\t\treturn Math.max(depth(root.left), depth(root.right)) + 1 ;\n\t}", "public int getDepth();", "public int getDepth() {\n return getDepthRecursive(root);\n\n }", "public static int maxDepth(TreeNode root) {\n if (root == null) {\n return 0;\n }\n return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));\n }", "public void setMaxDepth (int maxDepth) {\n \n }", "public int maxDepth5(TreeNode root) {\n int res = 0;\n if(root == null) return res;\n\n return goDeep3(root);\n }", "public int maxDepth6(TreeNode root) {\n if(root == null) return 0; \n \n return 1 + Math.max(maxDepth(root.left), maxDepth(root.right)); \n }", "int getMaxLevel();", "private int depth(Node current, int level)\r\n\t{\r\n\t\t// Current Node has two Children\r\n\t\tif(current.hasTwo())\r\n\t\t{\r\n\t\t\t// Traverse left subtree and obtain its level\r\n\t\t\tint tempLeft = (depth(current.getLeftChild(), level + 1));\r\n\t\t\t// Traverse right subtree and obtain its level\r\n\t\t\tint tempRight = (depth(current.getRightChild(), level + 1));\r\n\t\t\t// Return the maximum of the levels that were traversed by the left and right subtrees\r\n\t\t\treturn Math.max(tempLeft, tempRight);\r\n\t\t}\r\n\t\t// Current Node has no children (aka is a leaf)\r\n\t\telse if(current.isLeaf())\r\n\t\t{\r\n\t\t\treturn level;\r\n\t\t}\r\n\t\t// Current Node only has right child\r\n\t\telse if(current.getLeftChild() == null)\r\n\t\t{\r\n\t\t\treturn depth(current.getRightChild(), level + 1);\r\n\t\t}\r\n\t\t// Current Node only has left child\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn depth(current.getLeftChild(), level + 1);\r\n\t\t}\r\n\t}", "public int findMaxValueWithoutRecursion() {\n\t\tQueue<XTreeNode<Integer>> collectedNodes = new LinkedList<>();\n\t\tcollectedNodes.add( (XTreeNode<Integer>) this );\n\n\t\tint maxValue = Integer.MIN_VALUE;\n\t\twhile( !collectedNodes.isEmpty() ) {\n\t\t\tXTreeNode<Integer> node = collectedNodes.poll();\n\t\t\tmaxValue = node.getData() > maxValue ? node.getData() : maxValue;\n\n\t\t\tif( node.getLeftChild() != null ) {\n\t\t\t\tcollectedNodes.add( node.getLeftChild() );\n\t\t\t}\n\t\t\tif( node.getRightChild() != null ) {\n\t\t\t\tcollectedNodes.add( node.getRightChild() );\n\t\t\t}\n\t\t}\n\t\treturn maxValue;\n\t}", "public static int getDepth() {\n return depth;\n }", "public int maxDepht(Node node){\n //if a tree is empty then return 0\n if (node == null)\n return 0;\n\n else {\n //compute the depth of each subtree\n int leftDepth = maxDepht(node.left);\n int rightDepth = maxDepht(node.right);\n\n if (leftDepth > rightDepth)\n return leftDepth+1;\n else\n return rightDepth+1;\n }\n }", "public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}", "public int minDepth(TreeNode root) {\n /*\n 主页君认为,在这应该是属于未定义行为,这里我们定义为MAX会比较好,因为\n null就是取不到任何节点,没有path,不应该将最小值定为0.\n */\n if (root == null) {\n return 0;\n }\n \n int level = 0;\n \n Queue<TreeNode> q = new LinkedList<TreeNode>();\n q.offer(root);\n \n while (!q.isEmpty()) {\n int size = q.size();\n level++;\n for (int i = 0; i < size; i++) {\n TreeNode cur = q.poll();\n \n if (cur.left == null && cur.right == null) {\n return level;\n }\n \n if (cur.left != null) {\n q.offer(cur.left);\n }\n \n if (cur.right != null) {\n q.offer(cur.right);\n }\n }\n }\n \n return 0;\n }", "public int treeDepth(TreeNode root){\n if(root == null){\n return 0;\n }\n return 1 + Math.max(treeDepth(root.left), treeDepth(root.right));\n }", "public double getMaxDepthForRuptureInRegionBounds() {\n if(maxDepth == 0)\n getSiteRegionBounds();\n return maxDepth;\n }", "public interface MaximumDepthOfBinaryTree {\n int maxDepth(TreeNode root);\n}", "public int depth() {\n\t\treturn depthHelp(root);\r\n\t}", "abstract int getMaxLevel();", "public static int maxDepth(Node root, int depth)\n\t{\n\t\t//Root is null, don't compare depth\n\t\tif(root == null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t//Root is leaf, compare it's depth\n\t\tif(isLeaf(root))\n\t\t{\n\t\t\treturn depth;\n\t\t}\n\t\t\n\t\t//Root is not null or leaf, compare depth of left and right subtrees\n\t\treturn Math.max(maxDepth(root.leftChild, depth + 1), \n\t\t\t\tmaxDepth(root.rightChild, depth + 1));\n\t}", "public int getMaxLevel()\r\n\t{\treturn this.maxLevel;\t}", "boolean isMaxdepthSpecified();", "@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}", "public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}", "int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}", "public int treeHigh(TreeNode node) \n { \n if (node == null) \n return 0; \n else \n { \n /* compute the depth of each subtree */\n int lDepth = treeHigh(node.left); \n int rDepth = treeHigh(node.right); \n \n /* use the larger one */\n if (lDepth > rDepth) \n return (lDepth + 1); \n else \n return (rDepth + 1); \n } \n }", "public double getDepth();", "int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }", "private void maxDepthHelper(TreeNode node, int curDepth) {\n if (node == null) {\n return;\n }\n\n if (curDepth > depth) {\n depth = curDepth;\n }\n\n maxDepthHelper(node.left, curDepth + 1);\n maxDepthHelper(node.right, curDepth + 1);\n }", "private int getDepthRaw(TreeNode root){\n if (root == null) {\n return 0;\n }\n\n int left = getDepthRaw(root.left);\n int right = getDepthRaw(root.right);\n if (left == -1 || right == -1) {\n return -1;\n }else{\n if (Math.abs(left - right) > 1) {\n return -1;\n }else{\n return Math.max(left, right) + 1;\n }\n }\n }", "public int findMax(TreeNode root){\r\n TreeNode current;\r\n if( isLeaf(root )){\r\n return root.getValue();\r\n }else {\r\n current = root;\r\n current = current.right;\r\n if( isLeaf(current)){\r\n return current.value;\r\n }\r\n if( current.left != null && current.right == null){\r\n return current.left.getValue();\r\n }\r\n }\r\n return current.getValue();\r\n }", "private int getMax(TreeNode root) {\n\t\twhile(root.right!=null)\n\t\t\troot=root.right;\n\t\treturn root.val;\n\t}", "public int getMaxLevel() {\r\n int maxLev = 0;\r\n for (final Category name : map.keySet()) {\r\n if (name.categories.size() > maxLev) {\r\n maxLev = name.categories.size();\r\n }\r\n }\r\n return maxLev;\r\n }", "@Override\n public TreeNode<E> tree_maximum() {\n return tree_maximum(root);\n }", "public static Node findMax(Node node){\n if(node.right!=null){ // recursive right-subtree จนตกเกือบ null แล้ว return node นั้น\n return findMax(node.right);\n }\n else{\n return node;}\n }", "public static int minDepth(TreeNode root) {\n if(root == null) return 0;\n Queue<TreeNode> queue = new ArrayDeque<>();\n int level = 1;\n queue.offer(root);\n while(!queue.isEmpty()) {\n int n = queue.size();\n while(n-- > 0) {\n TreeNode node = queue.poll();\n if(node.left == null && node.right == null)\n return level;\n\n if(node.left != null)\n queue.offer(node.left);\n if(node.right != null)\n queue.offer(node.right);\n }\n level++;\n }\n return level;\n }", "private static int minDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.min(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "public int getDepth() {\r\n return depth;\r\n }", "public int depth() {\r\n\t\treturn this.depth;\r\n\t}", "public int longestZigZag(TreeNode root) {\n // left -> 0, right -> 1\n dfs(root, 0, 0);\n dfs(root, 1, 0);\n return max;\n }", "public int findMaxValue(Node root) {\n if(root == null) {\n return Integer.MIN_VALUE;\n }\n int output = (int)root.getData();\n int leftOutput = findMaxValue(root.getLeftChildNode());\n int rightOutput = findMaxValue(root.getRightChildNode());\n if(leftOutput > output){\n output = leftOutput;\n }\n if(rightOutput > output) {\n output = rightOutput;\n }\n return output;\n\n }", "public int getMaxLevel() {\n\t\treturn 10;\n\t}", "public int getDepth() {\n return depth;\n }", "public int getDepth()\n {\n return depth; \n }", "public int getRecursionDepth() {\n return recursionDepth_;\n }", "public abstract int getMaxChildren();", "public int getDepth(){\n\t\treturn _depth;\n\t}", "public void setMaxDepth(int maxDepth) {\n this.maxDepth = maxDepth - 1;\n }", "public void setMaxDepth(Integer maxDepth) {\n this.maxDepth = maxDepth;\n }", "public int getDepth(){\n\t\treturn depth;\n\t}", "public void setMaxDepth(int theDepth) {\r\n\t\tmaxDepth = theDepth;\r\n\t}", "public static int max(treenode root)\n {\n treenode curr=root;\n while(curr.right!=null)\n {\n curr=curr.right;\n }\n return curr.val;\n }", "public int getMaxHierarchyDepth(Das2TypeI type) {\n\tint depth = Das2FeaturesCapabilityI.UNKNOWN;\n if (type instanceof UcscType) {\n\t UcscType utype = (UcscType)type;\n\t TrackType track_type = utype.getTrackType();\n\n\t if (track_type == TrackType.GENEPRED || \n\t\ttrack_type == TrackType.PSL || \n\t\ttrack_type == TrackType.BED12 || \n\t\ttrack_type == TrackType.BED15) {\n\t\tdepth = 2;\n\t }\n\t else if (track_type == TrackType.BED3 ||\n\t\t track_type == TrackType.BED4 ||\n\t\t track_type == TrackType.BED5 ||\n\t\t track_type == TrackType.BED6 ||\n\t\t track_type == TrackType.BED8 ||\n\t\t track_type == TrackType.BED9 ) {\n\t\tdepth = 1;\n\t }\n\t}\n\treturn depth;\n }", "public int getMaxDepthRec(Node<T> nodo, int profundidad, int profundidadMax) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tprofundidad++;// Aumenta la profundidad al entrar a los hijos\r\n\t\t\tif (profundidad > profundidadMax)// Si es la mas alta\r\n\t\t\t\tprofundidadMax = profundidad;\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tprofundidadMax = getMaxDepthRec(hijos.get(i), profundidad, profundidadMax);// Recursividad\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// del\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// metodo\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn profundidadMax;\r\n\t}", "public int getDepth(){\r\n return this.depth;\r\n }" ]
[ "0.85638845", "0.8541404", "0.80175513", "0.7958052", "0.7778701", "0.7771015", "0.7770649", "0.7741171", "0.7729857", "0.7708226", "0.76574725", "0.753008", "0.75266564", "0.7471032", "0.74156165", "0.7345238", "0.73449475", "0.7324253", "0.7285081", "0.7240283", "0.7234621", "0.7177194", "0.7173831", "0.71561986", "0.71293527", "0.7102739", "0.71020335", "0.70954776", "0.70954776", "0.7093474", "0.7091451", "0.70887977", "0.70843816", "0.70126814", "0.696333", "0.69624317", "0.6946142", "0.6942917", "0.69099766", "0.6909699", "0.68930614", "0.689033", "0.6889107", "0.68802106", "0.6879869", "0.68679005", "0.6860624", "0.6856558", "0.6813194", "0.6805815", "0.6767904", "0.6752372", "0.67493427", "0.67313087", "0.67226344", "0.66954666", "0.6669185", "0.66633886", "0.66520625", "0.66503865", "0.66443956", "0.66417396", "0.6639122", "0.6600009", "0.65948665", "0.657849", "0.6577761", "0.6560673", "0.6560101", "0.6547534", "0.65284926", "0.6492747", "0.64817435", "0.64781815", "0.64631575", "0.6461439", "0.6458514", "0.64282846", "0.64260787", "0.6423572", "0.6399709", "0.6398199", "0.6391335", "0.63801396", "0.63751477", "0.63741356", "0.63670087", "0.63597876", "0.6359381", "0.63437885", "0.6343057", "0.63301957", "0.63298404", "0.6326238", "0.6322137", "0.6313721", "0.6312499", "0.62874234", "0.6286694", "0.6286567" ]
0.7312871
18
Find the minimum depth in the tree using recursion.
private static int minDepth(TreeNode node) { if (node == null) return 0; return 1 + Math.min(minDepth(node.left), minDepth(node.right)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinDepth() {\n return minDepth;\n }", "public int minDepth(BinaryTree root) {\n int i = 1;\n if (root == null) {\n return 0;\n }\n subTreeDepth(root, i);\n System.out.println(\"Minimum depth of the tree : \" + depth);\n return depth;\n }", "private static int minDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.min(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "public static int minDepth(TreeNode root) {\n if(root == null) return 0;\n Queue<TreeNode> queue = new ArrayDeque<>();\n int level = 1;\n queue.offer(root);\n while(!queue.isEmpty()) {\n int n = queue.size();\n while(n-- > 0) {\n TreeNode node = queue.poll();\n if(node.left == null && node.right == null)\n return level;\n\n if(node.left != null)\n queue.offer(node.left);\n if(node.right != null)\n queue.offer(node.right);\n }\n level++;\n }\n return level;\n }", "public int minDepth(TreeNode root) {\n /*\n 主页君认为,在这应该是属于未定义行为,这里我们定义为MAX会比较好,因为\n null就是取不到任何节点,没有path,不应该将最小值定为0.\n */\n if (root == null) {\n return 0;\n }\n \n int level = 0;\n \n Queue<TreeNode> q = new LinkedList<TreeNode>();\n q.offer(root);\n \n while (!q.isEmpty()) {\n int size = q.size();\n level++;\n for (int i = 0; i < size; i++) {\n TreeNode cur = q.poll();\n \n if (cur.left == null && cur.right == null) {\n return level;\n }\n \n if (cur.left != null) {\n q.offer(cur.left);\n }\n \n if (cur.right != null) {\n q.offer(cur.right);\n }\n }\n }\n \n return 0;\n }", "public int minDepth(TreeNode root) {\n if (root == null) return 0;\n return helper(root);\n }", "public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}", "public int minDepth(TreeNode root) {\n if(root == null) { // corner case and base case 1 for node with only one child\n return 0;\n }\n if(root.left == null && root.right == null) { // base case for leaf node\n return 1;\n }\n \n \n // At current level\n int left = minDepth(root.left);\n int right = minDepth(root.right);\n \n if(left == 0) {\n return 1 + right; // The depth from leaf\n } else if(right == 0) {\n return 1 + left;\n } else {\n return 1 + Math.min(left, right);\n }\n }", "public int minDepth(Node root) \r\n\t {\r\n\t\t if(root == null)\r\n\t return 0;\r\n\t\t \r\n\t int lh = minDepth(root.leftChild);\r\n\t int rh = minDepth(root.rightChild);\r\n\t \r\n\t if(root.leftChild != null && root.rightChild != null)\r\n\t return 1 + Math.min(lh,rh);\r\n\t \r\n\t return 1 + Math.max(lh,rh); \r\n\t }", "public int minDepth(TreeNode root) {\n if (root == null) return 0;\n int ldepth = minDepth(root.left);\n int rdepth = minDepth(root.right);\n if (ldepth == 0 && rdepth == 0) {\n return 1;\n }\n if (ldepth == 0) {\n ldepth = Integer.MAX_VALUE;\n }\n if (rdepth == 0) {\n rdepth = Integer.MAX_VALUE;\n }\n return Math.min(ldepth, rdepth) + 1;\n }", "public int minDepth(TreeNode root) {\r\n\t\tif(root==null) return 0;\r\n\t\tint left = minDepth(root.left);\r\n\t\tint right = minDepth(root.right);\r\n\t\treturn (left == 0 || right == 0) ? left+right+1:Math.min(left, right) + 1;\r\n\r\n\t}", "public static <E extends Comparable> int minDeep(TreeNode<E> root) {\r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int minDeep = 1;\r\n \r\n queue.add(root);\r\n \r\n while(true){\r\n for(int deep = 0; deep < Math.pow(2, minDeep); deep++) {\r\n TreeNode<E> node = queue.poll();\r\n if(node.getLeft() == null || node.getRight() == null) return minDeep;\r\n queue.add(node.getLeft());\r\n queue.add(node.getRight());\r\n }\r\n \r\n minDeep++;\r\n }\r\n }", "int getMax_depth();", "public int minDepth (TreeNode root) {\n if (root == null)\n return 0;\n return Math.min (minDepth (root.left), minDepth (root.right)) + 1;\n }", "int depth();", "int depth();", "public int depth ();", "public int findMin(){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\tNode temp = root;\n\t\twhile(temp.left != nil){\n\t\t\ttemp=temp.left;\n\t\t}\n\t\treturn temp.id;\n\t}", "int maxDepth();", "int getRecursionDepth();", "int getDepth();", "public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}", "private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}", "public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}", "public int getDepth();", "public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }", "public int depth() { return Math.max(left.depth(), right.depth()) + 1; }", "private static int findMinimumSumLevelInGivenTree(Node tree){\n Map<Integer, Integer> sumAtEachLevelMap = new HashMap<Integer, Integer>();\n \n //puts all level sums in map\n findLevelSums(tree, sumAtEachLevelMap, 1);\n \n // gets the level with least sum\n return getMinimumSumLevel(sumAtEachLevelMap);\n }", "public static Node findMin(Node node){\n if(node.left!=null){\n return findMin(node.left); // recursive left-subtree จนตกเกือบ null แล้ว return node นั้น\n }\n else{\n return node;}\n }", "public void setMinDepth(int minDepth) {\n this.minDepth = minDepth;\n }", "int depth(Node root) {\n\t\tif (root == null) return 0;\n\t\treturn Math.max(depth(root.left), depth(root.right)) + 1 ;\n\t}", "public int getDepth() {\n return getDepthRecursive(root);\n\n }", "public TreeNode smallest() {\n\t\tif(root == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tTreeNode current = root; \n\t\t\twhile(current.getLeftChild() != null) {\n\t\t\t\tcurrent = current.getLeftChild();\n\t\t\t}\n\t\t\treturn current;\n\t\t}\n\t}", "int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }", "@Override\n public TreeNode<E> tree_minimum() {\n return tree_minimum(root);\n }", "public double getDepth();", "public static int min(treenode root)\n {\n treenode curr=root;\n while(curr.left!=null)\n curr=curr.left;\n return curr.val;\n }", "public static int getDepth() {\n return depth;\n }", "int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}", "public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}", "Node minValueNode(Node node) \n { \n Node current = node; \n \n /* loop down to find the leftmost leaf */\n while (current.left != null) \n current = current.left; \n \n return current; \n }", "public Website treeMinimum(Website site) {\r\n\t\tWebsite localSite = site; // Local pointer to given Site\r\n\t\twhile (localSite.getLeft() != null&&localSite.getLeft().getPageRank()!=0) { // Traversing Loop, stops at null node\r\n\t\t\tlocalSite = localSite.getLeft(); // incrementation Condition\r\n\t\t}\r\n\t\treturn localSite; // Returns minimum\r\n\t}", "private static int maxDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.max(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "public int minTreeRank() {\r\n\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }", "private int getDepthRecursive(Node currNode) {\n int max = 0;\n int val;\n\n // Return 0 if this Node is null or if it is invalid.\n if (currNode == null || currNode.key < 0) return 0;\n\n // Finds the maximum depth of this Node's subtrees.\n for (int i = 0; i < getNumChildren(); ++i) {\n val = getDepthRecursive(currNode.children[i]);\n max = Math.max(max, val);\n\n }\n\n // Returns the maximum depth of this Node's subtree plus one.\n return max + 1;\n\n }", "int getTemporaryMaxDepth();", "private Node minNode(Node node) {\n Node updt = node;\n // Finding the leftmost leaf\n while (updt.left != null) {\n updt = updt.left;\n }\n return updt;\n }", "public int depth() {\n\t\treturn depthHelp(root);\r\n\t}", "private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }", "public static int minimum(Node root){\r\n int mn = Integer.MAX_VALUE;\r\n for(Node child : root.children){\r\n mn = Math.min(mn, minimum(child));\r\n }\r\n return Math.min(mn, root.data);\r\n }", "private static Node min(Node root) {\n\t\tif(root.left == null) {\n\t\t\treturn root;\n\t\t}\n\t\treturn min(root.left);\n\t}", "@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}", "private static int dfs( int n, int level, int min ) {\n\n if (n == 0 || level >= min) return level; //returns only number of perfect squares\n\n for (int i = (int) Math.sqrt(n); i > 0; i--) { //Math.sqrt = same as prime-sieve of prime numbers\n\n min = dfs(n - ((int) Math.pow(i, 2)), level + 1, min);\n\n }\n return min;\n }", "private int getDepthRaw(TreeNode root){\n if (root == null) {\n return 0;\n }\n\n int left = getDepthRaw(root.left);\n int right = getDepthRaw(root.right);\n if (left == -1 || right == -1) {\n return -1;\n }else{\n if (Math.abs(left - right) > 1) {\n return -1;\n }else{\n return Math.max(left, right) + 1;\n }\n }\n }", "public int getDepth()\n {\n return depth; \n }", "public int getDepth(){\r\n return this.depth;\r\n }", "public Integer getMaxNestingLevel(){\n\t\tint i=-1;\n\t\tfor(Loop lp:loops){\n\t\t\tint temp = getNestingLevel(lp);\n\t\t\tif(temp>i)i=temp;\n\t\t}\n\t\treturn i;\n\t}", "public int minDiffInBST(TreeNode root) {\n PriorityQueue<Integer> tree = new PriorityQueue<>();\n dfs(root, tree);\n int min = Integer.MAX_VALUE;\n int pr = tree.poll();\n while (!tree.isEmpty()) {\n min = Math.min(min, Math.abs(pr - tree.peek()));\n pr = tree.poll();\n }\n return min;\n }", "public int getDepth(){\n\t\treturn _depth;\n\t}", "public int getNodeDepth() {\n int depth = 0;\n TreeNode tn = this;\n \n while(tn.getFather() != null) {\n tn = tn.getFather();\n depth++;\n }\n \n return depth;\n }", "public int getDepth() {\r\n return depth;\r\n }", "public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}", "float getDepth();", "float getDepth();", "public int getDepth() {\n return depth;\n }", "public int getDepth(){\n\t\treturn depth;\n\t}", "public static int depth(Node root, Node node){\n\n if(node!=root){ // node มีตัวตน\n return 1 + depth (root,node.parent) ; // depth = length(path{node->root})\n\n }\n else {\n return 0;\n }\n\n }", "public int getDepth()\n {\n return m_Depth;\n }", "public int depth() {\r\n\t\treturn this.depth;\r\n\t}", "public static Level getMinimumLevel() {\n\t\treturn minLevel;\n\t}", "private int getTreeDepth(Node root, int depth) {\r\n\t\tif (root == null) {\r\n\t\t\treturn depth - 1;\r\n\t\t}\r\n\t\tif (depth > maxDepth) {\r\n\t\t\tmaxDepth = depth;\r\n\t\t}\r\n\t\tint lChildDepth = getTreeDepth(root.getlChild(), depth + 1);\r\n\t\tint rChildDepth = getTreeDepth(root.getrChild(), depth + 1);\r\n\r\n\t\treturn lChildDepth > rChildDepth ? lChildDepth : rChildDepth;\r\n\t}", "public int getDepth()\n {\n return traversalStack.size();\n }", "private static int minimum(BinarySearchTreeNode<Integer> root) {\n if (root == null) {\n return Integer.MAX_VALUE;\n }\n\n int leftMin = minimum(root.left);\n int rightMin = minimum(root.right);\n\n return Math.min(root.data, Math.min(leftMin, rightMin));\n }", "public Node min() {\n\t\tNode x = root;\n\t\tif (x == null) return null;\n\t\twhile (x.getLeft() != null)\n\t\t\tx = x.getLeft();\n\t\treturn x;\n\t}", "public E findMin() {\n Node<E> temp = root;\n // while loop will run until there is no longer a node that has a left child.\n // temp is then assigned to the next node in the left child and will return\n // the node with the minimum value in the BST. The node that does not have a left\n // child will be the minimum value.\n while(temp.left != null){\n temp = temp.left;\n }\n return temp.getInfo();\n }", "private static int maxDepth(TreeNode node) {\r\n\t\tif (node == null) return 0;\r\n\t\treturn 1 + Math.max(maxDepth(node.left), maxDepth(node.right));\r\n\t}", "public TreeNode<T> getMinElement(){\n TreeNode<T> t = this;\n while(t.left != null){\n t = t.left;\n }\n return t;\n }", "static int downToZero(Node root) {\n /*\n * Write your code here.\n */\n Queue<Node> queue = new PriorityQueue<>();\n queue.add(root);\n int min = 100001;\n while (!queue.isEmpty()){\n Node current = queue.poll();\n if(current.value <= 4){\n if (current.value == 4){\n min = current.depth + 3;\n return min;\n }\n min = current.depth+current.value;\n return min;\n }\n Node toAdd1 = new Node(current.value-1, current.depth+1);\n queue.add(toAdd1);\n for(int i = 2; i<=Math.sqrt(current.value); i++){\n if(current.value%i==0){\n Node toAdd = new Node(current.value/i, current.depth+1);\n queue.add(toAdd);\n }\n }\n }\n return min;\n }", "private int depth(Node current, int level)\r\n\t{\r\n\t\t// Current Node has two Children\r\n\t\tif(current.hasTwo())\r\n\t\t{\r\n\t\t\t// Traverse left subtree and obtain its level\r\n\t\t\tint tempLeft = (depth(current.getLeftChild(), level + 1));\r\n\t\t\t// Traverse right subtree and obtain its level\r\n\t\t\tint tempRight = (depth(current.getRightChild(), level + 1));\r\n\t\t\t// Return the maximum of the levels that were traversed by the left and right subtrees\r\n\t\t\treturn Math.max(tempLeft, tempRight);\r\n\t\t}\r\n\t\t// Current Node has no children (aka is a leaf)\r\n\t\telse if(current.isLeaf())\r\n\t\t{\r\n\t\t\treturn level;\r\n\t\t}\r\n\t\t// Current Node only has right child\r\n\t\telse if(current.getLeftChild() == null)\r\n\t\t{\r\n\t\t\treturn depth(current.getRightChild(), level + 1);\r\n\t\t}\r\n\t\t// Current Node only has left child\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn depth(current.getLeftChild(), level + 1);\r\n\t\t}\r\n\t}", "int minValue(Node node) {\r\n\t\tif (node == null) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tNode root = node;\r\n\t\twhile (root.left != null) {\r\n\t\t\troot = root.left;\r\n\t\t}\r\n\t\treturn root.data;\r\n\t}", "public int getMin() {\r\n // get root\r\n RedBlackTree.Node<Grade> min = rbt.root;\r\n // loop to left of tree\r\n while (min.leftChild != null) {\r\n min = min.leftChild;\r\n }\r\n\r\n return min.data.getGrade();\r\n }", "public int minValue() {\n\t\treturn minValue(root);\n\t}", "public int getDepth() {\n return depth_;\n }", "public int treeDepth(TreeNode root){\n if(root == null){\n return 0;\n }\n return 1 + Math.max(treeDepth(root.left), treeDepth(root.right));\n }", "@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}", "default int nestingDepth() {\n return 0;\n }", "public int getMaxDepth() {\n return maxDepth;\n }", "public int maxDepth(TreeNode root) {\n return helper(0,root);\n }", "public void testFindMin() {\r\n assertNull(tree.findMin());\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n assertEquals(\"act\", tree.findMin());\r\n tree.remove(\"act\");\r\n assertEquals(\"apple\", tree.findMin());\r\n }", "public int getDepth() {\n return depth_;\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(1);\n root.right = new TreeNode(2);/*\n root.right.left = new TreeNode(4);\n root.right.right = new TreeNode(11);*/\n\n Solution solution = new Solution();\n int minimumDifference = solution.getMinimumDifference(root);\n System.out.println(minimumDifference);\n\n }", "public int calculateNodeDepth(Node startNode) {\n\t\tint depthCounter = 0;\n\t\t// start from zero\n\t\tif (!(startNode == this.mRoot)) {\n\t\t\twhile (startNode.getParent() != this.mRoot) {\n\t\t\t\tstartNode = startNode.getParent();\n\t\t\t\tdepthCounter++;\n\t\t\t\t// count upwards while the node's parent is not root\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t\treturn depthCounter;\n\t\t// return the count\n\t}", "public static Node leftDescendant(Node node){\n if(node.left!=null){\n return leftDescendant(node.left); // คือการ (findMin) ด้ายซ้าย\n }\n else{\n return node;}\n }", "private int minChild(int ind)\n {\n int bestChild = kthChild(ind, 1);\n int k =2;\n int pos = kthChild(ind, k);\n while ((k <= d) && (pos < heapSize)){\n if(heap[pos] < heap[bestChild])\n {\n bestChild = pos;\n }\n else {\n pos = kthChild(ind, k++);\n }\n }\n return bestChild;\n\n }", "public int getRecursionDepth() {\n return recursionDepth_;\n }", "AVLTreeNode Min() {\r\n\r\n AVLTreeNode current = root;\r\n\r\n /* loop down to find the leftmost leaf */\r\n while (current.left != null)\r\n current = current.left;\r\n\r\n return current;\r\n\r\n\r\n }", "private AvlNode<E> findMin(AvlNode<E> node){\n if(node.left == null){\n return node;\n } else {\n return findMin(node.left);\n }\n }", "public int findMinValue(Node root) {\n if(root == null) {\n return Integer.MAX_VALUE;\n }\n int output = (int)root.getData();\n int outputOnLeft = findMinValue(root.getLeftChildNode());\n int outputOnRight = findMinValue(root.getRightChildNode());\n if(outputOnLeft < output) {\n output = outputOnLeft;\n }\n if(outputOnRight < output) {\n output = outputOnRight;\n }\n return output;\n }", "public JSONObject getDepth() throws Exception;" ]
[ "0.78727674", "0.7844104", "0.757338", "0.7559504", "0.75262475", "0.75129956", "0.74787134", "0.74494374", "0.7428726", "0.73635393", "0.727556", "0.7174098", "0.7134701", "0.70635796", "0.6945985", "0.6945985", "0.69019157", "0.6896569", "0.6890048", "0.68819106", "0.6845783", "0.6801809", "0.677553", "0.67615044", "0.6751614", "0.66888666", "0.66301876", "0.64850974", "0.6463371", "0.6458921", "0.6438194", "0.6409444", "0.6381363", "0.6369845", "0.6369796", "0.6368957", "0.63527185", "0.6351304", "0.6346685", "0.6289272", "0.6288095", "0.6271299", "0.62592155", "0.6256594", "0.625525", "0.6239804", "0.62394524", "0.62361425", "0.623458", "0.622839", "0.6209652", "0.6202979", "0.619013", "0.61887735", "0.6184182", "0.61743623", "0.6158098", "0.61450225", "0.613042", "0.6128537", "0.6127409", "0.6125724", "0.6117303", "0.61158574", "0.61158574", "0.6103991", "0.610105", "0.60945964", "0.6075786", "0.6068303", "0.60649663", "0.60596985", "0.60412896", "0.601957", "0.6003783", "0.6003471", "0.5993176", "0.598699", "0.5971961", "0.59688544", "0.59675467", "0.59609437", "0.59582984", "0.5955008", "0.59489584", "0.59424233", "0.59387755", "0.593806", "0.59228265", "0.5914084", "0.59105545", "0.58722776", "0.5864404", "0.58601373", "0.5847669", "0.5838906", "0.58380115", "0.5823738", "0.5820069", "0.58161515" ]
0.765425
2
Templates and variables | Create a Query Template using the given type.
public static <T> T templateFor( Class<T> clazz ) { NullArgumentException.validateNotNull( "Template class", clazz ); if( clazz.isInterface() ) { return clazz.cast( Proxy.newProxyInstance( clazz.getClassLoader(), array( clazz ), new TemplateHandler<T>( null, null, null, null ) ) ); } else { try { T mixin = clazz.newInstance(); for( Field field : clazz.getFields() ) { if( field.getAnnotation( State.class ) != null ) { if( field.getType().equals( Property.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new PropertyReferenceHandler<>( new PropertyFunction<T>( null, null, null, null, field ) ) ) ); } else if( field.getType().equals( Association.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new AssociationReferenceHandler<>( new AssociationFunction<T>( null, null, null, field ) ) ) ); } else if( field.getType().equals( ManyAssociation.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new ManyAssociationReferenceHandler<>( new ManyAssociationFunction<T>( null, null, null, field ) ) ) ); } else if( field.getType().equals( NamedAssociation.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new NamedAssociationReferenceHandler<>( new NamedAssociationFunction<T>( null, null, null, field ) ) ) ); } } } return mixin; } catch( IllegalAccessException | IllegalArgumentException | InstantiationException | SecurityException e ) { throw new IllegalArgumentException( "Cannot use class as template", e ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "QueryType createQueryType();", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type);", "public String getQueryTemplate() {\n return queryTemplate;\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "public void setQueryType(String queryType);", "DataType getType_template();", "protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }", "public void setQueryTemplate(String template) {\n queryTemplate = template;\n resetCache();\n }", "public void createTemp(String TemplateType){\r\n ts.create(TemplateType);\r\n }", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);", "public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}", "public QueryType getType();", "public void setQueryType(String queryType) {\r\n\t\tthis._queryType = queryType;\r\n\t}", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "public TemplateEngine getTemplateEngine() {\n return queryCreator;\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "@GET(\"users/templates\")\n Call<PageResourceTemplateResource> getUserTemplates(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "TemplateParameter createTemplateParameter();", "public ODocument create(@Generic(\"T\") final Class<?> type) {\n dbProvider.get();\n return new ODocument(type.getSimpleName());\n }", "private Query getQuery(String index, String type, String query){\r\n\t\tSearchQuery esQuery = new SearchQuery();\r\n\t\tesQuery.setIndex(this.indexName);\r\n\t\t\r\n\t\tif(StringUtils.isNotEmpty(type))\r\n\t\t\tesQuery.setType(type);\r\n\t\t\r\n\t\tesQuery.setQuery(query);\r\n\t\t\r\n\t\treturn esQuery;\t\t\r\n\t}", "private String getQueryString(String searchType) {\n String queryString;\n\n if (searchType.equals(\"employeeId\")) {\n queryString = \"SELECT * FROM employees WHERE emp_id = ?\";\n } else if (searchType.equals(\"firstName\")) {\n queryString = \"SELECT * FROM employees WHERE first_name LIKE ?\";\n } else {\n queryString = \"SELECT * FROM employees WHERE last_name LIKE ?\";\n }\n\n\n return queryString;\n }", "<T> T getSingleResult(Class<T> type, Query query);", "public abstract String createQuery();", "private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }", "public TrexTemplateBuilder template() {\r\n\t\treturn new TrexTemplateBuilder(new TrexConfiguration(interpreter, parser, additionalModifications));\r\n\t}", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "PSTemplateSummary createTemplate(String name, String srcId, String siteId, PSTemplateTypeEnum type) throws PSDataServiceException;", "default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }", "QueryConstraintType createQueryConstraintType();", "public Function2<Object, TemplateOptions, String> template(String templateString);", "@SuppressWarnings(\"unchecked\")\n \tpublic <T> QueryImpl<T> createTypedQuery(EntityManagerImpl entityManager) {\n \t\tif (this.lastUsed != Long.MAX_VALUE) {\n \t\t\tthis.lastUsed = System.currentTimeMillis();\n \t\t}\n \n \t\tfinal QueryImpl<T> typedQuery = new QueryImpl<T>((BaseQuery<T>) this.q, entityManager);\n \n \t\tif (this.lockMode != null) {\n \t\t\ttypedQuery.setLockMode(this.lockMode);\n \t\t}\n \n \t\tif (this.hints != null) {\n \t\t\tfor (final Entry<String, Object> entry : this.hints.entrySet()) {\n \t\t\t\ttypedQuery.setHint(entry.getKey(), entry.getValue());\n \t\t\t}\n \t\t}\n \n \t\treturn typedQuery;\n \t}", "public Query build(Type type) throws WrapperException\r\n\t{\r\n\t\tif(type == Type.SELECT)\r\n\t\t{\r\n\t\t\tZQuery query = new ZQuery();\r\n\t\t\tquery.addFrom(froms);\r\n\t\t\tquery.addSelect(selects);\r\n\t\t\tquery.addWhere(where);\r\n\t\t\tif(!orderBys.isEmpty())\r\n\t\t\t\tquery.addOrderBy(orderBys);\r\n\t\t\t\r\n\t\t\treturn new Query(query.toString(), model);\r\n\t\t}\r\n\t\telse if(type == Type.UPDATE)\r\n\t\t{\r\n\t\t\tZUpdate update = new ZUpdate(imperativeTable.getName());\r\n\t\t\tupdate.addWhere(where);\r\n\t\t\tupdate.addSet(columnValues);\r\n\t\t\treturn new Query(update.toString(), model);\r\n\t\t}\r\n\t\telse if(type == Type.DELETE)\r\n\t\t{\r\n\t\t\tZDelete delete = new ZDelete(imperativeTable.getName());\r\n\t\t\tdelete.addWhere(where);\r\n\t\t\t\r\n\t\t\treturn new Query(delete.toString(), model);\r\n\t\t}\r\n\t\telse if(type == Type.INSERT)\r\n\t\t{\r\n\t\t\tZInsert insert = new ZInsert(imperativeTable.getName());\r\n\t\t\t\r\n\t\t\tVector<String> columns = new Vector<String>();\r\n\t\t\tZExpression values = new ZExpression(\",\");\r\n\t\t\tfor(String columnName : columnValues.keySet())\r\n\t\t\t{\r\n\t\t\t\tcolumns.addElement(columnName);\r\n\t\t\t\tvalues.addOperand(columnValues.get(columnName));\r\n\t\t\t}\r\n\t\t\tinsert.addColumns(columns);\r\n\t\t\tinsert.addValueSpec(values);\r\n\t\t\t\t\t\t\r\n\t\t\treturn new Query(insert.toString(), model);\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "Query createQuery(final String query);", "public String getQueryType();", "public String getQueryType();", "@SuppressWarnings(\"unchecked\")\n\tprotected <T extends BaseEntity> TypedQuery<T> createQuery(\n\t\t\tMap<String, Boolean> sort, List<Filter> filters) {\n\t\tgetQueryParam().setOrderBy(sort);\n\n\t\taddFilters(filters);\n\n\t\tString jpql = queryParam.createSearchJPQL();\n\t\tTypedQuery<T> query = (TypedQuery<T>) getEntityManager().createQuery(jpql,\n\t\t\t\tgetEntityClass());\n\t\tqueryParam.updateParameter(query);\n\t\treturn query;\n\t}", "CampusSearchQuery generateQuery();", "StringTemplate createStringTemplate();", "SearchResultsType createSearchResultsType();", "String getTemplate();", "protected <T extends BaseEntity> TypedQuery<T> createQuery(\n\t\t\tMap<String, Boolean> sort, Map<String, Object> filters) {\n\t\tList<Filter> listFilters = getQueryParam().createListFiltersFromMap(filters);\n//\t\tlistFilters.addAll(createListFilterForJoinFields());\n//\t\tgetQueryParam().addJoinFilters(joinFields);\t\t\n\n\t\treturn createQuery(sort, listFilters);\n\t}", "TemplatePreview generateTemplatePreview(String templateId, Map<String, String> personalisation) throws NotificationClientException;", "TemperatureQuery createTemperatureQuery();", "public abstract List createQuery(String query);", "SelectQuery createSelectQuery();", "List<PSTemplateSummary> findBaseTemplates(String type);", "private String createSelectQuery(String field) {\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 \" + field + \" =?\");\n\t\treturn sb.toString();\n\t}", "<T> List<T> getResultList(Class<T> type, Query query);", "GridType createGridType();", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "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}", "String template();", "public abstract DatabaseQuery createDatabaseQuery(ParseTreeContext context);", "public interface CampusSearchQueryGenerator<T extends CampusObject> {\n\n /**\n * generates search query using specifications given by user\n * @return CampusSearchQuery object\n */\n CampusSearchQuery generateQuery();\n}", "private String createSelectQuery(String field)\n {\n StringBuilder sb = new StringBuilder();\n sb.append(\"SELECT \");\n sb.append(\" * \");\n sb.append(\" FROM \");\n sb.append(type.getSimpleName());\n sb.append(\" WHERE \");\n sb.append(field);\n sb.append(\" =?\");\n return sb.toString();\n }", "TemplateList getAllTemplates(String templateType) throws NotificationClientException;", "Expression compileTemplate(Expression exp){\r\n\t\tif (exp.isVariable()){\r\n\t\t\texp = compile(exp.getVariable());\r\n\t\t}\r\n\t\telse if (isMeta(exp)){\r\n\t\t\t// variables of meta functions are compiled as kg:pprint()\r\n\t\t\t// variable of xsd:string() is not\r\n\t\t\texp = compileTemplateMeta((Term) exp);\r\n\t\t}\r\n\t\treturn exp;\r\n\t}", "java.lang.String getTemplateId();", "public String getQueryType() {\r\n\t\treturn this._queryType;\r\n\t}", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public QueryExecution createQueryExecution(Query qry);", "private Response findTemplates(Request request) throws IOException {\n String query = \"select * from per:Page where jcr:path like '/content/%/templates%'\";\n return findAndOutputToWriterAsJSON(request, query);\n }", "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}", "@GET(\"users/templates/{id}\")\n Call<TemplateResource> getUserTemplate(\n @retrofit2.http.Path(\"id\") String id\n );", "@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}", "public Template(String id, String userID, List<Question> questions) {\n this.id = id;\n this.userID = userID;\n this.questions = questions;\n }", "public TemplateEffect(Template variable, Template value, EffectType type){\n\t\tthis(variable,value,type, 1);\n\t}", "public interface TypeFactory {\n int type(Meizi m);\n\n int type(String string);\n\n BaseViewHolder creatViewHolder(int viewType, View view);\n}", "<T> Mono<ExecutableQuery<T>> toExecutableQuery(Class<T> domainType,\n\t\t\t\t\t\t\t\t\t\t\t\t QueryFragmentsAndParameters queryFragmentsAndParameters);", "public ViewObjectImpl getDcmCatTemplateQueryView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmCatTemplateQueryView\");\r\n }", "@Override\n\tpublic <T> TypedQuery<T> createNamedQuery(String name, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "public String makeQuery(String searchTerms) {\n\t\tfinal StringBuffer query = new StringBuffer();\n\t\tfinal Matcher m = Pattern.compile(\"\\\\{([^}]*)\\\\}\").matcher(Template);\n\t\twhile (m.find()) {\n\t\t\tString name = m.group(1);\n\t\t\tif (name == null || name.length() == 0 || name.contains(\":\")) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tfinal boolean optional = name.endsWith(\"?\");\n\t\t\tif (optional) {\n\t\t\t\tname = name.substring(0, name.length() - 1);\n\t\t\t}\n\t\t\tname = name.intern();\n\t\t\tif (name == \"searchTerms\") {\n\t\t\t\tm.appendReplacement(query, searchTerms);\n\t\t\t} else if (name == \"count\") {\n\t\t\t\tm.appendReplacement(query, String.valueOf(ItemsPerPage));\n\t\t\t} else if (optional) {\n\t\t\t\tm.appendReplacement(query, \"\");\n\t\t\t} else if (name == \"startIndex\") {\n\t\t\t\tif (IndexOffset > 0) {\n\t\t\t\t\tm.appendReplacement(query, String.valueOf(IndexOffset));\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else if (name == \"startPage\") {\n\t\t\t\tif (PageOffset > 0) {\n\t\t\t\t\tm.appendReplacement(query, String.valueOf(PageOffset));\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else if (name == \"language\") {\n\t\t\t\tm.appendReplacement(query, \"*\");\n\t\t\t} else if (name == \"inputEncoding\" || name == \"outputEncoding\") {\n\t\t\t\tm.appendReplacement(query, \"UTF-8\");\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tm.appendTail(query);\n\t\treturn query.toString();\n\t}", "@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}", "private Template() {\r\n\r\n }", "BoundQuery<?,Ttuple> getAll(Type<?> type) \n throws DataException;", "public Template getTemplate(Website website, String context, boolean is_list) throws TemplateNotFoundException, StorageException{\n\t\t\n\t\tSet<Map<String, String>> results = new LinkedHashSet<>();\n\t\tString template_type;\n\t\t\n\t\tif(is_list) {\n\t\t\ttemplate_type = \"list_templates\";\n\t\t} else {\n\t\t\ttemplate_type = \"article_templates\";\n\t\t}\n\t\t\n\t\tresults = storage.get(template_type, \"(fk_website = '\"+website.getId()+\"' AND context ='\"+context+\"')\");\n\t\t\n\t\tif (results==null || results.isEmpty()){\n\t\t\tthrow new TemplateNotFoundException();\n\t\t}\n\t\t\n\t\tTemplate template;\n\t\tIterator<Map<String, String>> iter = results.iterator();\n\t\tif(is_list) {\n\t\t\ttemplate = new ArticleListTemplate((Map<String, String>) iter.next());\n\t\t} else {\n\t\t\ttemplate = new ArticleTemplate((Map<String, String>) iter.next());\n\t\t}\n\t\t\t\t\n\t\treturn template;\n\t\t\n\t}", "private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}", "com.google.dataflow.v1beta3.GetTemplateResponse.TemplateType getTemplateType();", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "T getQueryInfo();", "public interface PublicationTemplate {\r\n \r\n /**\r\n * Returns the RecordTemplate of the publication data item.\r\n */\r\n public RecordTemplate getRecordTemplate() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the RecordSet of all the records built from this template.\r\n */\r\n public RecordSet getRecordSet() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to create and update the records built from this template.\r\n */\r\n public Form getUpdateForm() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to view the records built from this template.\r\n */\r\n public Form getViewForm() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to search the records built from this template.\r\n */\r\n public Form getSearchForm() throws PublicationTemplateException;\r\n \r\n public void setExternalId(String externalId);\r\n \r\n public Form getEditForm(String name) throws PublicationTemplateException;\r\n \r\n public String getExternalId();\r\n \r\n public String getName();\r\n \r\n public String getDescription();\r\n \r\n public String getThumbnail();\r\n \r\n public String getFileName();\r\n \r\n public boolean isVisible();\r\n \r\n public boolean isSearchable();\r\n }", "InsertType createInsertType();", "private IdentifiedRecordTemplate selectTemplateRow(Connection con,\n String externalId) throws SQLException {\n PreparedStatement select = null;\n ResultSet rs = null;\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE);\n select.setString(1, externalId);\n rs = select.executeQuery();\n \n if (!rs.next()) {\n return null;\n }\n int internalId = rs.getInt(1);\n String templateName = rs.getString(3);\n \n IdentifiedRecordTemplate template = new IdentifiedRecordTemplate(\n new GenericRecordTemplate());\n template.setInternalId(internalId);\n template.setExternalId(externalId);\n template.setTemplateName(templateName);\n return template;\n } finally {\n DBUtil.close(rs, select);\n }\n }", "protected BatchQuery(BatchContext context, Class<E> type, List<Tuple<Operator, String>> filters) {\n this.context = context;\n this.type = type;\n this.filters = Collections.unmodifiableList(filters);\n }", "private Node getTemplateIdForSatisfies(XmlProcessor hqmfXmlProcessor, String type) {\n\t\tNode templateIdNode = null;\n\n\t\tif (SATISFIES_ALL.equalsIgnoreCase(type) || SATISFIES_ANY.equalsIgnoreCase(type)) {\n\t\t\ttemplateIdNode = hqmfXmlProcessor.getOriginalDoc().createElement(TEMPLATE_ID);\n\t\t\tElement itemNode = hqmfXmlProcessor.getOriginalDoc().createElement(ITEM);\n\n\t\t\t// initialize rootOID with the OID for SATISFIES ALL\n\t\t\tString rootOID = \"2.16.840.1.113883.10.20.28.3.109\";\n\t\t\t// if we are dealing with SATISFIES ANY change the OID\n\t\t\tif (SATISFIES_ANY.equalsIgnoreCase(type)) {\n\t\t\t\trootOID = \"2.16.840.1.113883.10.20.28.3.108\";\n\t\t\t}\n\t\t\titemNode.setAttribute(ROOT, rootOID);\n\n\t\t\ttemplateIdNode.appendChild(itemNode);\n\t\t}\n\n\t\treturn templateIdNode;\n\t}", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "public QueryExecution createQueryExecution(String qryStr);", "public void setQtypename(java.lang.CharSequence value) {\n this.qtypename = value;\n }", "protected String createInsert(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"INSERT INTO \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" VALUES \");\n\t\treturn sb.toString();\n\t}", "public interface QueryExecutor {\n \n /**\n * Execute query that has neither request nor response\n *\n * @param noParamQuery query as velocity template string, it may depend on database type or other context parameters\n * @param conn connection to execute query\n */\n void executeUpdate(String noParamQuery, Connection conn);\n \n /**\n * Execute query that has no response parameters\n *\n * @param reqQuery query as velocity template string\n * @param req request query parameters\n * @param conn connection to execute query\n * @param <T> type of request\n */\n <T extends BaseDto> void executeUpdate(String reqQuery, T req, Connection conn);\n \n /**\n * Execute query that has no request parameters\n *\n * @param resQuery query as velocity template string\n * @param transformer transformer for query result\n * @param conn connection to execute query\n * @param <T> type of result\n * @return list of query results\n */\n <T extends BaseDto> List<T> executeQuery(String resQuery, QueryResultTransformer<T> transformer, Connection conn);\n \n /**\n * Execute query that has request and response\n *\n * @param reqResQuery query as velocity template string\n * @param req request query parameters\n * @param transformer transformer for query result\n * @param conn connection to execute query\n * @param <T> type of result\n * @param <V> type of request\n *\n * @return list of query results\n */\n <T extends BaseDto, V extends BaseDto> List<T> executeQuery(String reqResQuery, V req, QueryResultTransformer<T> transformer, Connection conn);\n \n /**\n * Query runner\n *\n * @return instance of query runner\n */\n default QueryRunner getQueryRunner() {\n return new QueryRunner();\n }\n\n}", "@Test\n public void templateTest() throws ApiException {\n Long clientId = null;\n Long productId = null;\n String templateType = null;\n GetSelfLoansTemplateResponse response = api.template(clientId, productId, templateType);\n\n // TODO: test validations\n }", "@NonNull\r\n @Override\r\n public Holder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\r\n View view = LayoutInflater.from(context).inflate(R.layout.earthquake_filter, parent, false);\r\n return new Holder(view);\r\n }", "public static <T> RuntimeSchema<T> createFrom(Class<T> typeClass)\r\n {\r\n return createFrom(typeClass, NO_EXCLUSIONS);\r\n }", "static TypeReference<PagedQueryResult<JsonNode>> resultTypeReference() {\n return new TypeReference<PagedQueryResult<JsonNode>>() {\n @Override\n public String toString() {\n return \"TypeReference<PagedQueryResult<JsonNode>>\";\n }\n };\n }", "public static <T extends Object> T getPageInstance(Class<T> type, String template, Agent agent)\n throws Exception {\n String className = String.format(template, type.getSimpleName());\n @SuppressWarnings(\"rawtypes\")\n Class cls = Class.forName(className);\n @SuppressWarnings(\"unchecked\")\n Constructor<T> constructor = cls.getConstructor(Agent.class);\n Object pageImpl = constructor.newInstance(agent);\n return type.cast(pageImpl);\n }", "public Query createQuery(String hql, Object... params) ;", "public QueryWiki(String titlepageid, TipoRicerca tipoRicerca, TipoRequest tipoRequest) {\n this.tipoRicerca = tipoRicerca;\n super.tipoRequest = tipoRequest;\n this.doInit(titlepageid);\n }" ]
[ "0.6681692", "0.6044264", "0.5972317", "0.5853862", "0.5826426", "0.5793232", "0.5750803", "0.5726893", "0.5665554", "0.56500643", "0.5571833", "0.5522939", "0.5512321", "0.538261", "0.53672016", "0.5362076", "0.53057563", "0.5302034", "0.52427644", "0.52394503", "0.5189999", "0.5180345", "0.5132545", "0.5120125", "0.51106435", "0.5095055", "0.5021287", "0.4996967", "0.49815777", "0.49738833", "0.49407262", "0.491797", "0.48964667", "0.48761302", "0.48761302", "0.48719645", "0.48640728", "0.48637056", "0.48583752", "0.48565158", "0.482276", "0.47930616", "0.47830555", "0.47819778", "0.4780944", "0.47742736", "0.47674987", "0.4760542", "0.47544864", "0.47541106", "0.4731697", "0.47312567", "0.4716363", "0.47075117", "0.47049147", "0.46849814", "0.4671035", "0.46690428", "0.46613792", "0.46570796", "0.46470898", "0.46434706", "0.46413362", "0.46412522", "0.46405733", "0.4638125", "0.46024698", "0.46023014", "0.45950642", "0.4593446", "0.45914388", "0.4573756", "0.45639136", "0.45532727", "0.45408008", "0.45293012", "0.45292354", "0.4526955", "0.45185465", "0.45156848", "0.45129326", "0.45101082", "0.4508799", "0.45082343", "0.45021337", "0.4501721", "0.44998294", "0.44959626", "0.44905514", "0.44653004", "0.44626692", "0.44533774", "0.44523206", "0.44522023", "0.44427076", "0.44335932", "0.44322866", "0.44266328", "0.44260445", "0.44247144", "0.4424341" ]
0.0
-1
Create a Query Template using the given mixin class and association.
public static <T> T templateFor( final Class<T> mixinType, Association<?> association ) { NullArgumentException.validateNotNull( "Mixin class", mixinType ); NullArgumentException.validateNotNull( "Association", association ); return mixinType.cast( Proxy.newProxyInstance( mixinType.getClassLoader(), array( mixinType ), new TemplateHandler<T>( null, association( association ), null, null ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T templateFor( Class<T> clazz )\n {\n NullArgumentException.validateNotNull( \"Template class\", clazz );\n\n if( clazz.isInterface() )\n {\n return clazz.cast( Proxy.newProxyInstance( clazz.getClassLoader(),\n array( clazz ),\n new TemplateHandler<T>( null, null, null, null ) ) );\n }\n else\n {\n try\n {\n T mixin = clazz.newInstance();\n for( Field field : clazz.getFields() )\n {\n if( field.getAnnotation( State.class ) != null )\n {\n if( field.getType().equals( Property.class ) )\n {\n field.set( mixin,\n Proxy.newProxyInstance( field.getType().getClassLoader(),\n array( field.getType() ),\n new PropertyReferenceHandler<>( new PropertyFunction<T>( null, null, null, null, field ) ) ) );\n }\n else if( field.getType().equals( Association.class ) )\n {\n field.set( mixin,\n Proxy.newProxyInstance( field.getType().getClassLoader(),\n array( field.getType() ),\n new AssociationReferenceHandler<>( new AssociationFunction<T>( null, null, null, field ) ) ) );\n }\n else if( field.getType().equals( ManyAssociation.class ) )\n {\n field.set( mixin,\n Proxy.newProxyInstance( field.getType().getClassLoader(),\n array( field.getType() ),\n new ManyAssociationReferenceHandler<>( new ManyAssociationFunction<T>( null, null, null, field ) ) ) );\n }\n else if( field.getType().equals( NamedAssociation.class ) )\n {\n field.set( mixin,\n Proxy.newProxyInstance( field.getType().getClassLoader(),\n array( field.getType() ),\n new NamedAssociationReferenceHandler<>( new NamedAssociationFunction<T>( null, null, null, field ) ) ) );\n }\n }\n }\n return mixin;\n }\n catch( IllegalAccessException | IllegalArgumentException | InstantiationException | SecurityException e )\n {\n throw new IllegalArgumentException( \"Cannot use class as template\", e );\n }\n }\n }", "protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }", "public interface CampusSearchQueryGenerator<T extends CampusObject> {\n\n /**\n * generates search query using specifications given by user\n * @return CampusSearchQuery object\n */\n CampusSearchQuery generateQuery();\n}", "public String getQueryTemplate() {\n return queryTemplate;\n }", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}", "PivotForClause createPivotForClause();", "QueryType createQueryType();", "@Override\n public void constructQuery() {\n try {\n super.constructQuery();\n sqlQueryBuilder.append(Constants.QUERY_SELECT);\n appendColumnName();\n appendPrimaryTableName();\n appendConditions(getJoinType());\n appendClause(joinQueryInputs.clauses, true);\n sqlQueryBuilder.append(Constants.SEMI_COLON);\n queryDisplayListener.displayConstructedQuery(sqlQueryBuilder.toString());\n } catch (NoSuchClauseFoundException noSuchClauseFoundException) {\n queryDisplayListener.showException(noSuchClauseFoundException.getExceptionMessage());\n }\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "boolean isQueryable( Name primaryType, Set<Name> mixinTypes );", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public TemplateEngine getTemplateEngine() {\n return queryCreator;\n }", "public interface Template {\n\n}", "SelectQuery createSelectQuery();", "GroupQuery createQuery();", "public interface ModuleMapper extends CrudTemplate<Module> {\n}", "public void setQueryTemplate(String template) {\n queryTemplate = template;\n resetCache();\n }", "public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}", "IncludeType createIncludeType();", "CampusSearchQuery generateQuery();", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public interface GroupsDataSource extends DbDataSource<Group> {\n}", "PivotInClause createPivotInClause();", "public interface CustomConstruct extends AgnosticStatement, QueryCondition {\n}", "public interface FacilitiesViewModel extends TemplateModel {\n\n /**\n * Gets user input from corresponding template page.\n *\n * @return user input string\n */\n String getUserInput();\n\n /**\n * Sets greeting that is displayed in corresponding template page.\n *\n * @param greeting\n * greeting string\n */\n void setGreeting(String greeting);\n\n @Include({ \"name\", \"description\" })\n void setFacilitiesList(List<Facility> facilitiesList);\n\n List<Facility> getFacilitiesList();\n\n}", "protected void createSubQueryJoinTableAggregation() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Person -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Team -->\r\n createSelectClauseAggregation(subQuery, queryJoinTable, left);\r\n final Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, parentQuery.jpaEntity);\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n handleAggregation(subQuery, queryJoinTable, right);\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n }", "public void createQueryProcessor() throws IOException {\n\t\tfor(int i=0; i<=payload.getnumber_of_grouping_variables();i++) {\n\t\t\tlistMapsAggregates.add(new HashMap<String, String>());\n\t\t}\n\t\tfor(int i=0;i<payload.getnumber_of_aggregate_functions();i++) {\n\t\t\tString[] temp = payload.getaggregate_functions().get(i).split(\"_\",3);\n\t\t\tlistMapsAggregates.get(Integer.parseInt(temp[0])).put(temp[1], temp[2]);//(key,value) -> (aggregate function , column name)\n\t\t}\n\t\tStringBuilder fileData = new StringBuilder();\n\t\tfileData.append(\"package dbmsProject;\\r\\n\\r\\n\" + \n\t\t\t\t\"import java.io.FileOutputStream;\\r\\n\" + \n\t\t\t\t\"import java.io.IOException;\\r\\n\" + \n\t\t\t\t\"import java.text.DateFormat;\\r\\n\" + \n\t\t\t\t\"import java.text.DecimalFormat;\\r\\n\" + \n\t\t\t\t\"import java.text.SimpleDateFormat;\\r\\n\" + \n\t\t\t\t\"import java.util.ArrayList;\\r\\n\" + \n\t\t\t\t\"import java.util.Calendar;\\r\\n\" + \n\t\t\t\t\"import java.util.HashMap;\\r\\n\");\n\t\tfileData.append(\"\\r\\npublic class QueryProcessor{\\n\");\n\t\tfileData.append(\"\tprivate SalesTable salesTable;\\n\");\n\t\tfileData.append(\"\tprivate ExpTree expTree;\\n\");\n\t\tfileData.append(\"\tprivate Payload payload;\\n\");\n\t\tfileData.append(\"\tprivate Helper helper;\\n\");\n\t\tfileData.append(\"\tprivate ArrayList<HashMap<String,String>> listMapsAggregates;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate HashMap<String, Double> aggregatesMap;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<HashMap<String, ArrayList<InputRow>>> allGroups;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<ArrayList<String>> allGroupKeyStrings;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<ArrayList<InputRow>> allGroupKeyRows;\\n\");\n\t\tfileData.append(\"\\r\\n\tpublic QueryProcessor(SalesTable salesTable, Payload payload){\\n\");\n\t\tfileData.append(\"\t\tthis.aggregatesMap = new HashMap<String, Double>();\\n\");\n\t\tfileData.append(\"\t\tthis.salesTable=salesTable;\\n\");\n\t\tfileData.append(\"\t\tthis.payload=payload;\\n\");\n\t\tfileData.append(\"\t\tthis.expTree=new ExpTree();\\n\");\n\t\tfileData.append(\"\t\tthis.helper=new Helper();\\n\"\n\t\t\t\t\t\t+ \"\t\tthis.allGroupKeyRows = new ArrayList<ArrayList<InputRow>>();\\r\\n\" + \n\t\t\t\t\t\t\"\t\tthis.allGroupKeyStrings = new ArrayList<ArrayList<String>>();\\r\\n\" + \n\t\t\t\t\t\t\"\t\tthis.listMapsAggregates = new ArrayList<HashMap<String,String>>();\\r\\n\"\t+\n\t\t\t\t\t\t\"\t\tthis.allGroups = new ArrayList<HashMap<String, ArrayList<InputRow>>>();\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<InputRow> createInputSet(){\\n\");\n\t\tfileData.append(\"\t\tArrayList<InputRow> inputResultSet = new ArrayList<InputRow>();\\n\");\n\t\tfileData.append(\"\t\tfor(SalesTableRow row: salesTable.getResultSet()) {\\n\");\n\t\tfileData.append(\"\t\t\tInputRow ir=new InputRow();\\n\");\n\t\tfor(String var: this.projectionVars) {\n\t\t\tfileData.append(\"\t\t\tir.set\"+varPrefix+var+\"(row.get\"+var+\"());\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t\tinputResultSet.add(ir);\\n\");\n\t\tfileData.append(\"\t\t}\\n\");\n\t\tfileData.append(\"\t\treturn inputResultSet;\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//OUTPUT ROW CREATION LOGIC\n\t\tfileData.append(\"\\r\\n\tpublic OutputRow convertInputToOutputRow(InputRow inputRow, String str, ArrayList<String> strList){\\n\");\n\t\tfileData.append(\"\t\tString temp=\\\"\\\";\\n\");\n\t\tfileData.append(\"\t\tOutputRow outputRow = new OutputRow();\\n\");\n\t\tfor(String select: payload.getselect_variables()) {\n\t\t\tif(helper.columnMapping.containsKey(select)) {\n\t\t\t\tfileData.append(\"\t\toutputRow.set\"+varPrefix+select+\"(inputRow.get\"+varPrefix+select+\"());\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString temp=select;\n\t\t\t\tif(select.contains(\"/\")) select=select.replaceAll(\"/\", \"_divide_\");\n\t\t\t\tif(select.contains(\"*\")) select=select.replaceAll(\"*\", \"_multiply_\");\n\t\t\t\tif(select.contains(\"+\")) select=select.replaceAll(\"+\", \"_add_\");\n\t\t\t\tif(select.contains(\"-\")) select=select.replaceAll(\"-\", \"_minus_\");\n\t\t\t\tif(select.contains(\")\")) select=select.replaceAll(\"[)]+\", \"\");\n\t\t\t\tif(select.contains(\"(\")) select=select.replaceAll(\"[(]+\", \"\");\n\t\t\t\tfileData.append(\"\t\ttemp = prepareClause(inputRow, inputRow, \\\"\"+temp+\"\\\", str, strList);\\n\");\n\t\t\t\tfileData.append(\"\t\tif(temp.contains(\\\"(\\\")) temp = expTree.execute(temp);\\r\\n\");\n\t\t\t\tfileData.append(\"\t\tif(temp.equals(\\\"discard_invalid_entry\\\")) return null;\\n\");\n\t\t\t\tfileData.append(\"\t\toutputRow.set\"+varPrefix+select+\"(Double.parseDouble(temp));\\n\");\n\t\t\t}\n\t\t}\n\t\tfileData.append(\"\t\treturn outputRow;\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//WHERE CLAUSE EXECUTOR\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<InputRow> executeWhereClause(ArrayList<InputRow> inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\tint i=0;\\r\\n\" + \n\t\t\t\t\"\t\twhile(i<inputResultSet.size()) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString condition=prepareClause(inputResultSet.get(i), inputResultSet.get(i), payload.getWhereClause(), \\\"\\\", new ArrayList<String>());\\r\\n\" + \n\t\t\t\t\"\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))){\\r\\n\" + \n\t\t\t\t\"\t\t\t\tinputResultSet.remove(i);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tcontinue;\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\ti++;\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\treturn inputResultSet;\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\n//REFINE CLAUSE FOR PROCESSING\n\t\tfileData.append(\"\\r\\n\tpublic String prepareClause(InputRow row, InputRow rowZero, String condition, String str, ArrayList<String> strList) {\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<strList.size();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tif(condition.contains(i+\\\"_\\\")) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tboolean flag=false;\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String ag : payload.getaggregate_functions()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(!ag.contains(i+\\\"\\\")) continue;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(condition.contains(ag)) flag=true;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tcondition=condition.replaceAll(ag, ag+\\\"_\\\"+strList.get(i));\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(flag) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tboolean changeFlag=false;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tfor(String key : aggregatesMap.keySet()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tif(condition.contains(key)) changeFlag=true;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tcondition = condition.replaceAll(key, Double.toString(aggregatesMap.get(key)));\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(!changeFlag) return \\\"discard_invalid_entry\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tif(condition.contains(\\\".\\\")) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0 || helper.columnMapping.get(var)==1 || helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\t\tcondition=condition.replaceAll(\\\"[0-9]+\\\\\\\\.\"+var+\"\\\", row.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\t\tcondition=condition.replaceAll(\\\"[0-9]+\\\\\\\\.\"+var+\"\\\", Integer.toString(row.get\"+varPrefix+var+\"()));\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t}\\n\");\n\t\t\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0 || helper.columnMapping.get(var)==1 || helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\tcondition=condition.replaceAll(\\\"\"+var+\"\\\", rowZero.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\tcondition=condition.replaceAll(\\\"\"+var+\"\\\", Integer.toString(rowZero.get\"+varPrefix+var+\"()));\\r\\n\");\n\t\t}\n\t\t\n\t\tfileData.append(\n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\\\\\s+\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\\\\"\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\'\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\treturn condition;\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\n//CREATE GROUPS\t\t\n\t\tfileData.append(\"\\r\\n\tpublic void createListsBasedOnSuchThatPredicate(ArrayList<InputRow> inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<String> groupKeyStrings = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<InputRow> groupKeyRows = new ArrayList<InputRow>();\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(InputRow row : inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tStringBuilder temp=new StringBuilder();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tInputRow groupRow = new InputRow();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String group: payload.getGroupingAttributesOfAllGroups().get(i)) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tint col = helper.columnMapping.get(group);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tswitch(col) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tfileData.append(\"\t\t\t\t\t\tcase \"+helper.columnMapping.get(var)+\":\"+\"{temp.append(row.get\"+varPrefix+var+\"()+\\\"_\\\"); groupRow.set\"+varPrefix+ var+ \"(row.get\"+varPrefix+var+\"()); break;}\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t\t\t\t}\\n\"+\n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString s=temp.toString();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(s.charAt(s.length()-1)=='_') s=s.substring(0, s.length()-1);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif( !groupKeyStrings.contains(s) ) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tgroupKeyStrings.add(s);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tgroupKeyRows.add(groupRow);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroupKeyRows.add(groupKeyRows);\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroupKeyStrings.add(groupKeyStrings);\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tHashMap<String, ArrayList<InputRow>> res = new HashMap<String, ArrayList<InputRow>>();\\r\\n\" + \n\t\t\t\t\"\t\t\tString suchThat = payload.getsuch_that_predicates().get(i);\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int j=0;j<allGroupKeyRows.get(i).size();j++) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tInputRow zeroRow = allGroupKeyRows.get(i).get(j);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tArrayList<InputRow> groupMember = new ArrayList<InputRow>();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(InputRow salesRow : inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tString condition = prepareClause(salesRow, zeroRow, suchThat, \\\"\\\", new ArrayList<String>());\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(Boolean.parseBoolean(expTree.execute(condition))) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tgroupMember.add(salesRow);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tres.put(allGroupKeyStrings.get(i).get(j), new ArrayList<InputRow>(groupMember));\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroups.add(new HashMap<String, ArrayList<InputRow>>(res));\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\t\t\n//GETGROUPING VARIABLE METHOD\n\t\tfileData.append(\"\\r\\n\tpublic String getGroupingVariable(int i, InputRow row) {\\r\\n\" + \n\t\t\t\t\"\t\tswitch(i) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0||helper.columnMapping.get(var)==1||helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return row.get\"+varPrefix+var+\"();\\r\\n\");\n\t\t\telse if(helper.columnMapping.get(var)==7)\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return \\\"all\\\"\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return Integer.toString(row.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\tfileData.append(\"\t\treturn \\\"__Garbage__\\\";\\r\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//COMPUTE AGGREGATES METHOD\n\t\tfileData.append(\"\\r\\n\tpublic void computeAggregates(ArrayList<InputRow> inputResultSet) {\t\\r\\n\" + \n\t\t\t\t\"\t\tdouble val=0;\\r\\n\"+\n\t\t\t\t\"\t\tfor(int i=0; i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tlistMapsAggregates.add(new HashMap<String, String>());\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<payload.getnumber_of_aggregate_functions();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString[] temp = payload.getaggregate_functions().get(i).split(\\\"_\\\",3);\\r\\n\" + \n\t\t\t\t\"\t\t\tlistMapsAggregates.get(Integer.parseInt(temp[0])).put(temp[1], temp[2]);//(key,value) -> (aggregate function , column name)\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\"+\n\t\t\t\t\"\t\tint nGroupingVariables=0;\\r\\n\"+\n\t\t\t\t\"\t\taggregatesMap = new HashMap<>();\\r\\n\"+\n\t\t\t\t\"\t\tHashMap<String,Double> tempAggregatesMap;\\r\\n\");\n\t\t\n\t\tfor(int nGroupingVariables=0;nGroupingVariables<=payload.getnumber_of_grouping_variables();nGroupingVariables++) {\n\t\t\tfileData.append(\"\\n\t\tnGroupingVariables=\"+nGroupingVariables+\";\\r\\n\");\n\t\t\tfileData.append(\n\t\t\t\t\t\t\t\"\t\ttempAggregatesMap = new HashMap<String,Double>();\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\tfor(int i=0;i<allGroupKeyRows.get(nGroupingVariables).size(); i++) {\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\tInputRow zeroRow = allGroupKeyRows.get(nGroupingVariables).get(i);\\r\\n\" );\n\t\t\t\n\t\t\t//MFvsEMF\n\t\t\tif(isGroupMF(nGroupingVariables)) fileData.append(\"\t\t\tfor(InputRow row: allGroups.get(nGroupingVariables).get(allGroupKeyStrings.get(nGroupingVariables).get(i)))\t{\\r\\n\");\n\t\t\telse fileData.append(\"\t\t\tfor(InputRow row: inputResultSet) {\\r\\n\");\n\t\t\t\n\t\t\tfileData.append(\"\t\t\t\tString condition = payload.getsuch_that_predicates().get(nGroupingVariables);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tString str = allGroupKeyStrings.get(nGroupingVariables).get(i);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tArrayList<String> strList = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tfor(int j=0;j<=payload.getnumber_of_grouping_variables();j++) strList.add(str);\\r\\n\" +\n\t\t\t\t\t\t\t\"\t\t\t\tcondition= prepareClause(row, zeroRow, condition, str, strList);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))) continue;\\r\\n\"\n\t\t\t\t\t\t\t);\n\t\t\tString key1 = nGroupingVariables+\"_sum_\"+listMapsAggregates.get(nGroupingVariables).get(\"sum\");\n\t\t\tString key2 = nGroupingVariables+\"_avg_\"+listMapsAggregates.get(nGroupingVariables).get(\"avg\");\n\t\t\tString key3 = nGroupingVariables+\"_min_\"+listMapsAggregates.get(nGroupingVariables).get(\"min\");\n\t\t\tString key4 = nGroupingVariables+\"_max_\"+listMapsAggregates.get(nGroupingVariables).get(\"max\");\n\t\t\tString key5 = nGroupingVariables+\"_count_\"+listMapsAggregates.get(nGroupingVariables).get(\"count\");\n\t\t\tString key6 = nGroupingVariables+\"_count_\"+listMapsAggregates.get(nGroupingVariables).get(\"avg\");\n\t\t\t\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) \n\t\t\t\tfileData.append(\"\t\t\t\tString key1=\\\"\"+key1+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\t\tString key2=\\\"\"+key2+\"\\\";\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\t\tString key6=\\\"\"+key6+\"\\\";\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key3=\\\"\"+key3+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key4=\\\"\"+key4+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key5=\\\"\"+key5+\"\\\";\\r\\n\");\n\t\t\t\n\t\t\tfileData.append(\"\t\t\t\tfor(String ga: payload.getGroupingAttributesOfAllGroups().get(nGroupingVariables)) {\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) \n\t\t\t\tfileData.append(\"\t\t\t\t\tkey1=key1+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey2=key2+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey6=key6+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey3=key3+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey4=key4+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey5=key5+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tfileData.append(\"\t\t\t\t}\\r\\n\");\n\t\t\t\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=tempAggregatesMap.getOrDefault(key1, 0.0)+Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"sum\\\")), row));\\r\\n\" + \n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key1, val);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=tempAggregatesMap.getOrDefault(key2, 0.0)+Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"avg\\\")), row));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key2, val);\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key6, tempAggregatesMap.getOrDefault(key6, 0.0)+1);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=Math.min( tempAggregatesMap.getOrDefault(key3, Double.MAX_VALUE) , Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"min\\\")), row)));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key3, val);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=Math.max( tempAggregatesMap.getOrDefault(key4, Double.MIN_VALUE) , Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"max\\\")), row)));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key4, val);\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\")) {\n\t\t\t\tfileData.append(\"\t\t\ttempAggregatesMap.put(key5, tempAggregatesMap.getOrDefault(key5, 0.0)+1);\\r\\n\");\n\t\t\t}\n\t\t\tfileData.append(\"\t\t\t}\\r\\n\");\n\t\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\n\t\t\t\t\"\t\tfor(String key: tempAggregatesMap.keySet()) {\\r\\n\"+\n\t\t\t\t\"\t\t\tif(key.contains(\\\"_avg_\\\"))\\r\\n\"+\n\t\t\t\t\"\t\t\t\ttempAggregatesMap.put(key, tempAggregatesMap.get(key)/tempAggregatesMap.get(key.replace(\\\"_avg_\\\", \\\"_count_\\\")));\\r\\n\"+\n\t\t\t\t\"\t\t}\\r\\n\");\n\t\t\t}\n\t\t\tfileData.append(\"\t\taggregatesMap.putAll(tempAggregatesMap);\\r\\n\");\n\t\t}\n\t\t\n\t\tfileData.append(\"\t}\\n\");\n\n//PREPARE THE RESULTS AND ADD THEM TO A LIST OF OUTPUTROW\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<OutputRow> createOutputResultSet() {\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<OutputRow> outputRowList = new ArrayList<OutputRow>();\\r\\n\"+\n\t\t\t\t\"\t\tfor(int i=0; i<allGroupKeyRows.get(0).size();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString str=allGroupKeyStrings.get(0).get(i);\\r\\n\" + \n\t\t\t\t\"\t\t\tString[] tempStr = str.split(\\\"_\\\");\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<String> strList = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int j=0; j<=payload.getnumber_of_grouping_variables(); j++) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString ss = \\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\tint k=0;\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String gz: payload.getgrouping_attributes()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(payload.getGroupingAttributesOfAllGroups().get(j).contains(gz)) ss=ss+tempStr[k++]+\\\"_\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\telse k++;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tstrList.add(ss.substring(0, ss.length()-1));\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t//having check\\r\\n\" + \n\t\t\t\t\"\t\t\tif(payload.isHavingClause()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString condition= prepareClause(allGroupKeyRows.get(0).get(i), allGroupKeyRows.get(0).get(i), payload.getHavingClause(), str, strList);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))) continue;\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\t\tOutputRow outputRow= convertInputToOutputRow(allGroupKeyRows.get(0).get(i), str, strList);\\r\\n\"+\n\t\t\t\t\"\t\t\tif(outputRow!=null){\\r\\n\" + \n\t\t\t\t\"\t\t\t\toutputRowList.add(outputRow);\\r\\n\"+\n\t\t\t\t\"\t\t\t}\\r\\n\"+\t\n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\treturn outputRowList;\\r\\n\"+\n\t\t\t\t\"\t}\\n\");\n\t\t\n//PRINT THE OUTPUT ROW\n\t\tfileData.append(\"\\r\\n\tpublic void printOutputResultSet(ArrayList<OutputRow> outputResultSet) throws IOException{\\r\\n\");\n\t\tfileData.append(\"\t\tCalendar now = Calendar.getInstance();\\r\\n\" + \n\t\t\t\t\"\t\tDateFormat dateFormat = new SimpleDateFormat(\\\"MM/dd/yyyy HH:mm:ss\\\");\\r\\n\" + \n\t\t\t\t\"\t\tStringBuilder fileData = new StringBuilder();\\r\\n\" + \n\t\t\t\t\"\t\tfileData.append(\\\"TIME (MM/dd/yyyy HH:mm:ss)::::\\\"+dateFormat.format(now.getTime())+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tString addDiv = \\\" -------------- \\\";\\r\\n\" + \n\t\t\t\t\"\t\tString divide = \\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\tString header=\\\"\\\";\"+\n\t\t\t\t\"\t\tfor(String select: payload.getselect_variables()) {\\r\\n\" + \n\t\t\t\t\"\t\t\tif(select.contains(\\\"0_\\\")) select=select.substring(2);\\r\\n\" + \n\t\t\t\t\"\t\t\theader=header+\\\" \\\"+select;\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int i=0;i<14-select.length();i++) header=header+\\\" \\\";\\r\\n\" + \n\t\t\t\t\"\t\t\tdivide=divide+addDiv;\\r\\n\"+\n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(divide); fileData.append(divide+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(header); fileData.append(header+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(divide); fileData.append(divide+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t//\"\t\tSystem.out.println(); fileData.append(\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tString ansString=\\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\tDecimalFormat df = new DecimalFormat(\\\"#.####\\\");\\r\\n\");\n\t\tfileData.append(\"\t\tfor(OutputRow outputRow: outputResultSet) {\\r\\n\");\n\t\tfileData.append(\"\t\t\tString answer=\\\"\\\";\\r\\n\");\n\t\t\n\t\tfor(String select: payload.getselect_variables()) {\n\t\t\tif(helper.columnMapping.containsKey(select)) {\n\t\t\t\tint col = helper.columnMapping.get(select);\n\t\t\t\tif(col==0|| col==1|| col==5) {\n\t\t\t\t\t//string\n\t\t\t\t\tfileData.append(\"\t\t\tansString=outputRow.get\"+varPrefix+select+\"();\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tanswer=answer+\\\" \\\"+ansString;\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<14-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//int\n\t\t\t\t\tfileData.append(\"\t\t\tansString = Integer.toString(outputRow.get\"+varPrefix+select+\"());\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<12-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tanswer=answer+ansString+\\\" \\\";\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//double\n\t\t\t\tif(select.contains(\"/\")) select=select.replaceAll(\"/\", \"_divide_\");\n\t\t\t\tif(select.contains(\"*\")) select=select.replaceAll(\"*\", \"_multiply_\");\n\t\t\t\tif(select.contains(\"+\")) select=select.replaceAll(\"+\", \"_add_\");\n\t\t\t\tif(select.contains(\"-\")) select=select.replaceAll(\"-\", \"_minus_\");\n\t\t\t\tif(select.contains(\")\")) select=select.replaceAll(\"[)]+\", \"\");\n\t\t\t\tif(select.contains(\"(\")) select=select.replaceAll(\"[(]+\", \"\");\n\t\t\t\tfileData.append(\"\t\t\tansString = df.format(outputRow.get\"+varPrefix+select+\"());\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<12-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\tanswer=answer+ansString+\\\" \\\";\\r\\n\");\n\t\t\t}\n\t\t}\n\t\tfileData.append(\"\t\t\tSystem.out.println(answer); fileData.append(answer+\\\"\\\\r\\\\n\\\");\\r\\n\");\n\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\tfileData.append(\"\t\tFileOutputStream fos = new FileOutputStream(\\\"queryOutput/\"+payload.fileName+\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tfos.write(fileData.toString().getBytes());\\r\\n\" + \n\t\t\t\t\"\t\tfos.flush();\\r\\n\" + \n\t\t\t\t\"\t\tfos.close();\\r\\n\");\n\t\tfileData.append(\"\t}\\r\\n\");\n\t\t\n\t\t\n//DRIVER METHOD OF THE QUERY PROCESSOR\n\t\tfileData.append(\"\\r\\n\tpublic void process() throws IOException{\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<InputRow> inputResultSet = createInputSet();\\r\\n\" + \n\t\t\t\t\"\t\tif(payload.getIsWhereClause()) inputResultSet = executeWhereClause(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tif(payload.getnumber_of_grouping_variables()>0) createListsBasedOnSuchThatPredicate(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tcomputeAggregates(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<OutputRow> outputResultSet = createOutputResultSet();\\r\\n\" + \n\t\t\t\t\"\t\tprintOutputResultSet(outputResultSet);\\r\\n\"+\n\t\t\t\t\"\t}\\n\");\n\t\t\n\t\tfileData.append(\"}\");\n\t\tFileOutputStream fos = new FileOutputStream(\"src/dbmsProject/QueryProcessor.java\");\n\t\tfos.write(fileData.toString().getBytes());\n\t\tfos.flush();\n\t\tfos.close();\n\t}", "public interface BattleDao {\n\n @Select(\"SELECT * FROM battle WHERE chapter_id = #{chapterId} order by id\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public ArrayList<Battle> getAllBattleByChapterId(String chapterId);\n\n @Select(\"SELECT * FROM battle order by id\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public ArrayList<Battle> getAllBattle();\n\n @Select(\"SELECT * FROM battle WHERE battle_id = #{battleId}\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public Battle getBattleById(String battleId);\n}", "public abstract String createQuery();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type);", "public interface RfpTemplate {\n\n ObjectId getId();\n\n String getName();\n\n RfpType getType();\n\n String getDescription();\n\n String getCoverLetter();\n\n Questionnaire getQuestionnaire();\n\n void setCoverLetter(String coverLetter);\n\n String getFinalAgreementTemplate();\n\n void setQuestionnaire(Questionnaire questionnaire);\n}", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public void setTemplate(HibernateTemplate template) {\n\t\tthis.template = template;\n\t}", "public ViewObjectImpl getDcmCatTemplateQueryView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmCatTemplateQueryView\");\r\n }", "public interface ITemplate {\n\n}", "@Mapper\npublic interface NationReferenceMapper {\n\n @Insert(\"insert into t_timezerg_nation_reference values (#{id},#{nid},#{rid})\")\n int add(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where nid = #{nid} and rid = #{rid}\")\n NationReference selectByNidAndRid(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where id = #{id}\")\n NationReference selectById(String id);\n\n @Delete(\"delete from t_timezerg_nation_reference where rid = #{rid}\")\n void deleteByRid(String rid);\n\n @Delete(\"delete from t_timezerg_nation_reference where nid = #{nid}\")\n void deleteByNid(String nid);\n\n @Delete(\"delete from t_timezerg_nation_reference where id = #{id}\")\n void deleteById(String id);\n\n @Select(\"SELECT nr.*,n.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_nation n ON nr.nid = n.id WHERE nr.rid = #{rid}\")\n List<HashMap> selectByRid(String rid);\n\n @Select(\"SELECT nr.*,r.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_reference r ON nr.rid = r.id WHERE nr.nid = #{nid}\")\n List<HashMap> selectByNid(String nid);\n\n}", "public Template(String... htmlfrags) {\r\n\t\tString htmlfrag = \"\";\r\n\t\tfor (int i = 0; i < htmlfrags.length; i++) {\r\n\t\t\thtmlfrag += htmlfrags[i];\r\n\t\t}\r\n\t\thtml = htmlfrag.replaceAll(\"'\", \"\\\"\");\r\n\t\tjsObj = create(html);\r\n\t}", "protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }", "public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}", "public Query createQuery(String hql, Object... params) ;", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "@Override\n\t\tpublic TemplateType addTemplate() {\n\t\t\treturn this;\n\t\t}", "public interface Generator {\n String prepareSql();\n\n String getTemplateName();\n\n String prepareCategorySql();\n\n String getExcludedProductIds();\n\n String getDiscounts();\n\n String fixImageUrl(String imageUrl);\n}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateRelationResult() {\n }", "@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }", "public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}", "Pivots createPivots();", "public void from(diamond.jooq.demo.model.jooq.tables.interfaces.IArticle from);", "public interface IStoreMixin {\n\n\t/**\n\t * store: Object\n\t * <p>\n\t * Reference to data provider object used by this widget.\n\t */\n\tpublic static final String STORE = \"store\";\n\n\t/**\n\t * query: Object\n\t * <p>\n\t * A query that can be passed to 'store' to initially filter the items.\n\t */\n\tpublic static final String QUERY = \"query\";\n\n\t/**\n\t * queryOptions: Object\n\t * <p>\n\t * An optional parameter for the query.\n\t */\n\tpublic static final String QUERYOPTIONS = \"queryOptions\";\n\n\t/**\n\t * labelProperty: String (default: \"label\")\n\t * <p>\n\t * A property name (a property in the dojo/store item) that specifies that\n\t * item's label.\n\t */\n\tpublic static final String LABELPROPERTY = \"labelProperty\";\n\n\t/**\n\t * childrenProperty: String (default: \"children\")\n\t * <p>\n\t * A property name (a property in the dojo/store item) that specifies that\n\t * item's children.\n\t */\n\tpublic static final String CHILDRENPROPERTY = \"childrenProperty\";\n}", "public TrexTemplateBuilder template() {\r\n\t\treturn new TrexTemplateBuilder(new TrexConfiguration(interpreter, parser, additionalModifications));\r\n\t}", "private Template() {\r\n\r\n }", "public interface CustomObjectExpansionModel<T> {\n\n static <T> CustomObjectExpansionModel<CustomObject<T>> of(){\n return new CustomObjectExpansionModelImpl<>();\n }\n}", "Traditional createTraditional();", "UnipivotInClause createUnipivotInClause();", "@UseStringTemplate3StatementLocator\npublic interface CommandDao {\n @SqlUpdate(\"insert into event (id, created, created_by, content) values (:event.id, :event.created, :event.createdBy, :content)\")\n void storeEvent(@BindBean(\"event\") Event event, @Bind(\"content\") String json);\n\n @SqlQuery(\"select content from (select pk, content from event order by pk desc limit <max>) grr order by pk\")\n @Mapper(EventMapper.class)\n Collection<Event> lastEvents(@Define(\"max\") int count);\n\n @SqlQuery(\"select content from event where pk > (select pk from event where id = :id) order by pk limit <max>\")\n @Mapper(EventMapper.class)\n Collection<Event> since(@Bind(\"id\") String id, @Define(\"max\") int count);\n\n @SqlQuery(\"select count(1) from event where pk > (select pk from event where id = :id)\")\n long countSince(@Bind(\"id\") String id);\n}", "private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "public String include(Class<?> aSnippetClass, Object... aArguments) {\n\t\ttry {\n\t\t\tMethod method = aSnippetClass.getMethod(\"generate\", new Class[] { Object.class });\n\t\t\tObject generator = aSnippetClass.newInstance();\n\t\t\tObject gensrcObj = method.invoke(generator, new Object[] { aArguments });\n\t\t\tString result = (gensrcObj != null) ? gensrcObj.toString() : \"\";\n\t\t\treturn result;\n\t\t} catch (InvocationTargetException ex) {\n\t\t\tlogger.error(\"error while include() code for \" + aSnippetClass.getName() + \" \" + ex.getTargetException());\n\t\t\treturn \"**error**\";\n\t\t} catch (Throwable t) {\n\t\t\tlogger.error(\"error while include() code for \" + aSnippetClass.getName() + \" \" + t);\n\t\t\treturn \"**error**\";\n\t\t}\n\t}", "public interface PublicationTemplate {\r\n \r\n /**\r\n * Returns the RecordTemplate of the publication data item.\r\n */\r\n public RecordTemplate getRecordTemplate() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the RecordSet of all the records built from this template.\r\n */\r\n public RecordSet getRecordSet() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to create and update the records built from this template.\r\n */\r\n public Form getUpdateForm() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to view the records built from this template.\r\n */\r\n public Form getViewForm() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to search the records built from this template.\r\n */\r\n public Form getSearchForm() throws PublicationTemplateException;\r\n \r\n public void setExternalId(String externalId);\r\n \r\n public Form getEditForm(String name) throws PublicationTemplateException;\r\n \r\n public String getExternalId();\r\n \r\n public String getName();\r\n \r\n public String getDescription();\r\n \r\n public String getThumbnail();\r\n \r\n public String getFileName();\r\n \r\n public boolean isVisible();\r\n \r\n public boolean isSearchable();\r\n }", "public HibernateTemplate getHibernateTemplate(){\r\n\t\treturn this.hibernateTemplate;\r\n\t}", "public HibernateTemplate getHibernateTemplate(){\r\n\t\treturn this.hibernateTemplate;\r\n\t}", "public HibernateTemplate getHibernateTemplate(){\r\n\t\treturn this.hibernateTemplate;\r\n\t}", "public HibernateTemplate getHibernateTemplate(){\r\n\t\treturn this.hibernateTemplate;\r\n\t}", "public interface TblAuditTemplateDao {\n\n TblAuditTemplate selectByTemplateId(String templateId);\n}", "public AndQueryFactory(PatternQueryGenerator patternQueryGenerator) {\n\t\tsuper(patternQueryGenerator);\n\t}", "public interface TemplateEngine {\n\n String prepareMessage(Template template, Client client);\n}", "private BaseQueryImpl<?> construct(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal Tree type = tree.getChild(0);\n \t\tif (type.getType() == JpqlParser.SELECT) {\n \t\t\treturn this.constructSelectQuery(cb, tree);\n \t\t}\n \t\telse if (type.getType() == JpqlParser.DELETE) {\n \t\t\treturn this.constructDeleteQuery(cb, tree);\n \t\t}\n \t\telse {\n \t\t\treturn this.constructUpdateQuery(cb, tree);\n \t\t}\n \t}", "public String buildJS() {\n if (className == null || instanceName == null) {\n // The query is only \"select `JS_expression`\" - in that case, just eval it\n return \"{ visitor = wrapVisitor(visitor); let result = \"+selectExpression+\"; let isIterable = result != null && typeof result[Symbol.iterator] === 'function'; if (isIterable) { for (r in result) { if (visitor.visit(result[r])) { break }; }} else { visitor.visit(result); } }\";\n } else {\n // The query is \"select `JS_expression` from `class_name` `identifier`\n // visitor is\n String selectFunction = \"function __select__(\"+instanceName+\") { return \"+selectExpression+\" };\";\n String iteratorConstruction = \"let iterator = heap.objects('\"+className+\"', \"+isInstanceOf+\");\";\n String whereFunction;\n String resultsIterator;\n if (whereExpression == null) {\n whereFunction = \"\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if (visitor.visit(__select__(item))) { break; }; };\";\n } else {\n whereFunction = \"function __where__(\"+instanceName+\") { return \"+whereExpression+\" };\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if(__where__(item)) { if (visitor.visit(__select__(item))) { break; } } };\";\n }\n return \"{ visitor = wrapVisitor(visitor); \" + selectFunction + whereFunction + iteratorConstruction + resultsIterator + \"}\";\n }\n }", "public PseudoQuery() {\r\n\t}", "public static TemplateBasedScriptBuilder fromTemplateScript(String scriptTemplate) {\n return new TemplateBasedScriptBuilder(scriptTemplate);\n }", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "public abstract List createQuery(String query);", "StaticIncludeType createStaticIncludeType();", "MessageQuery createMessageQuery();", "public ClassTemplate() {\n\t}", "public void constructQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tModel result = qe.execConstruct();\n\t\tprintModel(result);\n\t\tmodel.add(result);\n\t\tqe.close();\n\t}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }", "public interface IResultSetBuilder1aScroll<T extends AbstractEntity<?>> extends IResultSetBuilder2aDraggable<T> {\n\n IResultSetBuilder2aDraggable<T> notScrollable();\n\n IResultSetBuilder2aDraggable<T> withScrollingConfig(IScrollConfig scrollConfig);\n}", "public interface ClassesDao extends BaseDao<CrmClass>{\n\n\n}", "HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }", "@RequestMapping(value = \"/coupon-template/template/sdk/all\",\n method = RequestMethod.GET)\n CommonResponse<List<CouponTemplateSDK>> findAllUsableTemplate();", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "@Override\n public Template decode(final BsonReader reader, final DecoderContext decoderContext) {\n // Generates a document from the reader\n Document doc = documentCodec.decode(reader, decoderContext);\n\n String id = doc.getObjectId(\"_id\").toHexString();\n String userID = doc.getObjectId(\"userID\").toHexString();\n List<Question> questions = doc.getList(\"questions\", Document.class).stream()\n .map(x -> Question.generateQuestionFromDocument(x)).collect(Collectors.toList());\n\n return new Template(id, userID, questions);\n }", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}", "public interface SurveyTemplateRepository extends MongoRepository<SurveyTemplateEntity, String>, SurveyTemplateRepositoryCustom {\n\n /**\n * Method returns all non-deleted(active) surveys.\n *\n * @return all non-deleted(active) surveys.\n */\n public List<SurveyTemplateEntity> findByActiveIsTrue();\n\n /**\n * Find surveys that match with given arguments/properties.\n *\n * @param active is survey active or not.\n * @param unitId survey in the given unit with this id\n * @return list of surveys, never return null.\n */\n @Query(value = \"{ 'active': ?0, 'unit.id' : ?1 }\")\n public List<SurveyTemplateEntity> findByActiveAndUnitId(Boolean active, String unitId);\n\n}", "public void loadTemplate() throws Exception {\n\t\tScanner fs = new Scanner(this.getClass().getClassLoader().getResourceAsStream(template));\n\t\t\n\t\tStringBuffer sql = new StringBuffer();\n\t\ttry {\n\t\t\twhile(fs.hasNextLine()) {\n\t\t\t\tsql.append(fs.nextLine() + \"\\n\");\n\t\t\t}\n\t\t}finally {\n\t\t\tfs.close();\n\t\t}\n\t\tsqlText = sql.toString();\n\t}", "public ShiftTemplate() {\n }", "@Override\n public Class<Template> getEncoderClass() {\n return Template.class;\n }", "com.google.spanner.v1.Session getSessionTemplate();", "public interface SemagrowQuery extends Query {\n\n TupleExpr getDecomposedQuery() throws QueryDecompositionException;\n\n void addExcludedSource(URI source);\n\n void addIncludedSource(URI source);\n\n Collection<URI> getExcludedSources();\n\n Collection<URI> getIncludedSources();\n}", "FromTableJoin createFromTableJoin();", "TemplatePreview generateTemplatePreview(String templateId, Map<String, String> personalisation) throws NotificationClientException;", "public interface ICompositeUserTypeInstantiate {\n /**\n * Should provide object instantiation based on the passed by name constructor arguments.\n * \n * @param arguments\n * @return\n */\n Object instantiate(Map<String, Object> arguments);\n\n /**\n * Get the \"property names\" that may be used in a query.\n * \n * @return an array of \"property names\"\n */\n public String[] getPropertyNames();\n\n /**\n * The class returned by <tt>nullSafeGet()</tt>.\n * \n * @return Class\n */\n public Class returnedClass();\n\n public Object[] getPropertyTypes();\n}", "private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}", "private String getAdvTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft {gender}\\\"></span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft\\\">{name}</span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-rgt\\\">{age} Yrs</span>\");\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}" ]
[ "0.58574116", "0.52642745", "0.4892151", "0.4750366", "0.47362864", "0.47079712", "0.46608734", "0.4550483", "0.45423776", "0.45183152", "0.44430354", "0.4439471", "0.44295028", "0.4414936", "0.44023913", "0.43770677", "0.4371047", "0.43194738", "0.42699194", "0.42440775", "0.4208346", "0.42043367", "0.4195355", "0.41877082", "0.41842934", "0.41809055", "0.41720098", "0.41685063", "0.41579133", "0.41469795", "0.4133796", "0.41092116", "0.41087076", "0.41007063", "0.41006204", "0.40985143", "0.4088597", "0.4078603", "0.4029056", "0.40187117", "0.40181407", "0.40168917", "0.40096843", "0.3986837", "0.39799842", "0.39641404", "0.39629093", "0.3954058", "0.3948313", "0.39478692", "0.3936726", "0.39316037", "0.39280912", "0.39214936", "0.39190853", "0.39090517", "0.3900289", "0.38969237", "0.3895779", "0.38736758", "0.38715807", "0.38712004", "0.3868382", "0.3868382", "0.3868382", "0.3868382", "0.38620344", "0.385764", "0.38558236", "0.38468426", "0.38331974", "0.3825954", "0.3824136", "0.3816718", "0.3814005", "0.38117048", "0.38070965", "0.38070545", "0.3807001", "0.38035804", "0.38026214", "0.38020778", "0.37970918", "0.3795677", "0.37925187", "0.37878928", "0.37795985", "0.37672278", "0.37651786", "0.37636498", "0.37593326", "0.37586278", "0.37567782", "0.3748266", "0.37470844", "0.3746495", "0.3746321", "0.37438712", "0.3736659", "0.3732137" ]
0.6141341
0
Create a new Query Variable.
public static Variable variable( String name ) { NullArgumentException.validateNotNull( "Variable name", name ); return new Variable( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }", "QueryType createQueryType();", "Query createQuery(final String query);", "public abstract String createQuery();", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "public AeScriptVarDef(QName aQName, String aQuery) {\r\n this(aQName.getNamespaceURI(), aQName.getLocalPart(), aQuery);\r\n }", "public AeScriptVarDef(String aNamespace, String aName, String aQuery) {\r\n setNamespace(aNamespace);\r\n setName(aName);\r\n setQuery(aQuery);\r\n }", "public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}", "Variable createVariable();", "Variable createVariable();", "public QueryExecution createQueryExecution(Query qry);", "public final QueryPanel createNewQueryPanel() {\n\n QueryPanel cp = new QueryPanel(nextQueryID++);\n queryPanelContainer.add(cp);\n queryPanels.add(cp);\n\n refreshSubPanels();\n\n return cp;\n }", "DataContextVariable createDataContextVariable();", "SelectQuery createSelectQuery();", "VariableExp createVariableExp();", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }", "HumidityQuery createHumidityQuery();", "@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}", "public QueryExecution createQueryExecution(String qryStr);", "SQLQuery createSQLQuery(final String query);", "public void constructQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tModel result = qe.execConstruct();\n\t\tprintModel(result);\n\t\tmodel.add(result);\n\t\tqe.close();\n\t}", "DynamicVariable createDynamicVariable();", "public Query() {\r\n }", "private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "public void newQuery(String query){\n\t\tparser = new Parser(query);\n\t\tQueryClass parsedQuery = parser.createQueryClass();\n\t\tqueryList.add(parsedQuery);\n\t\t\n\t\tparsedQuery.matchFpcRegister((TreeRegistry)ps.getRegistry());\n\t\tparsedQuery.matchAggregatorRegister();\n\t\t\n\t\t\n\t}", "MessageQuery createMessageQuery();", "public ASTQuery subCreate(){\r\n\t\tASTQuery ast = create();\r\n\t\tast.setGlobalAST(this);\r\n\t\tast.setNSM(getNSM());\r\n\t\treturn ast;\r\n\t}", "public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "private Query(String command) {\n\t\tthis.command = command;\n\t}", "private DirectDbQuery() {\n this.query = null;\n this.database = null;\n this.queryLanguage = null;\n this.paramMap = null;\n }", "public ResultSet construct(String szQuery) {\n\t\treturn null;\n\t}", "TemperatureQuery createTemperatureQuery();", "private DbQuery() {}", "public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }", "public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }", "public abstract List createQuery(String query);", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public static Query empty() {\n return new Query();\n }", "AliasVariable createAliasVariable();", "public VariableIF createVariable(VariableDecl decl);", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "@Override\n public SpanQuery toFragmentQuery () throws QueryException {\n\n // The query is null\n if (this.isNull)\n return (SpanQuery) null;\n\n if (this.isEmpty) {\n log.error(\"You can't queryize an empty query\");\n return (SpanQuery) null;\n };\n\n // The query is not a repetition query at all, but may be optional\n if (this.min == 1 && this.max == 1)\n return this.subquery.retrieveNode(this.retrieveNode)\n .toFragmentQuery();\n\n // That's a fine repetition query\n return new SpanRepetitionQuery(\n this.subquery.retrieveNode(this.retrieveNode).toFragmentQuery(),\n this.min, this.max, true);\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public PseudoQuery() {\r\n\t}", "public static Query of(String rawQuery) {\n return new Query(rawQuery);\n }", "QueryKey createQueryKey(String name);", "CampusSearchQuery generateQuery();", "public abstract DatabaseQuery createDatabaseQuery(ParseTreeContext context);", "SELECT createSELECT();", "public QueryCore(String query)\n {\n this.query = query;\n }", "VariableDeclaration createVariableDeclaration();", "public Query getEffectsQuery(\r\n final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n return new Query(flowUnit, query);\r\n }", "public void createQuery(String s) throws HibException;", "public Builder setQuery(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n query_ = value;\n\n return this;\n }", "com.exacttarget.wsdl.partnerapi.QueryRequest addNewQueryRequest();", "Query query();", "VarReference createVarReference();", "private Query(final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n this.flowUnit = flowUnit;\r\n this.bcaQuery = query;\r\n }", "public String allocateUnnamedQuery() {\n\t\treturn (UNNAMED_QUERY_PREFIX + (unnamedQueryCount++));\n }", "public Query(Class c, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = \"c\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "Variables createVariables();", "Expr createExpr();", "VarAssignment createVarAssignment();", "private MetaSparqlRequest createQueryMT2() {\n\t\treturn createQueryMT1();\n\t}", "@Override\n\tpublic Query createNamedQuery(String name) {\n\t\treturn null;\n\t}", "public Builder query(final String query) {\n this.query = query;\n return this;\n }", "static DbQuery createKeyQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.KEY;\n return query;\n }", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public static QueryResult build() {\n return new QueryResult(ImmutableList.of());\n }", "public Query query(Predicate query) throws Exceptions.OsoException {\n Host new_host = host.clone();\n String pred = new_host.toPolarTerm(query).toString();\n return new Query(ffiPolar.newQueryFromTerm(pred), new_host);\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}", "public void createQuery(ResultSet rs, String Query) throws SQLException {\n this.data.add(new QueryConversionData(rs));\n this.queryHistory.add(Query);\n }", "protected BooleanQuery.Builder newBooleanQuery() {\n return new BooleanQuery.Builder();\n }", "public Query getQuery()\n {\n return query;\n }", "public InfluxDBParameter setQuery(String query) {\n this.query = query;\n return this;\n }", "private Queries() {\n // prevent instantiation\n }", "public abstract Query<T> setQuery(String oql);", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public QueryArgs copy();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "protected String getComposedQuery() {\n\n\t\tif (this.variableList.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Can't compose a query with no \" +\n\t\t\t\"select variables! Add some variables using addSelectVariable()!\");\n\t\t}\n\t\t// variables that are used in the SPARQL query\n\t\tString variables = \"\";\n\t\t// SPARQL query\n\t\tString queryString = \"\";\n\n\t\t// append variables \n\t\tfor(String var : this.variableList ) {\n\t\t\tvariables+=\" \"+var;\n\t\t}\t\n\n\t\t//cheesy mechanism to allow UNION statements to parse correctly\n\t\tString startBracket = \" {\";\n\t\tString endBracket = \"} \";\n\t\tfor (String queryTriplet : queryTriplets) {\n\t\t\tif (queryTriplet.contains(\"UNION\")) {\n\t\t\t\tstartBracket = \" {{\";\n\t\t\t\tendBracket = \" }}\";\n\t\t\t}\n\t\t}\n\n\t\t//add prefixes into the query statement if they have been added.\n\t\tif (prefixMap.keySet().isEmpty() == false ) {\n\t\t\tfor (String prefix : prefixMap.keySet()) {\n\t\t\t\tqueryString += \"PREFIX \" + prefix + \": \" + \n\t\t\t\tprefixMap.get(prefix) + \" \";\n\t\t\t}\n\t\t}\n\n\t\t// make sure we have some variables\n\t\tif(variables != \"\")\n\t\t\tqueryString += \"select DISTINCT\" + variables + startBracket;\n\n\t\t// wrap up query string from queryTripletList\n\t\tfor (String queryTriplet : queryTriplets) {\n\t\t\tqueryString += queryTriplet;\t\n\t\t\tif (queryTriplet.contains(\"UNION\") == false && \n\t\t\t\t\tqueryTriplet.contains(\"FILTER\") == false)\n\t\t\t\tqueryString += \" . \";\n\n\t\t}\n\n\t\tqueryString += endBracket;\n\t\tif(this.neurolexData)\n\t\t\tqueryString +=\"ORDER BY $name \"+\"LIMIT \"+getCurrentLimit()+\" OFFSET \"+getCurrentOffset();\n\t\tif(this.comesFromBAMS)\n\t\t\tqueryString += \"LIMIT \"+getCurrentLimit()+\" OFFSET \"+getCurrentOffset();\n\n\t\tSystem.out.println(queryString);\n\t\treturn queryString;\n\t}", "public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }", "public void setQuery(Integer query) {\n this.query = query;\n }", "public Floater createQueryFloater(QueryPanel queryPanel, Point location) {\n Floater floater = new InternalFloater(\"query\", \"Query\", location, true);\n floater.setComponent(queryPanel);\n floater.pack();\n return floater;\n }", "@Override String opStr() { return \"var\"; }", "protected Query newTermQuery(Term term, float boost) {\n Query q = new TermQuery(term);\n if (boost == DEFAULT_BOOST) {\n return q;\n }\n return new BoostQuery(q, boost);\n }", "public final void setQuery(final String newQuery) {\n this.query = newQuery;\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "GroupQuery createQuery();", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public Variable(String name){\n this.name = name;\n }", "static DbQuery createChildValueQuery(String childKeyName) {\n DbQuery query = new DbQuery();\n query.order = OrderBy.CHILD;\n query.keyName = childKeyName;\n return query;\n }", "VariableRef createVariableRef();", "QueryConstraintType createQueryConstraintType();", "public void setQuery(DatabaseQuery query) {\n this.query = query;\n }", "public Querytool getQuery() {\n return localQuerytool;\n }" ]
[ "0.64753675", "0.63476855", "0.6292", "0.6235885", "0.60574216", "0.5895547", "0.58615154", "0.58580214", "0.58488256", "0.58068216", "0.5790309", "0.5790309", "0.5786325", "0.5780427", "0.5751282", "0.56962615", "0.5687465", "0.56811965", "0.56793445", "0.5633227", "0.56141675", "0.5595485", "0.5584406", "0.55833745", "0.5574562", "0.5569872", "0.55661464", "0.55591744", "0.5529359", "0.5474814", "0.5465747", "0.54584825", "0.5443521", "0.5431062", "0.543092", "0.54234135", "0.541445", "0.5396004", "0.5374679", "0.5367015", "0.53634113", "0.5349194", "0.5336848", "0.5295533", "0.5282938", "0.5257064", "0.5256793", "0.5252733", "0.5245829", "0.5242942", "0.52346754", "0.5222878", "0.52143776", "0.5208064", "0.52066547", "0.5197858", "0.5184145", "0.5181204", "0.51741964", "0.5159683", "0.51577187", "0.51523256", "0.5146993", "0.5144927", "0.5131629", "0.51012164", "0.50995874", "0.509336", "0.50888044", "0.50756335", "0.5069315", "0.50511235", "0.50489444", "0.5048099", "0.50444037", "0.50359297", "0.5031914", "0.5022012", "0.5001396", "0.49968594", "0.4987866", "0.49857548", "0.49798974", "0.49783805", "0.49538982", "0.49506298", "0.4947878", "0.4945419", "0.49444458", "0.49415344", "0.49317938", "0.49213967", "0.49183926", "0.49179992", "0.49179858", "0.49143496", "0.49095687", "0.4909451", "0.49091232", "0.4902528", "0.48940498" ]
0.0
-1
Create a new Query Template PropertyFunction.
@SuppressWarnings( "unchecked" ) public static <T> PropertyFunction<T> property( Property<T> property ) { return ( (PropertyReferenceHandler<T>) Proxy.getInvocationHandler( property ) ).property(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "PropertyCallExp createPropertyCallExp();", "QueryType createQueryType();", "Property createProperty();", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public String getQueryTemplate() {\n return queryTemplate;\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "Expression createExpression();", "PivotFunctions createPivotFunctions();", "PivotFunction createPivotFunction();", "private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "TemperatureQuery createTemperatureQuery();", "FunctionAnalytical createFunctionAnalytical();", "public abstract String createQuery();", "private static PropertyFunctionInstance magicProperty(Context context,\n Triple pfTriple,\n BasicPattern triples)\n {\n List<Triple> listTriples = new ArrayList<>() ;\n\n GNode sGNode = new GNode(triples, pfTriple.getSubject()) ;\n GNode oGNode = new GNode(triples, pfTriple.getObject()) ;\n List<Node> sList = null ;\n List<Node> oList = null ;\n \n if ( GraphList.isListNode(sGNode) )\n {\n sList = GraphList.members(sGNode) ;\n GraphList.allTriples(sGNode, listTriples) ;\n }\n if ( GraphList.isListNode(oGNode) )\n {\n oList = GraphList.members(oGNode) ;\n GraphList.allTriples(oGNode, listTriples) ;\n }\n \n PropFuncArg subjArgs = new PropFuncArg(sList, pfTriple.getSubject()) ;\n PropFuncArg objArgs = new PropFuncArg(oList, pfTriple.getObject()) ;\n \n // Confuses single arg with a list of one. \n PropertyFunctionInstance pfi = new PropertyFunctionInstance(subjArgs, pfTriple.getPredicate(), objArgs) ;\n \n triples.getList().removeAll(listTriples) ;\n return pfi ;\n }", "PivotForClause createPivotForClause();", "public abstract List createQuery(String query);", "PropertyType createPropertyType();", "public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "Expr createExpr();", "public Property(String propertyName, ValueType retType,\n List<ValueType> paramsTypes, String tableName,\n String tableItemName, boolean isGlobal,\n String formatTemplate) {\n this.propertyName = propertyName;\n this.retType = retType;\n this.paramsTypes = paramsTypes;\n this.tableName = tableName;\n this.tableItemName = tableItemName;\n this.formatTemplate = formatTemplate;\n this.isGlobal = isGlobal;\n }", "public DSMFunction( Properties props )\n {\n super( props );\n }", "CampusSearchQuery generateQuery();", "static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }", "protected abstract Property createProperty(String key, Object value);", "TemplateParameter createTemplateParameter();", "@Override\n\tpublic CommandFunction getNewFunction() {\n\t\treturn new txnscript();\n\t}", "Query createQuery(final String query);", "public final MF addColumnProperty(Predicate<? super K> predicate, Object... properties) {\n\t\tfor(Object property : properties) {\n\t\t\tcolumnDefinitions.addColumnProperty(predicate, property);\n\t\t}\n\t\treturn (MF) this;\n\t}", "private Function createLambdaFunction()\n {\n return lambdaFunctionBuilder().build();\n }", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "public final MF addColumnProperty(Predicate<? super K> predicate, UnaryFactory<K, Object> propertyFactory) {\n\t\tcolumnDefinitions.addColumnProperty(predicate, propertyFactory);\n\t\treturn (MF) this;\n\t}", "QueryConstraintType createQueryConstraintType();", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "public Floater createQueryFloater(QueryPanel queryPanel, Point location) {\n Floater floater = new InternalFloater(\"query\", \"Query\", location, true);\n floater.setComponent(queryPanel);\n floater.pack();\n return floater;\n }", "public void setQueryTemplate(String template) {\n queryTemplate = template;\n resetCache();\n }", "public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }", "@Override\r\n\tpublic Item constructItem() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n T entity = (T) entityClass.newInstance();\r\n BeanInfo info = Introspector.getBeanInfo(entityClass);\r\n for (PropertyDescriptor pd : info.getPropertyDescriptors()) {\r\n for (Object propertyId : queryDefinition.getPropertyIds()) {\r\n if (pd.getName().equals(propertyId)) {\r\n Method writeMethod = pd.getWriteMethod();\r\n Object propertyDefaultValue = queryDefinition.getPropertyDefaultValue(propertyId);\r\n writeMethod.invoke(entity, propertyDefaultValue);\r\n }\r\n }\r\n }\r\n return toItem(entity);\r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Error in bean construction or property population with default values.\", e);\r\n }\r\n }", "public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }", "String getObjectByPropertyQuery(String subject, String property);", "public Properties getQueryProperties() {\n\t\treturn queryProperties;\n\t}", "private <T> TableColumn<Record, T> createTableColumn(String property, String title, Class<T> type) {\r\n\t\tTableColumn<Record, T> col = new TableColumn<>(title);\r\n\r\n\t\tcol.setCellValueFactory(new PropertyValueFactory<>(property));\r\n\t\tcol.setEditable(false);\r\n\t\tcol.setPrefWidth(100);\r\n\r\n\t\treturn col;\r\n\t}", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}", "SelectQuery createSelectQuery();", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "Function createFunction();", "public static QueryParamHandler create(Config config) {\n return create(QueryParamMapping.create(config));\n }", "protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public TemplateEngine getTemplateEngine() {\n return queryCreator;\n }", "MessageQuery createMessageQuery();", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public PseudoQuery() {\r\n\t}", "public static IndexExpression Property(Expression expression, String name, Expression[] arguments) { throw Extensions.todo(); }", "public String buildJS() {\n if (className == null || instanceName == null) {\n // The query is only \"select `JS_expression`\" - in that case, just eval it\n return \"{ visitor = wrapVisitor(visitor); let result = \"+selectExpression+\"; let isIterable = result != null && typeof result[Symbol.iterator] === 'function'; if (isIterable) { for (r in result) { if (visitor.visit(result[r])) { break }; }} else { visitor.visit(result); } }\";\n } else {\n // The query is \"select `JS_expression` from `class_name` `identifier`\n // visitor is\n String selectFunction = \"function __select__(\"+instanceName+\") { return \"+selectExpression+\" };\";\n String iteratorConstruction = \"let iterator = heap.objects('\"+className+\"', \"+isInstanceOf+\");\";\n String whereFunction;\n String resultsIterator;\n if (whereExpression == null) {\n whereFunction = \"\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if (visitor.visit(__select__(item))) { break; }; };\";\n } else {\n whereFunction = \"function __where__(\"+instanceName+\") { return \"+whereExpression+\" };\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if(__where__(item)) { if (visitor.visit(__select__(item))) { break; } } };\";\n }\n return \"{ visitor = wrapVisitor(visitor); \" + selectFunction + whereFunction + iteratorConstruction + resultsIterator + \"}\";\n }\n }", "FullExpression createFullExpression();", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type);", "PropertyRealization createPropertyRealization();", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }", "static TypeReference<PagedQueryResult<JsonNode>> resultTypeReference() {\n return new TypeReference<PagedQueryResult<JsonNode>>() {\n @Override\n public String toString() {\n return \"TypeReference<PagedQueryResult<JsonNode>>\";\n }\n };\n }", "SchemaBuilder withProperty(String name, Object value);", "private void createGetColumnPropertiesHash(){\n //---------------------------------------------------------------------------\n buffer.append(\" /**\\n\");\n buffer.append(\" * <code>getColumnPropertiesHash</code>\\n\");\n buffer.append(\" * <p>\\n\");\n buffer.append(\" * This method will return a hash table. The hashtable will contain the name\\n\");\n buffer.append(\" * of the columns in the table. Each column will have an associated ColumnProperties\\n\");\n buffer.append(\" *o bject which contains the columns values.\\n\");\n buffer.append(\" * </p>\\n\");\n buffer.append(\" * @author Booker Northington II\\n\");\n buffer.append(\" * @version 1.0\\n\");\n buffer.append(\" * @since 1.3\\n\");\n buffer.append(\" * @param none <code></code>\\n\"); \n buffer.append(\" * @see ColumnProperties <code>ColumnProperties</code>\\n\");\n buffer.append(\" * @return columnPropertiesHash <code>Hashtable</code> A hash table\\n\");\n buffer.append(\" * of columns.\\n\");\n buffer.append(\" */\\n\");\n buffer.append(spacer);\n buffer.append(\" public Hashtable getColumnPropertiesHash(){\\n\");\n buffer.append(spacer);\n buffer.append(\" return columnPropertiesHash;\\n\");\n buffer.append(\" }//getColumnPropertiesHash() ENDS\\n\\n\");\n }", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public TradingProperty createNewTradingProperty(String sessionName, int classKey)\n {\n SimpleIntegerTradingPropertyImpl newTP = new SimpleIntegerTradingPropertyImpl(\"Property\", sessionName, classKey);\n newTP.setTradingPropertyType(getTradingPropertyType());\n return newTP;\n }", "OpFunction createOpFunction();", "PropertyReference createPropertyReference();", "public abstract Expression generateExpression(GenerationContext context);", "JavaExpression createJavaExpression();", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public QueryExecution createQueryExecution(Query qry);", "public Function( String name )\n {\n this.name = name;\n }", "QueryKey createQueryKey(String name);", "private MetaSparqlRequest createQueryMT2() {\n\t\treturn createQueryMT1();\n\t}", "public static IndexExpression property(Expression expression, PropertyInfo property, Expression[] arguments) { throw Extensions.todo(); }", "private HashMap<String,String> createQueryMap() {\n\t\t\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\t// Only include Pages with the CenterNet Event template\n\t\tmap.put(\"type\",\"cq:Page\");\n\t\tmap.put(\"path\", Constants.EVENTS);\n\t\tmap.put(\"property\",\"jcr:content/cq:template\");\n\t map.put(\"property.value\", Constants.EVENT_TEMPLATE);\n\n\t if (tags != null) {\n\t \tmap = addTagFilter(map);\n\t }\n\n\t // Only include Events whose start time is in the future\n\t map.put(\"relativedaterange.property\", PN_QUERY_START_TIME);\n\t map.put(\"relativedaterange.lowerBound\", \"-0d\");\n\t \n\t // Include all hits\n\t //map.put(\"p.limit\", maxNum.toString());\n\t map.put(\"p.limit\", maxNum);\n\t map.put(\"p.guessTotal\", \"true\");\n\t \n\t // Order by Start Time\n\t map.put(\"orderby\", PN_QUERY_START_TIME);\n\t map.put(\"orderby.sort\", \"asc\");\n\t \n\t\treturn map;\n\t\t\n\t}", "PropertyRule createPropertyRule();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic <T> List<?> queryFuncs(T entity) throws DataAccessException {\n\t\treturn (List<?>) mapper.queryFuncByProperty((Map<String, Object>) entity);\r\n\t}", "public final Bindings function(String name) {\n addProp(name, false, \"function() {}\");\n return this;\n }", "public final QueryPanel createNewQueryPanel() {\n\n QueryPanel cp = new QueryPanel(nextQueryID++);\n queryPanelContainer.add(cp);\n queryPanels.add(cp);\n\n refreshSubPanels();\n\n return cp;\n }", "public interface QueryOperation<C extends QueryConfiguration, R> extends TypedExpression<R> {\n\n\t/**\n\t * Get the query configuration.\n\t * @return the query configuration\n\t */\n\tC getConfiguration();\n\n\t/**\n\t * Get the query projection.\n\t * @return the query projection\n\t */\n\tQueryProjection<R> getProjection();\n\n\t/**\n\t * Create a new {@link QueryOperation}.\n\t * @param <C> Query configuration type\n\t * @param <R> Query result type\n\t * @param configuration Query configuration (not null)\n\t * @param projection Query projection (not null)\n\t * @return A new {@link QueryOperation}\n\t */\n\tstatic <C extends QueryConfiguration, R> QueryOperation<C, R> create(C configuration,\n\t\t\tQueryProjection<R> projection) {\n\t\treturn new DefaultQueryOperation<>(configuration, projection);\n\t}\n\n}", "public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}", "String buildQuery(\n CanaryConfig canaryConfig,\n NewRelicCanaryScope canaryScope,\n NewRelicCanaryMetricSetQueryConfig queryConfig,\n NewRelicScopeConfiguration scopeConfiguration) {\n\n String[] baseScopeAttributes = new String[] {\"scope\", \"location\", \"step\"};\n\n // New Relic requires the time range to be in the query and for it to be in epoch millis or\n // some other weird timestamp that is not an ISO 8061 TS.\n // You cannot use the keys `start` and `end` here as the template engine tries to read the value\n // out\n // of the canary scope bean instead of the values you supply here and you get an ISO 8061 ts\n // instead of epoch secs.\n // Thus we add the epoch millis to the context to be available in templates as startEpochSeconds\n // and endEpochSeconds\n Map<String, String> originalParams =\n canaryScope.getExtendedScopeParams() == null\n ? new HashMap<>()\n : canaryScope.getExtendedScopeParams();\n Map<String, String> paramsWithExtraTemplateValues = new HashMap<>(originalParams);\n paramsWithExtraTemplateValues.put(\n \"startEpochSeconds\", String.valueOf(canaryScope.getStart().getEpochSecond()));\n paramsWithExtraTemplateValues.put(\n \"endEpochSeconds\", String.valueOf(canaryScope.getEnd().getEpochSecond()));\n canaryScope.setExtendedScopeParams(paramsWithExtraTemplateValues);\n\n String customFilter =\n QueryConfigUtils.expandCustomFilter(\n canaryConfig, queryConfig, canaryScope, baseScopeAttributes);\n\n return Optional.ofNullable(customFilter)\n .orElseGet(\n () -> {\n // un-mutate the extended scope params, so that the additional values we injected into\n // the map for templates don't make it into the simplified flow query.\n canaryScope.setExtendedScopeParams(originalParams);\n return buildQueryFromSelectAndQ(canaryScope, queryConfig, scopeConfiguration);\n });\n }", "public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}", "RecordPropertyType createRecordPropertyType();", "public Query() {\r\n }", "private IPredicateElement createPredicate() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IAxiom.ELEMENT_TYPE, null, null);\n\t}", "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static <S, T> javafx.scene.control.cell.TextFieldTableCellBuilder<S, T, ?> create() {\n return new javafx.scene.control.cell.TextFieldTableCellBuilder();\n }", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);\n }", "DataContextVariable createDataContextVariable();", "public QueryElement addLowerThen(String property, Object value);", "XExpr createXExpr();" ]
[ "0.56774664", "0.5577183", "0.551438", "0.5488883", "0.54496884", "0.5412556", "0.53669363", "0.53437316", "0.5341981", "0.52475053", "0.52232677", "0.51830673", "0.51188517", "0.50851536", "0.5057688", "0.50504637", "0.500905", "0.5002952", "0.49515206", "0.4878613", "0.4877815", "0.4865482", "0.48531196", "0.4846384", "0.48272288", "0.4825778", "0.48257124", "0.4816453", "0.4800258", "0.47875488", "0.47794247", "0.47658285", "0.47655183", "0.47537255", "0.47450185", "0.4739292", "0.47317755", "0.47118226", "0.46993843", "0.46584174", "0.4656091", "0.4649301", "0.4649088", "0.46431997", "0.46420538", "0.46373582", "0.46262795", "0.4626031", "0.46228203", "0.46133435", "0.4612135", "0.46080884", "0.45944953", "0.45783314", "0.45767435", "0.45725763", "0.4565615", "0.4564194", "0.45635298", "0.45527887", "0.45414278", "0.45322603", "0.4517431", "0.45116335", "0.4506937", "0.4497765", "0.4480641", "0.44748712", "0.4468613", "0.44637376", "0.4460717", "0.4458469", "0.4455063", "0.44441688", "0.444406", "0.4443227", "0.44424105", "0.44322935", "0.44287613", "0.44187063", "0.4411686", "0.44103104", "0.44072315", "0.44063267", "0.4402988", "0.43964636", "0.4395554", "0.43908456", "0.43899113", "0.4365803", "0.43633825", "0.43573603", "0.43570307", "0.43477863", "0.43379736", "0.43376756", "0.43366057", "0.43291914", "0.43226355", "0.43206057" ]
0.48487815
23
Create a new Query Property instance.
@SuppressWarnings( "unchecked" ) public static <T> Property<T> property( Class<?> mixinClass, String fieldName ) { try { Field field = mixinClass.getField( fieldName ); if( !Property.class.isAssignableFrom( field.getType() ) ) { throw new IllegalArgumentException( "Field must be of type Property<?>" ); } return (Property<T>) Proxy.newProxyInstance( mixinClass.getClassLoader(), array( field.getType() ), new PropertyReferenceHandler<>( new PropertyFunction<T>( null, null, null, null, field ) ) ); } catch( NoSuchFieldException e ) { throw new IllegalArgumentException( "No such field '" + fieldName + "' in mixin " + mixinClass.getName() ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public Properties getQueryProperties() {\n\t\treturn queryProperties;\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public Query() {\r\n }", "public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "Property createProperty();", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public PseudoQuery() {\r\n\t}", "static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "Query createQuery(final String query);", "QueryType createQueryType();", "public void init (Query q)\n\t throws QueryParseException\n {\n\ttry\n\t{\n\n\t this.get = new Getter (this.acc,\n\t\t\t\t q.getFromObjectClass ());\n\n\t} catch (Exception e) {\n\n\t throw new QueryParseException (\"Unable to create getter: \" + \n\t\t\t\t\t this.acc,\n\t\t\t\t\t e);\n\n\t}\n\n }", "@Override\r\n\tpublic Item constructItem() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n T entity = (T) entityClass.newInstance();\r\n BeanInfo info = Introspector.getBeanInfo(entityClass);\r\n for (PropertyDescriptor pd : info.getPropertyDescriptors()) {\r\n for (Object propertyId : queryDefinition.getPropertyIds()) {\r\n if (pd.getName().equals(propertyId)) {\r\n Method writeMethod = pd.getWriteMethod();\r\n Object propertyDefaultValue = queryDefinition.getPropertyDefaultValue(propertyId);\r\n writeMethod.invoke(entity, propertyDefaultValue);\r\n }\r\n }\r\n }\r\n return toItem(entity);\r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Error in bean construction or property population with default values.\", e);\r\n }\r\n }", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public QueryOptions build() {\n return new QueryOptions(this.columns, this.excludeColumns, this.excludeAttributes, this.shards);\n }", "public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "PropertyCallExp createPropertyCallExp();", "public ProductIndexQuery() {\n\t}", "public Query query(Predicate query) throws Exceptions.OsoException {\n Host new_host = host.clone();\n String pred = new_host.toPolarTerm(query).toString();\n return new Query(ffiPolar.newQueryFromTerm(pred), new_host);\n }", "public QueryCore(String query)\n {\n this.query = query;\n }", "public Property() {}", "public final QueryPanel createNewQueryPanel() {\n\n QueryPanel cp = new QueryPanel(nextQueryID++);\n queryPanelContainer.add(cp);\n queryPanels.add(cp);\n\n refreshSubPanels();\n\n return cp;\n }", "public Query(Class c, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = \"c\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}", "public static CasPropertiesContainer query(final ConfigurationMetadataCatalogQuery query) {\n val repo = new CasConfigurationMetadataRepository();\n val allProperties = repo.getRepository()\n .getAllProperties()\n .entrySet()\n .stream()\n .filter(entry -> {\n if (query.getQueryType() == ConfigurationMetadataCatalogQuery.QueryTypes.CAS) {\n return CasConfigurationMetadataRepository.isCasProperty(entry.getValue());\n }\n if (query.getQueryType() == ConfigurationMetadataCatalogQuery.QueryTypes.THIRD_PARTY) {\n return !CasConfigurationMetadataRepository.isCasProperty(entry.getValue());\n }\n return true;\n })\n .filter(entry -> query.getQueryFilter().test(entry.getValue())).toList();\n\n val properties = allProperties\n .stream()\n .filter(entry -> doesPropertyBelongToModule(entry.getValue(), query))\n .map(Map.Entry::getValue)\n .map(property -> collectReferenceProperty(property, repo.getRepository()))\n .filter(Objects::nonNull)\n .sorted(Comparator.comparing(CasReferenceProperty::getName))\n .collect(Collectors.toCollection(TreeSet::new));\n return new CasPropertiesContainer(properties);\n }", "protected abstract Property createProperty(String key, Object value);", "public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }", "public Builder setQuery(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n query_ = value;\n\n return this;\n }", "public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }", "public InfluxDBParameter setQuery(String query) {\n this.query = query;\n return this;\n }", "private Queries() {\n // prevent instantiation\n }", "@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }", "SchemaBuilder withProperty(String name, Object value);", "public Builder query(final String query) {\n this.query = query;\n return this;\n }", "public QueryUserFilter(QueryUserFilter source) {\n if (source.PropertyKey != null) {\n this.PropertyKey = new String(source.PropertyKey);\n }\n if (source.PropertyValue != null) {\n this.PropertyValue = new String(source.PropertyValue);\n }\n if (source.Logic != null) {\n this.Logic = new Boolean(source.Logic);\n }\n if (source.OperateLogic != null) {\n this.OperateLogic = new String(source.OperateLogic);\n }\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public static RsQueryObject get(ClassDescriptor cld, Query query)\r\n {\r\n return new RsQueryObject(cld, query);\r\n }", "@Test\n public void constructorStoreSucceed()\n {\n // arrange\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n assertEquals(\"*\", Deencapsulation.getField(querySpecificationBuilder, \"selection\"));\n assertEquals(QuerySpecificationBuilder.FromType.ENROLLMENTS, Deencapsulation.getField(querySpecificationBuilder, \"fromType\"));\n }", "public EntityPropertyBean() {}", "private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "public QueryLocator() {\n this(new Random().nextInt(1024));\n }", "String getObjectByPropertyQuery(String subject, String property);", "public abstract String createQuery();", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "SelectQuery createSelectQuery();", "public Query() {\n initComponents();\n }", "public QueryExecution createQueryExecution(Query qry);", "public SolrQuery() {\n super(null);\n store = null;\n }", "public static QueryResult build() {\n return new QueryResult(ImmutableList.of());\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}", "PropertyType createPropertyType();", "public abstract QueryElement addEquals(String property, Object value);", "public PcProductpropertyExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "MessageQuery createMessageQuery();", "private Query(String command) {\n\t\tthis.command = command;\n\t}", "private QueryGenerator() {\n }", "public QueryRegistry() {\r\n }", "@Override\n protected QueryStatusMessage createInstance() {\n return new QueryStatusMessage();\n }", "private Query(final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n this.flowUnit = flowUnit;\r\n this.bcaQuery = query;\r\n }", "PropertyReference createPropertyReference();", "public static Property property(Expression expression, String name) {\n\t\treturn Property.create(expression, name);\n\t}", "OQLQueryImpl(final Database database) {\r\n _database = database;\r\n }", "private DbQuery() {}", "public Query getQuery()\n {\n return query;\n }", "public PropertySelector(Entity root, Property property) {\n this.root = root;\n this.property = property;\n }", "public NrtAlertRule withQuery(String query) {\n if (this.innerProperties() == null) {\n this.innerProperties = new NrtAlertRuleProperties();\n }\n this.innerProperties().withQuery(query);\n return this;\n }", "public PropertySelector(PropertySelector parent, Property property) {\n this.parent = parent;\n this.property = property;\n }", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public Floater createQueryFloater(QueryPanel queryPanel, Point location) {\n Floater floater = new InternalFloater(\"query\", \"Query\", location, true);\n floater.setComponent(queryPanel);\n floater.pack();\n return floater;\n }", "public void constructQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tModel result = qe.execConstruct();\n\t\tprintModel(result);\n\t\tmodel.add(result);\n\t\tqe.close();\n\t}", "private DirectDbQuery() {\n this.query = null;\n this.database = null;\n this.queryLanguage = null;\n this.paramMap = null;\n }", "public Property()\r\n {\r\n }", "public PropertiesQDoxPropertyExpander() {\n super();\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}", "private PropertySingleton(){}", "public static Property createProperty(String key, String value) {\n Property prop = new Property();\n prop.setKey(key);\n prop.setValue(value);\n\n return prop;\n }", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "TemperatureQuery createTemperatureQuery();", "public GeneQueryResultBean() {\n\t if (debug)\n\t\tSystem.out.println(\"GeneQueryResultBean.constructor\");\n\n\t\tinput = Visit.getRequestParam(\"input\");\n\t query = Visit.getRequestParam(\"query\");\n\t\tif (query.equalsIgnoreCase(\"\")) {\n\t\t\tfocusedOrgan = null;\n\t\t} else {\n\t\t\tfocusedOrgan = Visit.getRequestParam(\"focusedOrgan\"); \n\t\t}\n\t\t\n//\t\tsearchResultOption = Visit.getRequestParam(\"searchResultOption\");\n\t\tif (TableUtil.isTableViewInSession()) {\n\t\t\treturn;\n\t\t}\n\t\tTableUtil.saveTableView(populateGeneQueryResultTableView(\"geneQueryResult\"));\n\t}", "public Builder clearQuery() {\n bitField0_ = (bitField0_ & ~0x00000010);\n query_ = getDefaultInstance().getQuery();\n\n return this;\n }", "@Override\n\tpublic Query objectQuery(String query) throws Exception {\n\t\treturn null;\n\t}", "public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }", "protected BooleanQuery.Builder newBooleanQuery() {\n return new BooleanQuery.Builder();\n }", "public QueryUtils() {\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "private Query getQuery(String index, String type, String query){\r\n\t\tSearchQuery esQuery = new SearchQuery();\r\n\t\tesQuery.setIndex(this.indexName);\r\n\t\t\r\n\t\tif(StringUtils.isNotEmpty(type))\r\n\t\t\tesQuery.setType(type);\r\n\t\t\r\n\t\tesQuery.setQuery(query);\r\n\t\t\r\n\t\treturn esQuery;\t\t\r\n\t}", "public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}", "public static Query empty() {\n return new Query();\n }", "public JPQLQuery(ExecutionContext ec, String query)\r\n {\r\n super(ec, query);\r\n }", "public abstract Query<T> setQuery(String oql);", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public abstract List createQuery(String query);", "public UserQuery() {\n super(QueryStrings.USER_QUERY_BASIC);\n }" ]
[ "0.6331715", "0.6260851", "0.61163384", "0.60898936", "0.6088458", "0.6076997", "0.6067078", "0.60633737", "0.6043996", "0.59896916", "0.58065486", "0.57955325", "0.57102585", "0.5708084", "0.56908226", "0.5606418", "0.55984646", "0.5550481", "0.5541517", "0.5492697", "0.54755455", "0.5461281", "0.54368913", "0.5413385", "0.54102093", "0.54085326", "0.53904295", "0.53880847", "0.5375285", "0.53696036", "0.53607666", "0.5336913", "0.53129846", "0.53070337", "0.5295812", "0.5289341", "0.5287586", "0.5244272", "0.52415025", "0.5236542", "0.52344906", "0.5232397", "0.52314717", "0.52135915", "0.5209105", "0.52063704", "0.5194439", "0.51812035", "0.5176777", "0.5157851", "0.51413196", "0.5137315", "0.513083", "0.5127662", "0.51134866", "0.50940496", "0.5085596", "0.50847363", "0.5084022", "0.5079978", "0.5066188", "0.5065685", "0.50595343", "0.50401604", "0.50258213", "0.5024365", "0.5016603", "0.5016361", "0.5012513", "0.50123733", "0.5006284", "0.5003979", "0.4989911", "0.49894553", "0.4988891", "0.49876794", "0.4979105", "0.49781913", "0.4978173", "0.49775997", "0.49736223", "0.49661034", "0.49646434", "0.49637187", "0.4915619", "0.4911713", "0.49082798", "0.49016201", "0.48908284", "0.48753545", "0.48640728", "0.48629457", "0.48568523", "0.48431483", "0.48395878", "0.4836226", "0.48280278", "0.48248687", "0.48168743", "0.48150632", "0.48137075" ]
0.0
-1
Create a new Query Template AssociationFunction.
@SuppressWarnings( "unchecked" ) public static <T> AssociationFunction<T> association( Association<T> association ) { return ( (AssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).association(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotFunctions createPivotFunctions();", "Function createFunction();", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}", "PivotFunction createPivotFunction();", "PivotForClause createPivotForClause();", "FunctionAnalytical createFunctionAnalytical();", "<C, P> AssociationClassCallExp<C, P> createAssociationClassCallExp();", "OpFunction createOpFunction();", "Relation createRelation();", "@Override\n\tpublic CommandFunction getNewFunction() {\n\t\treturn new txnscript();\n\t}", "OpFunctionCast createOpFunctionCast();", "public AggregateFunctionBuilder<T> createAggregate(){\r\n return AggregateFunction.forType(this);\r\n }", "private Function createLambdaFunction()\n {\n return lambdaFunctionBuilder().build();\n }", "AnalyticClause createAnalyticClause();", "QueryType createQueryType();", "public static Function<Type, Association> createAssociation(final boolean end1IsNavigable, final AggregationKind end1Aggregation, final String end1Name, final int end1Lower, final int end1Upper, final Type end1Type, final boolean end2IsNavigable, final AggregationKind end2Aggregation, final String end2Name, final int end2Lower, final int end2Upper) {\n return new Function<Type, Association>() {\n public Association apply(Type s) {\n return s.createAssociation(end1IsNavigable, end1Aggregation, end1Name, end1Lower, end1Upper, end1Type, end2IsNavigable, end2Aggregation, end2Name, end2Lower, end2Upper);\n }\n };\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "FromTableJoin createFromTableJoin();", "@SuppressWarnings( \"unchecked\" )\n public static <T> NamedAssociationFunction<T> namedAssociation( NamedAssociation<T> association )\n {\n return ( (NamedAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).namedAssociation();\n }", "public IdFunction() {}", "ActivationExpression createActivationExpression();", "QueryConstraintType createQueryConstraintType();", "LinkRelation createLinkRelation();", "PivotTable createPivotTable();", "public ASTNode createReference() {\n return new ASTFunctionReference(getName(), getNumParams());\n }", "FromTable createFromTable();", "Expression createExpression();", "@Override\r\n\tpublic void addFunction(Function function) {\n\t\tgetHibernateTemplate().save(function);\r\n\t}", "ForeignKey createForeignKey();", "public Function() {\r\n\r\n\t}", "public static AbstractSqlGeometryConstraint create(final String geometryIntersection) {\n AbstractSqlGeometryConstraint result;\n if (\"OVERLAPS\".equals(geometryIntersection)) {\n result = new OverlapsModeIntersection();\n } else if (\"CENTER\".equals(geometryIntersection)) {\n result = new CenterModeIntersection();\n } else {\n throw new IllegalArgumentException(\"geometryMode \" + geometryIntersection + \" is unknown or not supported\");\n }\n return result;\n }", "@NativeType(\"bgfx_occlusion_query_handle_t\")\n public static short bgfx_create_occlusion_query() {\n long __functionAddress = Functions.create_occlusion_query;\n return invokeC(__functionAddress);\n }", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public FromClause createFromClause()\n {\n return null;\n }", "@Override\n public void onInterfaceNewFunctionType(int CODE_FUNCTION_ADF_ID, Object objectFunctionType) {\n ModelItemManageFunctions modelItemManageFunctions = new ModelItemManageFunctions();\n modelItemManageFunctions.link = gSelectedListaItemId;\n modelItemManageFunctions.function = CODE_FUNCTION_ADF_ID;\n\n modelItemManageFunctions.JSON = createStringFunctionJSON(CODE_FUNCTION_ADF_ID, objectFunctionType);\n\n //modelItemLists.id:? Database assigns the value to this item\n //getting value auto generated\n Long newDataBaseItemId = gDataBaseManageFunctions.addNewItem(modelItemManageFunctions);\n modelItemManageFunctions.id = newDataBaseItemId;\n //create a counter to reorder table later\n modelItemManageFunctions.order = newDataBaseItemId;\n //inserting new item\n gRecyclerManageFunctions.addItemToRecycler(modelItemManageFunctions);\n\n }", "FunctionExtract createFunctionExtract();", "For createFor();", "GeneralClause createGeneralClause();", "public ATExpression base_tableExpression();", "TriggerType createTriggerType();", "Traditional createTraditional();", "static Identifier makeFunction(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TOP_LEVEL_FUNCTION, name);\r\n }\r\n }", "public abstract Anuncio creaAnuncioIndividualizado();", "public interface ISQLiteJoinTableCreator {\n\n}", "protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }", "private IPredicateElement createPredicate() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IAxiom.ELEMENT_TYPE, null, null);\n\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateRelationResult() {\n }", "private void addDerivedInstanceFunction(SourceModel.FunctionDefn.Algebraic functionDefn, TypeExpr declaredFunctionTypeExpr, SourceRange sourceRange) {\r\n \r\n CALTypeChecker typeChecker = compiler.getTypeChecker();\r\n String functionName = functionDefn.getName();\r\n ParseTreeNode functionParseTree = functionDefn.toParseTreeNode();\r\n \r\n functionParseTree.setInternallyGenerated(sourceRange);\r\n \r\n if (derivedInstanceFunctions == null) {\r\n derivedInstanceFunctions = functionParseTree;\r\n } else {\r\n functionParseTree.setNextSibling(derivedInstanceFunctions);\r\n derivedInstanceFunctions = functionParseTree;\r\n }\r\n \r\n typeChecker.addDerivedInstanceFunction(functionName, functionParseTree, declaredFunctionTypeExpr);\r\n }", "@Override\n public FlinkFnApi.UserDefinedFunctions createUserDefinedFunctionsProto() {\n return ProtoUtils.createUserDefinedFunctionsProto(\n getRuntimeContext(),\n scalarFunctions,\n config.get(PYTHON_METRIC_ENABLED),\n config.get(PYTHON_PROFILE_ENABLED));\n }", "void createFunction(ObjectPath functionPath, CatalogFunction function, boolean ignoreIfExists)\n throws FunctionAlreadyExistException, DatabaseNotExistException, CatalogException;", "static String getAlterArtifactInstancesAddAccountIdConstraintTemplate() {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD CONSTRAINT account_id_fk foreign key (account_id) references accounts(id)\";\n }", "private void createAthenaDataCatalog(Function function)\n {\n athenaDataCatalogBuilder(function.getFunctionArn()).build();\n }", "public ComponentFactory<T, E> toCreate(BiFunction<Constructor, Object[], Object>\n createFunction) {\n return new ComponentFactory<>(this.annotationType, this.classElement, this.contextConsumer, createFunction);\n }", "FunctionDecl createFunctionDecl();", "public abstract Anuncio creaAnuncioTematico();", "public static void main(String[] args) {\n\n Function<String, String> function1 = (string) -> string +string;\n System.out.println(function1.apply(\"aaa\"));\n\n Function<String,String> function2 =s -> new String(s);\n System.out.println(function2.apply(function2.apply(\"sss\")));\n\n// Function<String, Emp> function = s -> new Emp(s);\n// System.out.println(function.apply(\"yy\"));\n\n Function<String, Emp> function3 = Emp::new;\n System.out.println(function3.apply(\"yy\"));\n }", "public static TransitiveClosure instance() throws ViatraQueryException {\n if (INSTANCE == null) {\n \tINSTANCE = new TransitiveClosure();\n }\n return INSTANCE;\n }", "public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }", "Relationship createRelationship();", "private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "public ASTQuery subCreate(){\r\n\t\tASTQuery ast = create();\r\n\t\tast.setGlobalAST(this);\r\n\t\tast.setNSM(getNSM());\r\n\t\treturn ast;\r\n\t}", "AliasStatement createAliasStatement();", "Definition createDefinition();", "InteractionFlowExpression createInteractionFlowExpression();", "TT createTT();", "public abstract String createQuery();", "org.globus.swift.language.Function addNewFunction();", "PivotInClause createPivotInClause();", "Geq createGeq();", "@Override\n protected DBFunctionSymbol createTzFunctionSymbol() {\n return super.createTzFunctionSymbol();\n }", "public PgAmop() {\n this(DSL.name(\"pg_amop\"), null);\n }", "Expr createExpr();", "OrderByClause createOrderByClause();", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);\n }", "public Function getFunctionItem(SymbolicName functionName, StaticContext staticContext) throws XPathException {\n if (functionName.getArity() != 1) {\n return null;\n }\n final String uri = functionName.getComponentName().getURI();\n final String localName = functionName.getComponentName().getLocalPart();\n final SchemaType type = config.getSchemaType(new StructuredQName(\"\", uri, localName));\n if (type == null || type.isComplexType()) {\n return null;\n }\n final NamespaceResolver resolver = ((SimpleType) type).isNamespaceSensitive() ? staticContext.getNamespaceResolver() : null;\n if (type instanceof AtomicType) {\n return new AtomicConstructorFunction((AtomicType) type, resolver);\n } else if (type instanceof ListType) {\n return new ListConstructorFunction((ListType)type, resolver, true);\n } else {\n Callable callable = new Callable() {\n public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException {\n AtomicValue value = (AtomicValue) arguments[0].head();\n if (value == null) {\n return EmptySequence.getInstance();\n }\n return CastToUnion.cast(value, (UnionType) type, resolver, context.getConfiguration().getConversionRules());\n }\n };\n SequenceType returnType = ((UnionType) type).getResultTypeOfCast();\n return new CallableFunction(1, callable,\n new SpecificFunctionType(new SequenceType[]{SequenceType.OPTIONAL_ATOMIC}, returnType));\n }\n }", "public final Bindings function(String name) {\n addProp(name, false, \"function() {}\");\n return this;\n }", "public final CompletableFuture<CreateResponse> create(\n\t\t\tFunction<CreateRequest.Builder, ObjectBuilder<CreateRequest>> fn) throws IOException {\n\t\treturn create(fn.apply(new CreateRequest.Builder()).build());\n\t}", "ParamValueRelation createParamValueRelation();", "FullExpression createFullExpression();", "protected void createSubQueryJoinTableAggregation() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Person -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Team -->\r\n createSelectClauseAggregation(subQuery, queryJoinTable, left);\r\n final Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, parentQuery.jpaEntity);\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n handleAggregation(subQuery, queryJoinTable, right);\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n }", "CampusSearchQuery generateQuery();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "Join createJoin();", "public void create(Funcionario funcionario) {\r\n\t\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\t\tPreparedStatement stmt = null;\r\n\r\n\t\t\tString sql = \"insert into funcionario(codigo,cargo,nome,cpf,endereco,cidade,estado,telefone,email) values (?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tstmt = con.prepareStatement(sql); // instancia uma instrucao sql\r\n\t\t\t\tstmt.setString(1, funcionario.getCodigo()); \r\n\t\t\t\tstmt.setString(2, funcionario.getCargo()); \r\n\t\t\t\tstmt.setString(3, funcionario.getNome()); \r\n\t\t\t\tstmt.setString(4, funcionario.getCpf());\r\n\t\t\t\tstmt.setString(5, funcionario.getEndereco()); \r\n\t\t\t\tstmt.setString(6, funcionario.getCidade());\r\n\t\t\t\tstmt.setString(7, funcionario.getEstado()); \r\n\t\t\t\tstmt.setString(8, funcionario.getTelefone());\r\n\t\t\t\tstmt.setString(9, funcionario.getEmail());\r\n\r\n\t\t\t\tstmt.execute();\r\n\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tConnectionFactory.closeConnection(con, stmt);\r\n\t\t\t}\r\n\r\n\t\t}", "public static void setTemplateAggregate(String s){\r\n FUN_TEMPLATE_AGG = s;\r\n }", "And createAnd();", "And createAnd();", "public Function createFunction(String name, Address entryPoint, AddressSetView body,\n\t\t\tSourceType source) throws InvalidInputException, OverlappingFunctionException;", "Pivots createPivots();", "protected Query createAssocTypeQNameQuery(String queryText) throws SAXPathException\n {\n BooleanQuery booleanQuery = new BooleanQuery();\n \n XPathReader reader = new XPathReader();\n LuceneXPathHandler handler = new LuceneXPathHandler();\n handler.setNamespacePrefixResolver(namespacePrefixResolver);\n handler.setDictionaryService(dictionaryService);\n reader.setXPathHandler(handler);\n reader.parse(\"//\" + queryText);\n PathQuery query = handler.getQuery();\n query.setPathField(FIELD_PATH);\n query.setQnameField(FIELD_ASSOCTYPEQNAME);\n \n booleanQuery.add(query, Occur.SHOULD);\n booleanQuery.add(createPrimaryAssocTypeQNameQuery(queryText), Occur.SHOULD);\n \n return booleanQuery;\n }", "OpFunctionArg createOpFunctionArg();", "private static Function instantiateHiveFunction(\n ObjectPath functionPath, CatalogFunction function) {\n String functionClassName;\n if (function.getFunctionLanguage() == FunctionLanguage.JAVA) {\n functionClassName = function.getClassName();\n } else if (function.getFunctionLanguage() == FunctionLanguage.SCALA) {\n functionClassName = FLINK_SCALA_FUNCTION_PREFIX + function.getClassName();\n } else if (function.getFunctionLanguage() == FunctionLanguage.PYTHON) {\n functionClassName = FLINK_PYTHON_FUNCTION_PREFIX + function.getClassName();\n } else {\n throw new UnsupportedOperationException(\n \"HiveCatalog supports only creating\"\n + \" JAVA/SCALA or PYTHON based function for now\");\n }\n\n List<org.apache.hadoop.hive.metastore.api.ResourceUri> resources = new ArrayList<>();\n for (ResourceUri resourceUri : function.getFunctionResources()) {\n switch (resourceUri.getResourceType()) {\n case JAR:\n resources.add(\n new org.apache.hadoop.hive.metastore.api.ResourceUri(\n ResourceType.JAR, resourceUri.getUri()));\n break;\n case FILE:\n resources.add(\n new org.apache.hadoop.hive.metastore.api.ResourceUri(\n ResourceType.FILE, resourceUri.getUri()));\n break;\n case ARCHIVE:\n resources.add(\n new org.apache.hadoop.hive.metastore.api.ResourceUri(\n ResourceType.ARCHIVE, resourceUri.getUri()));\n break;\n default:\n throw new CatalogException(\n String.format(\n \"Unknown resource type %s for function %s.\",\n resourceUri.getResourceType(), functionPath.getFullName()));\n }\n }\n\n return new Function(\n // due to https://issues.apache.org/jira/browse/HIVE-22053, we have to normalize\n // function name ourselves\n functionPath.getObjectName().trim().toLowerCase(),\n functionPath.getDatabaseName(),\n functionClassName,\n null, // Owner name\n PrincipalType\n .GROUP, // Temporarily set to GROUP type because it's required by Hive. May\n // change later\n (int) (System.currentTimeMillis() / 1000),\n FunctionType.JAVA, // FunctionType only has JAVA now\n resources // Resource URIs\n );\n }", "public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}", "public static Factory factory() {\n return ext_accdt::new;\n }", "Atributo createAtributo();", "public Function getFunction();", "public void onCreate() {\r\n\t\tcreatorClass.onCreate(table);\r\n\t}", "Position_ordonnee createPosition_ordonnee();", "public abstract Expression generateExpression(GenerationContext context);" ]
[ "0.55219173", "0.5350816", "0.5310406", "0.52777535", "0.520859", "0.5197146", "0.5013253", "0.49388275", "0.4874986", "0.48226634", "0.48170117", "0.48167765", "0.4771236", "0.47106597", "0.4686907", "0.46828744", "0.46583942", "0.46460438", "0.46456698", "0.46168736", "0.4600005", "0.4587532", "0.455256", "0.4525735", "0.4521165", "0.44807446", "0.4459706", "0.444884", "0.4418879", "0.4413861", "0.44038674", "0.43987036", "0.43697113", "0.4347032", "0.4322042", "0.43076468", "0.43072322", "0.43058023", "0.42865378", "0.42848593", "0.42697796", "0.4237738", "0.42331558", "0.42106855", "0.42049107", "0.42017582", "0.41993535", "0.4192857", "0.41835", "0.41790363", "0.41778705", "0.4172338", "0.4162985", "0.4159947", "0.41564634", "0.41545188", "0.41509646", "0.41501114", "0.41413707", "0.41393223", "0.4130588", "0.41235805", "0.41159877", "0.41140372", "0.41127682", "0.4108277", "0.4104241", "0.4100081", "0.40980965", "0.40939477", "0.40908995", "0.40892377", "0.40872025", "0.408509", "0.40760407", "0.4062729", "0.4057769", "0.40361422", "0.40316197", "0.4029232", "0.40248933", "0.40246063", "0.40197295", "0.4018788", "0.4011735", "0.40114886", "0.40008602", "0.40008602", "0.40000683", "0.39971292", "0.3991101", "0.3990125", "0.3990124", "0.39892748", "0.39849377", "0.3983817", "0.3982062", "0.3980666", "0.3974572", "0.39739385" ]
0.51000214
6
Create a new Query Template ManyAssociationFunction.
@SuppressWarnings( "unchecked" ) public static <T> ManyAssociationFunction<T> manyAssociation( ManyAssociation<T> association ) { return ( (ManyAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).manyAssociation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotFunctions createPivotFunctions();", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(multipleTagSet));\n return newPredicate;\n }", "PivotForClause createPivotForClause();", "FromTableJoin createFromTableJoin();", "PivotFunction createPivotFunction();", "public void createClassManyManyBIENDSub(final ClassManyManyBIENDSub classManyManyBIENDSub) throws DaoException {\n\t\tLOG.debug(\"Create a new ClassManyManyBIENDSub entity\");\n\t\ttry {\n\t\t\tSession session = HibernateUtil.currentSession();\n\t\t\tsession.save(classManyManyBIENDSub);\n\t\t} catch (HibernateException e) {\n\t\t\tthrow new DaoException(e);\n\t\t}\n\t}", "Pivots createPivots();", "Multi createMulti();", "public void createManyToManyTable(Class sourceClass, Class referenceClass) {\n Connection connection = ConnectionPoll.getConnection();\n ManyToManyHandler manyToManyHandler = new ManyToManyHandler(connection);\n try {\n manyToManyHandler.createMtMTable(sourceClass, referenceClass);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n ConnectionPoll.releaseConnection(connection);\n }", "<C, P> AssociationClassCallExp<C, P> createAssociationClassCallExp();", "PivotInClause createPivotInClause();", "PivotTable createPivotTable();", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "boolean isMany();", "@Override\n\tvoid addOneToManyJoin(QueryBuilder sb, Relation relation, EFieldAccessType fieldReferenceType, SourceReference from, SourceReference to) {\n\t\t\n\t\t\n\t\tfinal String entityAliasName = from.getVarName();\n\t\tfinal String collectionAttrName = relation.getFrom().getAttribute().getName();\n\n\t\t// final String joinVarName = \"join\" + joinParamIdx++;\n\n\t\tfinal String joinVarName = to.getVarName();\n\t\t\n\t\taddOneToManyJoin(sb, entityAliasName, collectionAttrName, joinVarName);\n\t}", "protected void createSubQueryJoinTableAggregation() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Person -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Team -->\r\n createSelectClauseAggregation(subQuery, queryJoinTable, left);\r\n final Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, parentQuery.jpaEntity);\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n handleAggregation(subQuery, queryJoinTable, right);\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n }", "static KeyExtractor.Factory forMultipleMembers(Function<Class<?>, List<Member>> keyLookupFn) {\n Objects.requireNonNull(keyLookupFn, \"keyLookupFn\");\n return entityType -> new KeyExtractors.MultipleMembers(entityType, keyLookupFn.apply(entityType));\n }", "Relation createRelation();", "public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}", "@Test\n\tpublic void manyToManyTest() {\n\t\tSystem.out.println(\"============manyToManyTest=========\");\n\t\tUser u = new User();\n\t\tRole r = new Role();\n\t\tPrivilege p = new Privilege();\n\t\tUserRole ur = new UserRole();\n\t\tRolePrivilege rp = new RolePrivilege();\n\t\tDao.getDefaultContext().setShowSql(true);\n\t\tList<User> users = Dao.queryForEntityList(User.class,\n\t\t\t\tu.pagination(1, 10, //\n\t\t\t\t\t\tselect(), u.all(), \",\", ur.all(), \",\", r.all(), \",\", rp.all(), \",\", p.all(), from(), u.table(), //\n\t\t\t\t\t\t\" left join \", ur.table(), \" on \", oneToMany(), u.ID(), \"=\", ur.UID(), bind(), //\n\t\t\t\t\t\t\" left join \", r.table(), \" on \", oneToMany(), r.ID(), \"=\", ur.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", rp.table(), \" on \", oneToMany(), r.ID(), \"=\", rp.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", p.table(), \" on \", oneToMany(), p.ID(), \"=\", rp.PID(), bind(), //\n\t\t\t\t\t\t\" order by \", u.ID(), \",\", r.ID(), \",\", p.ID()));\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Role> roles = user.getUniqueNodeSet(Role.class);\n\t\t\tfor (Role role : roles)\n\t\t\t\tSystem.out.println(\"\\t\" + role.getRoleName());\n\t\t\tSet<Privilege> privs = user.getUniqueNodeSet(Privilege.class);\n\t\t\tfor (Privilege priv : privs)\n\t\t\t\tSystem.out.println(\"\\t\" + priv.getPrivilegeName());\n\t\t}\n\t}", "@SuppressWarnings( \"unchecked\" )\n public static <T> AssociationFunction<T> association( Association<T> association )\n {\n return ( (AssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).association();\n }", "protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }", "public ResultMap<Association> associations(QName associationTypeQName, Pagination pagination);", "Join createJoin();", "private void addOneToManyJoin(QueryBuilder sb, String entityAliasName, String collectionAttrName, String joinVarName) {\n\t\tsb.append(\" \")\n\t\t .append(entityAliasName).append(\".\").append(collectionAttrName)\n\t\t .append(\" \")\n\t\t .append(joinVarName);\n\t}", "public List<HasFormAssociation> listFormAssociations();", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();", "private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }", "public FriendList createFriendList();", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}", "public ResultMap<Association> associations(Pagination pagination);", "LinkRelation createLinkRelation();", "@Override\n\tprotected Entity createNewEntity(final Object baseObject) {\n\t\tProductAssociation productAssociation = getBean(ContextIdNames.PRODUCT_ASSOCIATION);\n\t\tproductAssociation.setGuid(new RandomGuidImpl().toString());\n\t\tproductAssociation.setCatalog(this.getImportJob().getCatalog());\n\t\treturn productAssociation;\n\t}", "private void addFromAssociation(final String elementName, final String collectionRole)\n \t\t\tthrows QueryException {\n \t\t//q.addCollection(collectionName, collectionRole);\n \t\tQueryableCollection persister = getCollectionPersister( collectionRole );\n \t\tType collectionElementType = persister.getElementType();\n \t\tif ( !collectionElementType.isEntityType() ) {\n \t\t\tthrow new QueryException( \"collection of values in filter: \" + elementName );\n \t\t}\n \n \t\tString[] keyColumnNames = persister.getKeyColumnNames();\n \t\t//if (keyColumnNames.length!=1) throw new QueryException(\"composite-key collection in filter: \" + collectionRole);\n \n \t\tString collectionName;\n \t\tJoinSequence join = new JoinSequence( getFactory() );\n \t\tcollectionName = persister.isOneToMany() ?\n \t\t\t\telementName :\n \t\t\t\tcreateNameForCollection( collectionRole );\n \t\tjoin.setRoot( persister, collectionName );\n \t\tif ( !persister.isOneToMany() ) {\n \t\t\t//many-to-many\n \t\t\taddCollection( collectionName, collectionRole );\n \t\t\ttry {\n \t\t\t\tjoin.addJoin( ( AssociationType ) persister.getElementType(),\n \t\t\t\t\t\telementName,\n \t\t\t\t\t\tJoinType.INNER_JOIN,\n \t\t\t\t\t\tpersister.getElementColumnNames(collectionName) );\n \t\t\t}\n \t\t\tcatch ( MappingException me ) {\n \t\t\t\tthrow new QueryException( me );\n \t\t\t}\n \t\t}\n \t\tjoin.addCondition( collectionName, keyColumnNames, \" = ?\" );\n \t\t//if ( persister.hasWhere() ) join.addCondition( persister.getSQLWhereString(collectionName) );\n \t\tEntityType elemType = ( EntityType ) collectionElementType;\n \t\taddFrom( elementName, elemType.getAssociatedEntityName(), join );\n \n \t}", "public final void mT__103() throws RecognitionException {\n try {\n int _type = T__103;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:73:8: ( 'table-many-to-many' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:73:10: 'table-many-to-many'\n {\n match(\"table-many-to-many\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public ResultMap<Association> associations();", "public ResultMap<Association> associations(QName associationTypeQName);", "List<TemplateRelation> getTemplateRelations() throws AccessDeniedException;", "public List<Object> selectByManyToMany(Class sourceClass, Class referenceClass) {\n Connection connection = ConnectionPoll.getConnection();\n ManyToManySelect manyToManySelect = new ManyToManySelect(connection, CanUseAuto.class);\n List<Object> list = manyToManySelect.selectAllfromM2MTable(sourceClass, referenceClass);\n ConnectionPoll.releaseConnection(connection);\n return list;\n }", "public interface ISQLiteJoinTableCreator {\n\n}", "Relationship createRelationship();", "@Query(\"MATCH(sp:ServiceProvider),(s:Skills) WHERE sp.email={email} and s.skillName={skillName} CREATE (sp)-[hs:has_skills]->(s) RETURN sp\")\n public ServiceProvider setHasSkillsRelation(@Param(\"email\") String email, @Param(\"skillName\") String skillName);", "protected MultiPhraseQuery.Builder newMultiPhraseQueryBuilder() {\n return new MultiPhraseQuery.Builder();\n }", "public RelatesToType createRelatesTo(List<GoalType> goalList, ActivityType activity) {\n\t\tRelatesToType relatesTo = mappingFactory.createRelatesToType();\n\t\tfor (GoalType goalType : goalList) {\n\t\t\trelatesTo.getGoal().add(goalType);\n\t\t}\t\t\n\t\trelatesTo.setActivity(activity);\n\t\treturn relatesTo;\n\t}", "PivotColumns createPivotColumns();", "FromTable createFromTable();", "Cascade createCascade();", "public ResultMap<Association> associations(QName associationTypeQName, Direction direction, Pagination pagination);", "public <A> BeanDescriptor<A> createElementDescriptor(DeployBeanDescriptor<A> elementDescriptor, ManyType manyType, boolean scalar) {\n ElementHelp elementHelp = elementHelper(manyType);\n if (manyType.isMap()) {\n if (scalar) {\n return new BeanDescriptorElementScalarMap<>(this, elementDescriptor, elementHelp);\n } else {\n return new BeanDescriptorElementEmbeddedMap<>(this, elementDescriptor, elementHelp);\n }\n }\n if (scalar) {\n return new BeanDescriptorElementScalar<>(this, elementDescriptor, elementHelp);\n } else {\n return new BeanDescriptorElementEmbedded<>(this, elementDescriptor, elementHelp);\n }\n }", "@SuppressWarnings( \"unchecked\" )\n public static <T> NamedAssociationFunction<T> namedAssociation( NamedAssociation<T> association )\n {\n return ( (NamedAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).namedAssociation();\n }", "org.hl7.fhir.ObservationRelated addNewRelated();", "Foreach createForeach();", "com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();", "public GiftCardProductQuery relatedProducts(ProductInterfaceQueryDefinition queryDef) {\n startField(\"related_products\");\n\n _queryBuilder.append('{');\n queryDef.define(new ProductInterfaceQuery(_queryBuilder));\n _queryBuilder.append('}');\n\n return this;\n }", "public abstract List<AbstractRelationshipTemplate> getIngoingRelations();", "private List<Criterion> createCriterions(String processLookup, List<Long> entityIdList, String entityType) {\r\n List<Criterion> criterions = new ArrayList<Criterion>();\r\n\r\n if (!StringUtils.isEmpty(processLookup)) {\r\n Criterion processCriterion = Restrictions.eq(\"proc.lookup\", processLookup);\r\n criterions.add(processCriterion);\r\n }\r\n\r\n if (entityIdList != null && !entityIdList.isEmpty()) {\r\n Criterion entityCriterion = Restrictions.in(\"entityId\", entityIdList);\r\n criterions.add(entityCriterion);\r\n }\r\n\r\n if (!StringUtils.isEmpty(entityType)) {\r\n Criterion entityTypeCriterion = Restrictions.eq(\"entityType\", entityType);\r\n criterions.add(entityTypeCriterion);\r\n }\r\n\r\n return criterions;\r\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "Collection<Facet> createFacets(Aggregations aggResult, FilterContext filterContext, DefaultLinkBuilder linkBuilder);", "Function createFunction();", "MultTable() //do not use the name of the constructor for the name of another method\n {}", "void create(Trubriques trubriques);", "OurIfcRelAssociatesMaterial createOurIfcRelAssociatesMaterial();", "CollectionParameter createCollectionParameter();", "PivotCol createPivotCol();", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "@SafeVarargs\n private static Restriction newMultiIN(CFMetaData cfMetaData, int firstIndex, List<ByteBuffer>... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n List<Term> terms = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, firstIndex + i));\n terms.add(toMultiItemTerminal(values[i].toArray(new ByteBuffer[0])));\n }\n return new MultiColumnRestriction.InWithValues(columnDefinitions, terms);\n }", "void addAssociation(Association association);", "private static Restriction newMultiSlice(CFMetaData cfMetaData, int firstIndex, Bound bound, boolean inclusive, ByteBuffer... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, i + firstIndex));\n }\n return new MultiColumnRestriction.Slice(columnDefinitions, bound, inclusive, toMultiItemTerminal(values));\n }", "LinkRelationsLibrary createLinkRelationsLibrary();", "WithCreate withTags(Object tags);", "@Override public SnpAssociationForm createForm(Association association) {\n\n\n SnpAssociationStandardMultiForm form = new SnpAssociationStandardMultiForm();\n\n // Set association ID\n form.setAssociationId(association.getId());\n form.setAssociationExtension(association.getAssociationExtension());\n\n // Set simple string and float association attributes\n form.setRiskFrequency(association.getRiskFrequency());\n form.setPvalueDescription(association.getPvalueDescription());\n form.setSnpType(association.getSnpType());\n form.setMultiSnpHaplotype(association.getMultiSnpHaplotype());\n form.setSnpApproved(association.getSnpApproved());\n form.setPvalueMantissa(association.getPvalueMantissa());\n form.setPvalueExponent(association.getPvalueExponent());\n form.setStandardError(association.getStandardError());\n form.setRange(association.getRange());\n form.setDescription(association.getDescription());\n\n // Set OR/Beta values\n form.setOrPerCopyNum(association.getOrPerCopyNum());\n form.setOrPerCopyRecip(association.getOrPerCopyRecip());\n form.setOrPerCopyRecipRange(association.getOrPerCopyRecipRange());\n form.setBetaNum(association.getBetaNum());\n form.setBetaUnit(association.getBetaUnit());\n form.setBetaDirection(association.getBetaDirection());\n\n // Add collection of Efo traits\n form.setEfoTraits(association.getEfoTraits());\n\n // For each locus get genes and risk alleles\n Collection<Locus> loci = association.getLoci();\n Collection<Gene> locusGenes = new ArrayList<>();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<RiskAllele>();\n\n // For multi-snp and standard snps we assume their is only one locus\n for (Locus locus : loci) {\n locusGenes.addAll(locus.getAuthorReportedGenes());\n locusRiskAlleles.addAll(locus.getStrongestRiskAlleles()\n .stream()\n .sorted((v1, v2) -> Long.compare(v1.getId(), v2.getId()))\n .collect(Collectors.toList()));\n\n // There should only be one locus thus should be safe to set these here\n form.setMultiSnpHaplotypeNum(locus.getHaplotypeSnpCount());\n form.setMultiSnpHaplotypeDescr(locus.getDescription());\n }\n\n\n // Get name of gene and add to form\n Collection<String> authorReportedGenes = new ArrayList<>();\n for (Gene locusGene : locusGenes) {\n authorReportedGenes.add(locusGene.getGeneName());\n }\n form.setAuthorReportedGenes(authorReportedGenes);\n\n // Handle snp rows\n Collection<GenomicContext> snpGenomicContexts = new ArrayList<GenomicContext>();\n Collection<SingleNucleotidePolymorphism> snps = new ArrayList<>();\n List<SnpFormRow> snpFormRows = new ArrayList<SnpFormRow>();\n List<SnpMappingForm> snpMappingForms = new ArrayList<SnpMappingForm>();\n for (RiskAllele riskAllele : locusRiskAlleles) {\n SnpFormRow snpFormRow = new SnpFormRow();\n snpFormRow.setStrongestRiskAllele(riskAllele.getRiskAlleleName());\n\n SingleNucleotidePolymorphism snp = riskAllele.getSnp();\n snps.add(snp);\n String rsID = snp.getRsId();\n snpFormRow.setSnp(rsID);\n\n Collection<Location> locations = snp.getLocations();\n for (Location location : locations) {\n SnpMappingForm snpMappingForm = new SnpMappingForm(rsID, location);\n snpMappingForms.add(snpMappingForm);\n }\n\n // Set proxy if one is present\n Collection<String> proxySnps = new ArrayList<>();\n if (riskAllele.getProxySnps() != null) {\n for (SingleNucleotidePolymorphism riskAlleleProxySnp : riskAllele.getProxySnps()) {\n proxySnps.add(riskAlleleProxySnp.getRsId());\n }\n }\n snpFormRow.setProxySnps(proxySnps);\n\n snpGenomicContexts.addAll(genomicContextRepository.findBySnpId(snp.getId()));\n snpFormRows.add(snpFormRow);\n }\n\n form.setSnpMappingForms(snpMappingForms);\n form.setGenomicContexts(snpGenomicContexts);\n form.setSnps(snps);\n form.setSnpFormRows(snpFormRows);\n return form;\n }", "public abstract Anuncio creaAnuncioIndividualizado();", "ParamValueRelation createParamValueRelation();", "@Override\n public String getEntityName() {\n return \"FavouriteAssociations\";\n }", "public static <K extends ComponentAnnotation> ArrayListMultimap<K, EntityMention> getContainedEntityMentionOrCreateNewForAll(\n JCas aJCas, Collection<K> annos, HashMultimap<Word, EntityMention> word2EntityMentions,\n String componentId) {\n ArrayListMultimap<K, EntityMention> resultMap = ArrayListMultimap.create();\n for (K anno : annos) {\n resultMap.putAll(anno,\n getContainedEntityMentionOrCreateNew(aJCas, anno, word2EntityMentions, componentId));\n }\n return resultMap;\n }", "void createOrUpdateSroAssociatedObligations(List<PsdSroAssocOblig> listPsdSroAssocOblig);", "public void creatUserJoins(int tid, int uid, Timestamp time);", "Obligacion createObligacion();", "public AggregateFunctionBuilder<T> createAggregate(){\r\n return AggregateFunction.forType(this);\r\n }", "public Joins()\n {\n joins = new ArrayList<Join>();\n }", "GroupQueryBuilder addAssociatedUsers(Collection<User> users);", "public void oneToManyToJsonLimit() {\n Result<Record1<JSON>> result1 = ctx.select(\n jsonObject(\n key(\"productLine\").value(PRODUCTLINE.PRODUCT_LINE),\n key(\"textDescription\").value(PRODUCTLINE.TEXT_DESCRIPTION),\n key(\"products\").value(jsonArrayAgg(\n jsonObject(key(\"productName\").value(PRODUCT.PRODUCT_NAME),\n key(\"productVendor\").value(PRODUCT.PRODUCT_VENDOR),\n key(\"quantityInStock\").value(PRODUCT.QUANTITY_IN_STOCK)))\n .orderBy(PRODUCT.QUANTITY_IN_STOCK))))\n .from(PRODUCTLINE)\n .join(PRODUCT)\n .on(PRODUCTLINE.PRODUCT_LINE.eq(PRODUCT.PRODUCT_LINE))\n .groupBy(PRODUCTLINE.PRODUCT_LINE, PRODUCTLINE.TEXT_DESCRIPTION)\n .orderBy(PRODUCTLINE.PRODUCT_LINE)\n .limit(2)\n .fetch();\n\n System.out.println(\"Example 4.1 (one-to-many and limit):\\n\" + result1.formatJSON());\n\n // limit 'many' in one-to-many\n Result<Record1<JSON>> result2 = ctx.select(\n jsonObject(\n key(\"productLine\").value(PRODUCTLINE.PRODUCT_LINE),\n key(\"textDescription\").value(PRODUCTLINE.TEXT_DESCRIPTION),\n key(\"products\").value(jsonArrayAgg(\n jsonObject(key(\"productName\").value(field(name(\"productName\"))),\n key(\"productVendor\").value(field(name(\"productVendor\"))),\n key(\"quantityInStock\").value(field(name(\"quantityInStock\")))))\n .orderBy(field(name(\"quantityInStock\"))))))\n .from(PRODUCTLINE,\n lateral(select(PRODUCT.PRODUCT_NAME.as(\"productName\"),\n PRODUCT.PRODUCT_VENDOR.as(\"productVendor\"),\n PRODUCT.QUANTITY_IN_STOCK.as(\"quantityInStock\"))\n .from(PRODUCT)\n .where(PRODUCTLINE.PRODUCT_LINE.eq(PRODUCT.PRODUCT_LINE))\n .orderBy(PRODUCT.QUANTITY_IN_STOCK)\n .limit(2)).asTable(\"t\"))\n .groupBy(PRODUCTLINE.PRODUCT_LINE, PRODUCTLINE.TEXT_DESCRIPTION)\n .orderBy(PRODUCTLINE.PRODUCT_LINE)\n .fetch();\n\n System.out.println(\"Example 4.2 (one-to-many and limit):\\n\" + result2.formatJSON());\n\n // limit 'one' and 'many' in one-to-many\n Result<Record1<JSON>> result3 = ctx.select(\n jsonObject(\n key(\"productLine\").value(PRODUCTLINE.PRODUCT_LINE),\n key(\"textDescription\").value(PRODUCTLINE.TEXT_DESCRIPTION),\n key(\"products\").value(jsonArrayAgg(\n jsonObject(key(\"productName\").value(field(name(\"productName\"))),\n key(\"productVendor\").value(field(name(\"productVendor\"))),\n key(\"quantityInStock\").value(field(name(\"quantityInStock\")))))\n .orderBy(field(name(\"quantityInStock\"))))))\n .from(PRODUCTLINE,\n lateral(select(PRODUCT.PRODUCT_NAME.as(\"productName\"),\n PRODUCT.PRODUCT_VENDOR.as(\"productVendor\"),\n PRODUCT.QUANTITY_IN_STOCK.as(\"quantityInStock\"))\n .from(PRODUCT)\n .where(PRODUCTLINE.PRODUCT_LINE.eq(PRODUCT.PRODUCT_LINE))\n .orderBy(PRODUCT.QUANTITY_IN_STOCK)\n .limit(2)).asTable(\"t\")) // limit 'many'\n .groupBy(PRODUCTLINE.PRODUCT_LINE, PRODUCTLINE.TEXT_DESCRIPTION)\n .orderBy(PRODUCTLINE.PRODUCT_LINE)\n .limit(3) // limit 'one'\n .fetch();\n\n System.out.println(\"Example 4.3 (one-to-many and limit):\\n\" + result3.formatJSON());\n\n var result4 = ctx.select(\n PRODUCTLINE.PRODUCT_LINE, PRODUCTLINE.TEXT_DESCRIPTION,\n select(PRODUCT.PRODUCT_NAME, PRODUCT.PRODUCT_VENDOR, PRODUCT.QUANTITY_IN_STOCK)\n .from(PRODUCT)\n .where(PRODUCT.PRODUCT_LINE.eq(PRODUCTLINE.PRODUCT_LINE))\n .limit(5) // limit 'many'\n .forJSON().path().asField(\"products\"))\n .from(PRODUCTLINE)\n .limit(2) // limit 'one'\n .fetch();\n\n System.out.println(\"Example 4.4 (one-to-many):\\n\" + result4.formatJSON());\n }", "public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }", "public interface CollectionField extends RelationField {\n\n}", "public void executeOneToManyAssociationsCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT *\n // FROM Supplier s\n Criteria criteria = session.createCriteria(Supplier.class);\n\n // INNER JOIN Product p\n // ON s.id = p.supplier_id\n // WHERE p.price > 25;\n criteria.createCriteria(\"products\").add(Restrictions.gt(\"price\", new Double(25.0)));\n\n displaySupplierList(criteria.list());\n transaction.commit();\n }", "@Override\n public List<PatientCaseDto> getMany() {\n return null;\n }", "public static Criteria newAndCreateCriteria() {\n YoungSeckillPromotionProductRelationExample example = new YoungSeckillPromotionProductRelationExample();\n return example.createCriteria();\n }", "KdmRelationsFactory getKdmRelationsFactory();", "tbls createtbls();", "public Association createAssociation(SnpAssociationStandardMultiForm form) {\n Association association = setCommonAssociationElements(form);\n association.setSnpInteraction(false);\n\n // Add loci to association, for multi-snp and standard snps we assume their is only one locus\n Collection<Locus> loci = new ArrayList<>();\n Locus locus = new Locus();\n\n // Set locus description and haplotype count\n // Set this number to the number of rows entered by curator\n Integer numberOfRows = form.getSnpFormRows().size();\n if (numberOfRows > 1) {\n locus.setHaplotypeSnpCount(numberOfRows);\n association.setMultiSnpHaplotype(true);\n }\n\n if (form.getMultiSnpHaplotypeDescr() != null && !form.getMultiSnpHaplotypeDescr().isEmpty()) {\n locus.setDescription(form.getMultiSnpHaplotypeDescr());\n }\n else {\n if (numberOfRows > 1) {\n locus.setDescription(numberOfRows + \"-SNP haplotype\");\n }\n else {\n locus.setDescription(\"Single variant\");\n }\n }\n\n // Create gene from each string entered, may sure to check pre-existence\n Collection<String> authorReportedGenes = form.getAuthorReportedGenes();\n Collection<Gene> locusGenes = lociAttributesService.createGene(authorReportedGenes);\n\n // Set locus genes\n locus.setAuthorReportedGenes(locusGenes);\n\n // Handle rows entered for haplotype by curator\n Collection<SnpFormRow> rows = form.getSnpFormRows();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<>();\n\n for (SnpFormRow row : rows) {\n\n // Create snps from row information\n String curatorEnteredSNP = row.getSnp();\n SingleNucleotidePolymorphism snp = lociAttributesService.createSnp(curatorEnteredSNP);\n\n // Get the curator entered risk allele\n String curatorEnteredRiskAllele = row.getStrongestRiskAllele();\n\n // Create a new risk allele and assign newly created snp\n RiskAllele riskAllele = lociAttributesService.createRiskAllele(curatorEnteredRiskAllele, snp);\n\n // If association is not a multi-snp haplotype save frequency to risk allele\n if (!form.getMultiSnpHaplotype()) {\n riskAllele.setRiskFrequency(form.getRiskFrequency());\n }\n\n // Check for proxies and if we have one create a proxy snps\n if (row.getProxySnps() != null && !row.getProxySnps().isEmpty()) {\n Collection<SingleNucleotidePolymorphism> riskAlleleProxySnps = new ArrayList<>();\n\n for (String curatorEnteredProxySnp : row.getProxySnps()) {\n SingleNucleotidePolymorphism proxySnp = lociAttributesService.createSnp(curatorEnteredProxySnp);\n riskAlleleProxySnps.add(proxySnp);\n }\n\n riskAllele.setProxySnps(riskAlleleProxySnps);\n }\n\n locusRiskAlleles.add(riskAllele);\n }\n\n // Assign all created risk alleles to locus\n locus.setStrongestRiskAlleles(locusRiskAlleles);\n\n // Add locus to collection and link to our association\n loci.add(locus);\n association.setLoci(loci);\n return association;\n }", "public ResultMap<Association> associations(Direction direction, Pagination pagination);", "public MultiPhraseQuery getExpandedMultiPhraseQuery() {\n if (scoredTerms == null) {\n throw new IllegalArgumentException(\"Scored terms is not set\");\n }\n\n int sizeOfNewQueryTerms = getSizeOfNewQueryTerms();\n Term[] expandedQueryTerms = new Term[sizeOfNewQueryTerms];\n\n int newQueryTermsIndex = 0;\n\n for (int i = 0; i < expandedQueryTerms.length; i++) {\n if (i < originalQueryTerms.length) {\n expandedQueryTerms[i] = new Term(PhotoFields.TAGS, originalQueryTerms[i]);\n } else {\n for (int j = newQueryTermsIndex; j < scoredTerms.length; j++) {\n String term = scoredTerms[j].getTerm();\n\n if (!termExistsInOriginalQuery(term)) {\n expandedQueryTerms[i] = new Term(PhotoFields.TAGS, term);\n newQueryTermsIndex++;\n\n break;\n }\n\n newQueryTermsIndex++;\n }\n }\n }\n\n return new MultiPhraseQuery\n .Builder()\n .add(expandedQueryTerms)\n .build();\n }", "UsingCols createUsingCols();", "public Map<String, HasFormAssociation> fetchFormAssociations();", "public void addRelations(T model);", "default void create(Iterable<E> entities, RequestContext context)\n throws TechnicalException, ConflictException {\n entities.forEach(entity -> create(entity, context));\n }", "int countAssociations();", "private MetaSparqlRequest createQueryMT2() {\n\t\treturn createQueryMT1();\n\t}", "private void createQualificationsList(){\n\t\tlistedQualList.clear();\n\t\tlistedQuals=jdbc.get_qualifications();\n\t\tfor(Qualification q: listedQuals){\n\t\t\tlistedQualList.addElement(q.getQualName());\n\t\t}\n\t}", "public abstract void generateFeatureVector(Factor<Scope> f);" ]
[ "0.5110558", "0.50118184", "0.5004318", "0.48269135", "0.4756087", "0.46894988", "0.45965335", "0.45851862", "0.45274442", "0.4509202", "0.4446048", "0.44238284", "0.43962494", "0.43952763", "0.43423352", "0.43109497", "0.42874065", "0.4252025", "0.42401543", "0.4224687", "0.42085412", "0.4203493", "0.4193214", "0.41825536", "0.4181957", "0.41363052", "0.40845606", "0.40828505", "0.40703243", "0.40573466", "0.4042909", "0.40347788", "0.40182236", "0.40147433", "0.39934084", "0.39916667", "0.39837757", "0.3978448", "0.39710334", "0.39677274", "0.39591166", "0.39566386", "0.3891512", "0.38865873", "0.3872489", "0.3833976", "0.38289964", "0.38111043", "0.3807001", "0.38025272", "0.380176", "0.38014543", "0.380117", "0.37759888", "0.3772475", "0.3771143", "0.37669966", "0.37657154", "0.37550968", "0.37460008", "0.37454396", "0.37399346", "0.37390488", "0.3736295", "0.37352163", "0.37301278", "0.37220478", "0.37203303", "0.3714024", "0.3711434", "0.37112576", "0.3702109", "0.37001714", "0.36982375", "0.36953437", "0.3693904", "0.36937827", "0.36743772", "0.3670572", "0.3665115", "0.3664346", "0.36602223", "0.36527747", "0.3652519", "0.36461982", "0.36405078", "0.36388385", "0.36374262", "0.3637107", "0.36357772", "0.3611937", "0.36088368", "0.36078474", "0.36072138", "0.35818037", "0.3581296", "0.35785148", "0.35731506", "0.35718504", "0.3565696" ]
0.6733301
0
Create a new Query Template NamedAssociationFunction.
@SuppressWarnings( "unchecked" ) public static <T> NamedAssociationFunction<T> namedAssociation( NamedAssociation<T> association ) { return ( (NamedAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).namedAssociation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotFunctions createPivotFunctions();", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}", "PivotForClause createPivotForClause();", "PivotFunction createPivotFunction();", "Function createFunction();", "public Function( String name )\n {\n this.name = name;\n }", "static Identifier makeFunction(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TOP_LEVEL_FUNCTION, name);\r\n }\r\n }", "private static FuncionalidadeCustos create(String id, String name) {\n FuncionalidadeCustos result = new FuncionalidadeCustos(id, name);\n addToMap(id, result);\n return result;\n }", "<C, P> AssociationClassCallExp<C, P> createAssociationClassCallExp();", "FunctionAnalytical createFunctionAnalytical();", "@SuppressWarnings( \"unchecked\" )\n public static <T> AssociationFunction<T> association( Association<T> association )\n {\n return ( (AssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).association();\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "OpFunction createOpFunction();", "QueryKey createQueryKey(String name);", "public final Bindings function(String name) {\n addProp(name, false, \"function() {}\");\n return this;\n }", "protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }", "void createKeyword(String name);", "private Function createLambdaFunction()\n {\n return lambdaFunctionBuilder().build();\n }", "Traditional createTraditional();", "QueryType createQueryType();", "public ASTNode createReference() {\n return new ASTFunctionReference(getName(), getNumParams());\n }", "public static TracingHelper create(Function<ContainerRequestContext, String> nameFunction) {\n return new TracingHelper(nameFunction);\n }", "PivotTable createPivotTable();", "public AggregateFunctionBuilder<T> createAggregate(){\r\n return AggregateFunction.forType(this);\r\n }", "NamedParameter createNamedParameter();", "AliasStatement createAliasStatement();", "AnalyticClause createAnalyticClause();", "@Override\n protected DBFunctionSymbol createTzFunctionSymbol() {\n return super.createTzFunctionSymbol();\n }", "AlphabetNameReference createAlphabetNameReference();", "QueryConstraintType createQueryConstraintType();", "@Override\n\tpublic StoredProcedureQuery createNamedStoredProcedureQuery(String name) {\n\t\treturn null;\n\t}", "ActivationExpression createActivationExpression();", "@Override\n\tpublic Query createNamedQuery(String name) {\n\t\treturn null;\n\t}", "NamedType createNamedType();", "@Nonnull\n public JDK8TriggerBuilder <T> withIdentity (final String name)\n {\n m_aTriggerKey = new TriggerKey (name, null);\n return this;\n }", "TemplateParameter createTemplateParameter();", "For createFor();", "PivotInClause createPivotInClause();", "@Override\n\tpublic CommandFunction getNewFunction() {\n\t\treturn new txnscript();\n\t}", "OpFunctionCast createOpFunctionCast();", "@Override\n\tpublic <T> TypedQuery<T> createNamedQuery(String name, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public IdFunction() {}", "FromTableJoin createFromTableJoin();", "Expression createExpression();", "Observable<QueryKey> createQueryKeyAsync(String name);", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "FunctionExtract createFunctionExtract();", "public static void setTemplateAggregate(String s){\r\n FUN_TEMPLATE_AGG = s;\r\n }", "AliasVariable createAliasVariable();", "public DetachedCriteriaX createAlias(String associationPath, String alias)\r\n {\r\n\t\tthis.getCriteria().createAlias( associationPath, alias );\r\n\t\treturn this;\r\n }", "public RelationPredicate(String name){\n\t\tthis.name=name;\n\t}", "IFMLNamedElement createIFMLNamedElement();", "public FromClause createFromClause()\n {\n return null;\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "TriggerType createTriggerType();", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "OrderByClause createOrderByClause();", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(multipleTagSet));\n return newPredicate;\n }", "public ExpressionFunction getFunction(String name) { return wrappedSerializationContext.getFunction(name); }", "ForeignKey createForeignKey();", "public WCSpan(String name,\n NSDictionary<String, WOAssociation> someAssociations,\n WOElement template)\n {\n super(\"span\", someAssociations, template);\n\n if (_dojoType == null)\n {\n throw new WODynamicElementCreationException(\n \"<\" + getClass().getName() + \"> 'dojoType' binding must \"\n + \"be specified.\");\n }\n }", "Directive createDirective();", "public static QualifiedName create(final String namespace, final String name) {\n\t\treturn create(namespace + name);\n\t}", "@NotNull\n @Contract(pure = true)\n public PsiScriptNameExpression create(int lineNumber) {\n return new PsiScriptNameExpression(lineNumber);\n }", "public DetachedCriteriaX createCriteria(String associationPath) {\r\n return(\r\n new DetachedCriteriaX(\r\n this.getImpl(),\r\n this.getCriteria().createCriteria(associationPath)\r\n )\r\n );\r\n }", "TT createTT();", "public StandardDTEDNameTranslator() {}", "public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc,\n String name )\n {\n return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name );\n }", "GeneralClause createGeneralClause();", "Relation createRelation();", "Pivots createPivots();", "@Override\n public String getFormatFunctionName(CollectionConfig collectionConfig) {\n return staticFunctionName(Name.from(collectionConfig.getEntityName(), \"path\"));\n }", "public static AbstractSqlGeometryConstraint create(final String geometryIntersection) {\n AbstractSqlGeometryConstraint result;\n if (\"OVERLAPS\".equals(geometryIntersection)) {\n result = new OverlapsModeIntersection();\n } else if (\"CENTER\".equals(geometryIntersection)) {\n result = new CenterModeIntersection();\n } else {\n throw new IllegalArgumentException(\"geometryMode \" + geometryIntersection + \" is unknown or not supported\");\n }\n return result;\n }", "public static Function<Type, Association> createAssociation(final boolean end1IsNavigable, final AggregationKind end1Aggregation, final String end1Name, final int end1Lower, final int end1Upper, final Type end1Type, final boolean end2IsNavigable, final AggregationKind end2Aggregation, final String end2Name, final int end2Lower, final int end2Upper) {\n return new Function<Type, Association>() {\n public Association apply(Type s) {\n return s.createAssociation(end1IsNavigable, end1Aggregation, end1Name, end1Lower, end1Upper, end1Type, end2IsNavigable, end2Aggregation, end2Name, end2Lower, end2Upper);\n }\n };\n }", "ConditionNameReference createConditionNameReference();", "String getInizializedFunctionName();", "@Override\n public String getCustomFunctionInvocation(String functionName, int argumentCount) {\n if (argumentCount == 0) {\n return \"OPERATOR('\" + functionName + \"',''\";\n }\n\n return \"OPERATOR('\" + functionName + \"',\";\n }", "@FactoryFunc\r\n\t@Function Element createElement(String tagName);", "PivotCol createPivotCol();", "Graph callConstructQuery(String name, Map<String, String> params);", "String assemblerCtor() {\n StringBuilder sb = new StringBuilder( entityType.getSimpleName() );\n sb.append( \"( \" );\n String params\n = entityMetaData.typeMap.values().stream().map( c -> c.\n getSimpleName() )\n .collect( Collectors.joining( \", \" ) );\n return sb.append( params ).append( ')' ).toString();\n }", "private String replaceFullNameWithConstructor(String typeName) {\r\n\t\tint pos = typeName.lastIndexOf('.');\r\n\t\treturn JavascriptKeywords.CONSTRUCTOR + typeName.substring(pos);\r\n\t}", "DataNameReference createDataNameReference();", "FromTable createFromTable();", "VariationPointName createVariationPointName();", "private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "private IPredicateElement createPredicate() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(IAxiom.ELEMENT_TYPE, null, null);\n\t}", "public FunctionDeclaration(SimpleReference name, int start, int end) {\n\tthis(name.getName(), name.sourceStart(), name.sourceEnd(), start, end);\n }", "Definition createDefinition();", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "SpecialNamesConditionNameReference createSpecialNamesConditionNameReference();", "public ResultMap<Association> associations(QName associationTypeQName);", "protected Query createAssocTypeQNameQuery(String queryText) throws SAXPathException\n {\n BooleanQuery booleanQuery = new BooleanQuery();\n \n XPathReader reader = new XPathReader();\n LuceneXPathHandler handler = new LuceneXPathHandler();\n handler.setNamespacePrefixResolver(namespacePrefixResolver);\n handler.setDictionaryService(dictionaryService);\n reader.setXPathHandler(handler);\n reader.parse(\"//\" + queryText);\n PathQuery query = handler.getQuery();\n query.setPathField(FIELD_PATH);\n query.setQnameField(FIELD_ASSOCTYPEQNAME);\n \n booleanQuery.add(query, Occur.SHOULD);\n booleanQuery.add(createPrimaryAssocTypeQNameQuery(queryText), Occur.SHOULD);\n \n return booleanQuery;\n }", "public Function() {\r\n\r\n\t}", "public interface CustomConstruct extends AgnosticStatement, QueryCondition {\n}", "public TableName name();", "AbstractVariationPointName createAbstractVariationPointName();", "@Override\n protected DBConcatFunctionSymbol createRegularDBConcat(int arity) {\n return new NullToleratingDBConcatFunctionSymbol(CONCAT_STR, arity, dbStringType, abstractRootDBType, false);\n }", "@NativeType(\"bgfx_occlusion_query_handle_t\")\n public static short bgfx_create_occlusion_query() {\n long __functionAddress = Functions.create_occlusion_query;\n return invokeC(__functionAddress);\n }", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);\n }" ]
[ "0.5308998", "0.5236083", "0.5218183", "0.5170452", "0.50301206", "0.49734697", "0.49021283", "0.48149344", "0.4802504", "0.4664896", "0.46411985", "0.4606364", "0.45949697", "0.45874375", "0.4555376", "0.45461154", "0.45164126", "0.45018604", "0.44260484", "0.4424496", "0.43947688", "0.43894982", "0.43700573", "0.43663508", "0.43663436", "0.43586212", "0.43421835", "0.4333077", "0.43245053", "0.43133244", "0.4311217", "0.4304887", "0.430406", "0.42876297", "0.42704767", "0.42526612", "0.4239036", "0.42344946", "0.42255566", "0.42055959", "0.42043445", "0.41836315", "0.41722023", "0.41647735", "0.41532412", "0.41408557", "0.41368064", "0.41353095", "0.41322693", "0.41229767", "0.4121825", "0.41166446", "0.4111234", "0.41000354", "0.40991235", "0.40945467", "0.40885356", "0.40851712", "0.4081533", "0.40807647", "0.4076427", "0.40745428", "0.40694678", "0.40601227", "0.40578926", "0.40568683", "0.40553957", "0.4050539", "0.40477586", "0.404593", "0.40410498", "0.40394613", "0.40372044", "0.40314746", "0.4018657", "0.40171498", "0.401588", "0.40145636", "0.40077478", "0.40075424", "0.40070856", "0.4003383", "0.4000355", "0.39903843", "0.39781862", "0.395782", "0.3950439", "0.39481792", "0.39480707", "0.39312655", "0.39230227", "0.39207062", "0.39205545", "0.39135912", "0.3911715", "0.39065966", "0.39051396", "0.39046362", "0.3901139", "0.3896254" ]
0.62529
0
And/Or/Not | Create a new AND specification.
@SafeVarargs public static AndSpecification and( Specification<Composite> left, Specification<Composite> right, Specification<Composite>... optionalRight ) { return new AndSpecification( prepend( left, prepend( right, Arrays.asList( optionalRight ) ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnd(boolean and) {\n reqIsAnd = and;\n }", "public void setAndOr (String AndOr);", "public String getAndOr();", "And createAnd();", "And createAnd();", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public LogicGateAND() {\r\n\t\t// Initialize input and output ports\r\n\t\tsuper(Operators.AND, new IDynamicInterface(2), new IFixedInterface(new IPort()));\r\n\t}", "public FluentExp<Boolean> and (SQLExpression<Boolean> expr)\n {\n return Ops.and(this, expr);\n }", "private Term parseLogicalAnd(final boolean required) throws ParseException {\n Term t1 = parseComparison(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"&&\") || isKeyword(\"and\")) {\n Term t2 = parseComparison(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.AndB(t1, t2);\n } else {\n reportTypeErrorB2(\"'&&' or 'and'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "void visit(final AndCondition andCondition);", "public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public RtAndOp(RtExpr[] paras) {\n super(paras);\n }", "IRequirement and(IRequirement requirement);", "Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public final void ruleOpAnd() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:445:2: ( ( '&&' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:447:1: '&&'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n match(input,14,FOLLOW_14_in_ruleOpAnd886); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\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 And(Formula f1, Formula f2) {\n\t\tsuper(f1, f2);\n\t}", "public final void mAND() throws RecognitionException {\n try {\n int _type = AND;\n // /Users/benjamincoe/HackWars/C.g:217:5: ( '&&' )\n // /Users/benjamincoe/HackWars/C.g:217:7: '&&'\n {\n match(\"&&\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public LogicalOperator() {\n this.logical = Logical.And;\n }", "private static Expression constructBinaryFilterTreeWithAnd(List<Expression> expressions) {\n if (expressions.size() == 2) {\n return new LogicAndExpression(expressions.get(0), expressions.get(1));\n } else {\n return new LogicAndExpression(\n expressions.get(0),\n constructBinaryFilterTreeWithAnd(expressions.subList(1, expressions.size())));\n }\n }", "public final void rule__AstExpressionAnd__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2818:1: ( ( '&&' ) | ( 'and' ) )\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==17) ) {\n alt13=1;\n }\n else if ( (LA13_0==18) ) {\n alt13=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n switch (alt13) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2820:1: '&&'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n match(input,17,FOLLOW_17_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06085); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2828:1: 'and'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n match(input,18,FOLLOW_18_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06105); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\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 static BinaryExpression and(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public final CQLParser.andExpression_return andExpression() throws RecognitionException {\n CQLParser.andExpression_return retval = new CQLParser.andExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token AND88=null;\n CQLParser.relationalExpression_return relationalExpression87 = null;\n\n CQLParser.relationalExpression_return relationalExpression89 = null;\n\n\n Object AND88_tree=null;\n\n errorMessageStack.push(\"AND expression\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:2: ( relationalExpression ( AND relationalExpression )* )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:4: relationalExpression ( AND relationalExpression )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_relationalExpression_in_andExpression1729);\n relationalExpression87=relationalExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, relationalExpression87.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:25: ( AND relationalExpression )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==AND) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:26: AND relationalExpression\n \t {\n \t AND88=(Token)match(input,AND,FOLLOW_AND_in_andExpression1732); \n \t AND88_tree = (Object)adaptor.create(AND88);\n \t root_0 = (Object)adaptor.becomeRoot(AND88_tree, root_0);\n\n \t pushFollow(FOLLOW_relationalExpression_in_andExpression1735);\n \t relationalExpression89=relationalExpression();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, relationalExpression89.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop();\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "public AndQueryFactory(PatternQueryGenerator patternQueryGenerator) {\n\t\tsuper(patternQueryGenerator);\n\t}", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "Or createOr();", "Or createOr();", "public void visita(And and) {\n and.getOperando(0).accept(this);\r\n Resultado resIzq = new Resultado(resParcial.getResultado());\r\n if (resIzq.equals(Resultado.COD_TRUE)) {\r\n resIzq.setEjemplo(resParcial.getEjemplo());\r\n } else {\r\n resIzq.setContraejemplo(resParcial.getContraejemplo());\r\n }\r\n and.getOperando(1).accept(this);\r\n Resultado resDer = new Resultado(resParcial.getResultado());\r\n if (resDer.equals(Resultado.COD_TRUE)) {\r\n resDer.setEjemplo(resParcial.getEjemplo());\r\n } else {\r\n resDer.setContraejemplo(resParcial.getContraejemplo());\r\n }\r\n Resultado resAND;\r\n try {\r\n boolean part1 = Boolean.parseBoolean(resIzq.getResultado());\r\n boolean part2 = Boolean.parseBoolean(resDer.getResultado());\r\n part1 = part1 && part2;\r\n resAND = new Resultado(String.valueOf(part1));\r\n if (part1) {\r\n resAND.setEjemplo(resIzq.getEjemplo());\r\n } else if (part2) {\r\n resAND.setContraejemplo(resIzq.getContraejemplo());\r\n } else {\r\n resAND.setContraejemplo(resDer.getContraejemplo());\r\n }\r\n } catch (Exception e) {\r\n if ((resIzq.getResultado().equals(Resultado.COD_FALSE)) ||\r\n (resDer.getResultado().equals(Resultado.COD_FALSE))) {\r\n resAND = new Resultado(Resultado.COD_FALSE);\r\n } else {\r\n resAND = new Resultado(Resultado.COD_MAYBEF);\r\n }\r\n }\r\n resParcial = resAND;\r\n\r\n }", "public static Predicate and(Predicate... predicates)\n {\n return new LogicPredicate(Type.AND, predicates);\n }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.AND)\n default IData and(IData other) {\n \n return notSupportedOperator(OperatorType.AND);\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public static TreeNode makeAnd(List<TreeNode> nodes) {\n return new AndNode(nodes);\n }", "private Term parseBitwiseAnd(final boolean required) throws ParseException {\n Term t1 = parseAdd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '&') {\n Term t2 = parseAdd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.AndI(t1, t2);\n } else {\n reportTypeErrorI2(\"'&'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "ANDGateway createANDGateway();", "@Test\n public void testAnd() {\n if (true && addValue()) {\n assertThat(flag, equalTo(1));\n }\n\n // first expression is not satisfied conditions, then second expression not invoke\n if (false && addValue()) {\n assertThat(flag, equalTo(1));\n }\n }", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "protected void sequence_AND(ISerializationContext context, AND semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getAND_And()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getAND_And()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getANDAccess().getAndAndKeyword_0(), semanticObject.getAnd());\n\t\tfeeder.finish();\n\t}", "public T caseAnd(And object)\n {\n return null;\n }", "public final void mRULE_AND() throws RecognitionException {\n try {\n int _type = RULE_AND;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12791:10: ( '&' '&' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12791:12: '&' '&'\n {\n match('&'); \n match('&'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void entryRuleOpAnd() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:433:1: ( ruleOpAnd EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:434:1: ruleOpAnd EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndRule()); \n }\n pushFollow(FOLLOW_ruleOpAnd_in_entryRuleOpAnd852);\n ruleOpAnd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAnd859); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final Expr andExpr() throws RecognitionException {\n Expr result = null;\n\n int andExpr_StartIndex = input.index();\n\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 13) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:5: (lhs= relExpr ( '&&' rhs= relExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:9: lhs= relExpr ( '&&' rhs= relExpr )*\n {\n pushFollow(FOLLOW_relExpr_in_andExpr662);\n lhs=relExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result =lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:46: ( '&&' rhs= relExpr )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==17) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:48: '&&' rhs= relExpr\n \t {\n \t match(input,17,FOLLOW_17_in_andExpr668); if (state.failed) return result;\n\n \t pushFollow(FOLLOW_relExpr_in_andExpr672);\n \t rhs=relExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { result = new And(result, rhs); }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 13, andExpr_StartIndex); }\n\n }\n return result;\n }", "LogicCondition createLogicCondition();", "@DialogField(fieldLabel = \"Use AND Logic\",\n fieldDescription = \"Check box to search for tags using AND logic, otherwise search will use OR logic.\")\n @Switch(offText = \"No\", onText = \"Yes\")\n public boolean isComposeWithAnd() {\n return get(PARAM_COMPOSE_WITH_AND, false);\n }", "public final Expr andExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int andExpr_StartIndex = input.index();\r\n\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 17) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:5: (lhs= relExpr ( '&&' rhs= relExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:9: lhs= relExpr ( '&&' rhs= relExpr )*\r\n {\r\n pushFollow(FOLLOW_relExpr_in_andExpr789);\r\n lhs=relExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result =lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:46: ( '&&' rhs= relExpr )*\r\n loop12:\r\n do {\r\n int alt12=2;\r\n int LA12_0 = input.LA(1);\r\n\r\n if ( (LA12_0==20) ) {\r\n alt12=1;\r\n }\r\n\r\n\r\n switch (alt12) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:48: '&&' rhs= relExpr\r\n \t {\r\n \t match(input,20,FOLLOW_20_in_andExpr795); if (state.failed) return result;\r\n\r\n \t pushFollow(FOLLOW_relExpr_in_andExpr799);\r\n \t rhs=relExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { result = new And(result, rhs); }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop12;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 17, andExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "@Factory\n public static Matcher<QueryTreeNode> andRelation(Matcher<QueryTreeNode> leftMatcher, Matcher<QueryTreeNode> rightMatcher) {\n return relation(leftMatcher, \"and\", rightMatcher);\n }", "private static void andify(List<ExternalizedStateComponent> inputs, ExternalizedStateComponent output, ExternalizedStateConstant trueProp) {\n\t\tfor(ExternalizedStateComponent c : inputs) {\n\t\t\tif(c instanceof ExternalizedStateConstant && !((ExternalizedStateConstant)c).getValue()) {\n\t\t\t\t//Connect false (c) to the output\n\t\t\t\toutput.addInput(c);\n\t\t\t\tc.addOutput(output);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t//For reals... just skip over any true constants\n\t\tExternalizedStateAnd and = new ExternalizedStateAnd();\n\t\tfor(ExternalizedStateComponent in : inputs) {\n\t\t\tif(!(in instanceof ExternalizedStateConstant)) {\n\t\t\t\tin.addOutput(and);\n\t\t\t\tand.addInput(in);\n\t\t\t}\n\t\t}\n\t\t//What if they're all true? (Or inputs is empty?) Then no inputs at this point...\n\t\tif(and.getInputs().isEmpty()) {\n\t\t\t//Hook up to \"true\"\n\t\t\ttrueProp.addOutput(output);\n\t\t\toutput.addInput(trueProp);\n\t\t\treturn;\n\t\t}\n\t\t//If there's just one, on the other hand, don't use the and gate\n\t\tif(and.getInputs().size() == 1) {\n\t\t\tExternalizedStateComponent in = and.getSingleInput();\n\t\t\tin.removeOutput(and);\n\t\t\tand.removeInput(in);\n\t\t\tin.addOutput(output);\n\t\t\toutput.addInput(in);\n\t\t\treturn;\n\t\t}\n\t\tand.addOutput(output);\n\t\toutput.addInput(and);\n\t}", "OrExpr createOrExpr();", "public final EObject ruleAnd() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_RelationalExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3903:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3905:5: this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n {\n \n newCompositeNode(grammarAccess.getAndAccess().getRelationalExpressionParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8765);\n this_RelationalExpression_0=ruleRelationalExpression();\n\n state._fsp--;\n\n \n current = this_RelationalExpression_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n loop35:\n do {\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==59) ) {\n alt35=1;\n }\n\n\n switch (alt35) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3914:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAndAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3919:2: ( (lv_operator_2_0= '&&' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3921:3: lv_operator_2_0= '&&'\n \t {\n \t lv_operator_2_0=(Token)match(input,59,FOLLOW_59_in_ruleAnd8792); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getAndRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"&&\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3934:2: ( (lv_right_3_0= ruleRelationalExpression ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3936:3: lv_right_3_0= ruleRelationalExpression\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getAndAccess().getRightRelationalExpressionParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8826);\n \t lv_right_3_0=ruleRelationalExpression();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAndRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"RelationalExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop35;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void rule__PredicateAnd__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3667:1: ( ( '&&' ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3668:1: ( '&&' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3668:1: ( '&&' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3669:1: '&&'\n {\n before(grammarAccess.getPredicateAndAccess().getAmpersandAmpersandKeyword_1_1()); \n match(input,28,FOLLOW_28_in_rule__PredicateAnd__Group_1__1__Impl7218); \n after(grammarAccess.getPredicateAndAccess().getAmpersandAmpersandKeyword_1_1()); \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 void andWhere(String dbsel)\n {\n this._appendWhere(dbsel, WHERE_AND); // WHERE_OR [2.6.4-B59]\n }", "public static Object logicAnd(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2)) {\n\t\t\treturn ((Boolean) val1) && ((Boolean) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in logicAnd\");\n\t}", "public final void entryRuleOpAnd() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:630:1: ( ruleOpAnd EOF )\r\n // InternalDroneScript.g:631:1: ruleOpAnd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public T caseAnd(And object) {\n\t\treturn null;\n\t}", "public final EObject ruleAndOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4468:28: ( ( () (otherlv_1= 'and' | otherlv_2= '&&' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: () (otherlv_1= 'and' | otherlv_2= '&&' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4470:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getAndOperatorAccess().getAndOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:2: (otherlv_1= 'and' | otherlv_2= '&&' )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==51) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==52) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:4: otherlv_1= 'and'\r\n {\r\n otherlv_1=(Token)match(input,51,FOLLOW_51_in_ruleAndOperator9750); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getAndOperatorAccess().getAndKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4480:7: otherlv_2= '&&'\r\n {\r\n otherlv_2=(Token)match(input,52,FOLLOW_52_in_ruleAndOperator9768); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getAndOperatorAccess().getAmpersandAmpersandKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Test\n public void testPredicateAnd() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.and(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertFalse(evenOrDivSeven.apply(21));\n assertFalse(evenOrDivSeven.apply(8));\n assertFalse(evenOrDivSeven.apply(5));\n }", "ANDDecomposition createANDDecomposition();", "private boolean conditionAndOr( String condition, String[] ligne )\r\n {\n if( !condition.contains(\"AND\") || !condition.contains(\"OR\") )\r\n return this.conditionSimple(condition, ligne);\r\n \r\n // on suppose que cette fonction ne peut être utilisée que si\r\n // la condition ne contient pas des ( ou )\r\n // dans le cas d'une succession de AND et OR\r\n // on donne la priorité pour le AND\r\n boolean resultat = false;\r\n boolean resAnd = true;\r\n boolean resOr = false;\r\n \r\n // pour supprimer tous les espaces\r\n condition = condition.replaceAll(\" \", \"\");\r\n String[] conditionsAnd = condition.split(\"AND\");\r\n for( String cdsAnd : conditionsAnd ) // cds abréviation de conditions\r\n {\r\n String[] conditionsOr = cdsAnd.split(\"OR\");\r\n for( String cdsOr : conditionsOr )\r\n {\r\n resOr |= this.conditionSimple(cdsOr, ligne);\r\n }\r\n resAnd &= resOr;\r\n }\r\n resultat = resAnd;\r\n return resultat;\r\n }", "public final void ruleOpAnd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:642:2: ( ( '&&' ) )\r\n // InternalDroneScript.g:643:2: ( '&&' )\r\n {\r\n // InternalDroneScript.g:643:2: ( '&&' )\r\n // InternalDroneScript.g:644:3: '&&'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n match(input,15,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void executeAnd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString operand1 = mRegisters[mIR.substring(7, 3).getValue()];\n\t\tchar[] andSolution = new char[16];\n\t\tBitString operand2 = new BitString();\n\t\tif(mIR.substring(10, 1).getValue() == 1){ //immediate mode\n\t\t\toperand2 = mIR.substring(11, 5); //imma5\n\t\t\tif(operand2.getValue2sComp() < 0){\n\t\t\t\tBitString negativeExtend = new BitString();\n\t\t\t\tnegativeExtend.setBits(\"11111111111\".toCharArray());\n\t\t\t\tnegativeExtend.append(operand2);\n\t\t\t\toperand2 = negativeExtend;\n\t\t\t} else {\n\t\t\t\tBitString positiveExtended = new BitString();\n\t\t\t\tpositiveExtended.setBits(\"00000000000\".toCharArray());\n\t\t\t\toperand2 = positiveExtended.append(operand2);\n\t\t\t}\n\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t//register mode\n\t\t\toperand2 = mRegisters[mIR.substring(13, 3).getValue()];\n\t\t}\n\n\n\t\tfor (int i = 0; i < operand1.getLength(); i++) {\n\t\t\tif(operand1.substring(i, 1).getValue() + operand2.substring(i, 1).getValue() ==2){\n\t\t\t\tandSolution[i] = '1';\n\t\t\t} else {\n\t\t\t\tandSolution[i] = '0';\n\t\t\t}\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setBits(andSolution);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\t}", "public final EObject ruleOr() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_And_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3834:28: ( (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3836:5: this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n {\n \n newCompositeNode(grammarAccess.getOrAccess().getAndParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleAnd_in_ruleOr8609);\n this_And_0=ruleAnd();\n\n state._fsp--;\n\n \n current = this_And_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n loop34:\n do {\n int alt34=2;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==58) ) {\n alt34=1;\n }\n\n\n switch (alt34) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3845:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getOrAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3850:2: ( (lv_operator_2_0= '||' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3852:3: lv_operator_2_0= '||'\n \t {\n \t lv_operator_2_0=(Token)match(input,58,FOLLOW_58_in_ruleOr8636); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getOrAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getOrRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"||\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3865:2: ( (lv_right_3_0= ruleAnd ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3867:3: lv_right_3_0= ruleAnd\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getOrAccess().getRightAndParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleAnd_in_ruleOr8670);\n \t lv_right_3_0=ruleAnd();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getOrRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"And\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop34;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public void testX1andX2orNotX1() {\n \tCircuit circuit = new Circuit();\n \t\n \tBoolean b1 = Boolean.TRUE;\n \tBoolean b2 = Boolean.FALSE;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tOr or = (Or) circuit.getFactory().getGate(Gate.OR);\n\t\tand.setLeftInput(b1);\n\t\tand.setRightInput(b2);\n\t\tand.eval();\n\t\tnot.setInput(b1);\n\t\tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n\t\tassertEquals(Boolean.FALSE, or.eval());\n\t\tassertEquals(Boolean.FALSE, circuit.eval());\n//\t\t==========================================\n\t\tb1 = Boolean.FALSE;\n \tb2 = Boolean.TRUE;\n// \tand.eval();\n// \tnot.eval();\n \tassertEquals(Boolean.FALSE, circuit.eval());\n// \t============================================\n \tDouble d1 = 0.0;\n \tDouble d2 = 1.0;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n\t\tnot.setInput(d1);\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(1.0), or.eval());\n// \t============================================\n \td1 = 0.5;\n \td2 = 0.5;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n// \t============================================\n \ttry {\n \td1 = 0.5;\n \td2 = 2.0;\n \tand.setLeftInput(d1);\n \t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n \t\tor.setLeftInput(and.getOutput());\n \t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n \t} catch (IllegalArgumentException e) {\n \t\tSystem.err.println(\"IllegalArgumentException: \" + e.getMessage());\n \t}\n\n }", "public final void exclusiveOrExpression() throws RecognitionException {\n int exclusiveOrExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"exclusiveOrExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(757, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 111) ) { return ; }\n // Java.g:758:5: ( andExpression ( '^' andExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:758:9: andExpression ( '^' andExpression )*\n {\n dbg.location(758,9);\n pushFollow(FOLLOW_andExpression_in_exclusiveOrExpression4448);\n andExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(758,23);\n // Java.g:758:23: ( '^' andExpression )*\n try { dbg.enterSubRule(132);\n\n loop132:\n do {\n int alt132=2;\n try { dbg.enterDecision(132);\n\n int LA132_0 = input.LA(1);\n\n if ( (LA132_0==101) ) {\n alt132=1;\n }\n\n\n } finally {dbg.exitDecision(132);}\n\n switch (alt132) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:758:25: '^' andExpression\n \t {\n \t dbg.location(758,25);\n \t match(input,101,FOLLOW_101_in_exclusiveOrExpression4452); if (state.failed) return ;\n \t dbg.location(758,29);\n \t pushFollow(FOLLOW_andExpression_in_exclusiveOrExpression4454);\n \t andExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop132;\n }\n } while (true);\n } finally {dbg.exitSubRule(132);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 111, exclusiveOrExpression_StartIndex); }\n }\n dbg.location(759, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"exclusiveOrExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "@Test\n\tpublic void explicitANDTest() {\n\t\tString query = \"hello goodbye\";\n\t\tString query2 = \"hello goodbye hello\";\n\t\tString query3 = \"( hello ( goodbye | hello bye ) )\";\n\t\t\n\t\tString queryResults = \"hello & goodbye\";\n\t\tString query2Results = \"hello & goodbye & hello\";\n\t\tString query3Results = \"( hello & ( goodbye | hello & bye ) )\";\n\n\t\tassertEquals(queryResults, String.join(\" \", queryTest.addExplicitAND(query.split(\" \"))));\n\t\tassertEquals(query2Results, String.join(\" \", queryTest.addExplicitAND(query2.split(\" \"))));\n\t\tassertEquals(query3Results, String.join(\" \", queryTest.addExplicitAND(query3.split(\" \"))));\n\t}", "public static RuntimeValue and(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteBoolSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.and(left.getDiscreteBoolSample(), right.getDiscreteBoolSample())\n );\n }\n\n throw new RuntimeException(\"AND-ing incompatible types\");\n }", "public final void mT__89() throws RecognitionException {\r\n try {\r\n int _type = T__89;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:86:7: ( 'and' )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:86:9: 'and'\r\n {\r\n match(\"and\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public static void appendAndToWhereClause(StringBuilder whereBuilder) {\n if (whereBuilder.length() > 0) {\n whereBuilder.append(\" and \");\n }\n }", "public final void entryRuleOpAnd() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:516:1: ( ruleOpAnd EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:517:1: ruleOpAnd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAnd_in_entryRuleOpAnd1032);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAnd1039); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public static Filter and(Filter filterA, Filter filterB) {\r\n return new AndFilter(filterA, filterB);\r\n }", "public final void ruleOpAnd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:528:2: ( ( '&&' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:529:1: ( '&&' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:529:1: ( '&&' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:530:1: '&&'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n match(input,17,FOLLOW_17_in_ruleOpAnd1066); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@OperationMeta(opType = OperationType.INFIX)\n public static boolean and(boolean b1, boolean b2) {\n return b1 & b2;\n }", "public final void rule__PredicateOr__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3418:1: ( ( rulePredicateAnd ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3419:1: ( rulePredicateAnd )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3419:1: ( rulePredicateAnd )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3420:1: rulePredicateAnd\n {\n before(grammarAccess.getPredicateOrAccess().getPredicateAndParserRuleCall_0()); \n pushFollow(FOLLOW_rulePredicateAnd_in_rule__PredicateOr__Group__0__Impl6728);\n rulePredicateAnd();\n\n state._fsp--;\n\n after(grammarAccess.getPredicateOrAccess().getPredicateAndParserRuleCall_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 final void mAND() throws RecognitionException {\n try {\n int _type = AND;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:360:4: ( A N D )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:360:6: A N D\n {\n mA(); \n mN(); \n mD(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static Filter and(Filter[] filters) {\r\n if (filters == null) {\r\n throw new IllegalArgumentException(\"The filters is null.\");\r\n }\r\n\r\n return new AndFilter(Arrays.asList(filters));\r\n }", "public final EObject ruleEConditionClauseDefinitionAND() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token this_BEGIN_1=null;\n Token this_END_3=null;\n EObject lv_and_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:2945:2: ( (otherlv_0= And this_BEGIN_1= RULE_BEGIN ( (lv_and_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END ) )\n // InternalRMParser.g:2946:2: (otherlv_0= And this_BEGIN_1= RULE_BEGIN ( (lv_and_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END )\n {\n // InternalRMParser.g:2946:2: (otherlv_0= And this_BEGIN_1= RULE_BEGIN ( (lv_and_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END )\n // InternalRMParser.g:2947:3: otherlv_0= And this_BEGIN_1= RULE_BEGIN ( (lv_and_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END\n {\n otherlv_0=(Token)match(input,And,FOLLOW_6); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getEConditionClauseDefinitionANDAccess().getAndKeyword_0());\n \t\t\n this_BEGIN_1=(Token)match(input,RULE_BEGIN,FOLLOW_38); \n\n \t\t\tnewLeafNode(this_BEGIN_1, grammarAccess.getEConditionClauseDefinitionANDAccess().getBEGINTerminalRuleCall_1());\n \t\t\n // InternalRMParser.g:2955:3: ( (lv_and_2_0= ruleEConditionClauseDefinition ) )\n // InternalRMParser.g:2956:4: (lv_and_2_0= ruleEConditionClauseDefinition )\n {\n // InternalRMParser.g:2956:4: (lv_and_2_0= ruleEConditionClauseDefinition )\n // InternalRMParser.g:2957:5: lv_and_2_0= ruleEConditionClauseDefinition\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEConditionClauseDefinitionANDAccess().getAndEConditionClauseDefinitionParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_8);\n lv_and_2_0=ruleEConditionClauseDefinition();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEConditionClauseDefinitionANDRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"and\",\n \t\t\t\t\t\tlv_and_2_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.EConditionClauseDefinition\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n this_END_3=(Token)match(input,RULE_END,FOLLOW_2); \n\n \t\t\tnewLeafNode(this_END_3, grammarAccess.getEConditionClauseDefinitionANDAccess().getENDTerminalRuleCall_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12207:1: ( ( ( ruleOpAnd ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12208:1: ( ( ruleOpAnd ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12208:1: ( ( ruleOpAnd ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12209:1: ( ruleOpAnd )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12210:1: ( ruleOpAnd )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12211:1: ruleOpAnd\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpAnd_in_rule__XAndExpression__FeatureAssignment_1_0_0_124487);\n ruleOpAnd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\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 ExpressionSearch exp(boolean and)\n\t\t{\n\t\t\treturn new ExpressionSearch(and);\n\t\t}", "public AndFilter(final Filter left, final Filter right) {\r\n this(CollectionUtil.newList(left, right));\r\n }", "private static boolean checkAndOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"and\")) {\n\t\t\tString[] arr = expression.split(\"and\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkOrOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t} else if (expression.endsWith(\"and\")) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkOrOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n public JsonNode visit(JmesPathAndExpression andExpression, JsonNode input) throws InvalidTypeException {\n JsonNode lhsNode = andExpression.getLhsExpr().accept(this, input);\n JsonNode rhsNode = andExpression.getRhsExpr().accept(this, input);\n if (lhsNode == BooleanNode.TRUE) {\n return rhsNode;\n } else {\n return lhsNode;\n }\n }", "@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }", "public MType visit(AndExpression n, MType argu) {\n \tMType _ret = new MBoolean();\n \tn.f0.accept(this, argu);\n \tn.f1.accept(this, argu);\n \tn.f2.accept(this, argu);\n \treturn _ret;\n }", "public <V extends Number> FluentExp<V> bitAnd (SQLExpression<V> expr)\n {\n return new BitAnd<V>(this, expr);\n }", "public void testAND1() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 225, \"and\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public final void conditionalAndExpression() throws RecognitionException {\n int conditionalAndExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"conditionalAndExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(749, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 109) ) { return ; }\n // Java.g:750:5: ( inclusiveOrExpression ( '&&' inclusiveOrExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:750:9: inclusiveOrExpression ( '&&' inclusiveOrExpression )*\n {\n dbg.location(750,9);\n pushFollow(FOLLOW_inclusiveOrExpression_in_conditionalAndExpression4392);\n inclusiveOrExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(750,31);\n // Java.g:750:31: ( '&&' inclusiveOrExpression )*\n try { dbg.enterSubRule(130);\n\n loop130:\n do {\n int alt130=2;\n try { dbg.enterDecision(130);\n\n int LA130_0 = input.LA(1);\n\n if ( (LA130_0==99) ) {\n alt130=1;\n }\n\n\n } finally {dbg.exitDecision(130);}\n\n switch (alt130) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:750:33: '&&' inclusiveOrExpression\n \t {\n \t dbg.location(750,33);\n \t match(input,99,FOLLOW_99_in_conditionalAndExpression4396); if (state.failed) return ;\n \t dbg.location(750,38);\n \t pushFollow(FOLLOW_inclusiveOrExpression_in_conditionalAndExpression4398);\n \t inclusiveOrExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop130;\n }\n } while (true);\n } finally {dbg.exitSubRule(130);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 109, conditionalAndExpression_StartIndex); }\n }\n dbg.location(751, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"conditionalAndExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "default CriteriaContainer and(Criteria... criteria) {\n return legacyOperation();\n }", "public final void mT__63() throws RecognitionException {\n try {\n int _type = T__63;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:57:7: ( 'and' )\n // InternalEsm.g:57:9: 'and'\n {\n match(\"and\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private AndRecordFilter( RecordFilter boundFilter1, RecordFilter boundFilter2 ) {\n this.boundFilter1 = boundFilter1;\n this.boundFilter2 = boundFilter2;\n }", "StatementChain and(ProfileStatement... statements);", "@Override\n public ILogical and(ILogical operador) {\n return operador.andBinary(this);\n }", "public final Expr orExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int orExpr_StartIndex = input.index();\r\n\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 18) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:5: (lhs= andExpr ( '||' rhs= andExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:9: lhs= andExpr ( '||' rhs= andExpr )*\r\n {\r\n pushFollow(FOLLOW_andExpr_in_orExpr834);\r\n lhs=andExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:48: ( '||' rhs= andExpr )*\r\n loop13:\r\n do {\r\n int alt13=2;\r\n int LA13_0 = input.LA(1);\r\n\r\n if ( (LA13_0==35) ) {\r\n alt13=1;\r\n }\r\n\r\n\r\n switch (alt13) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:162:50: '||' rhs= andExpr\r\n \t {\r\n \t match(input,35,FOLLOW_35_in_orExpr840); if (state.failed) return result;\r\n\r\n \t pushFollow(FOLLOW_andExpr_in_orExpr844);\r\n \t rhs=andExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { result = new Or(result, rhs); }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop13;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 18, orExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public void testAND2() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 226, \"&\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public static void findByAND_OR() {\n\t\tFindIterable<Document> findIterable = collection.find(\r\n\t\t and(eq(\"status\", \"A\"),\r\n\t\t or(lt(\"qty\", 30), regex(\"item\", \"^p\")))\r\n\t\t);\r\n\t\tprint(findIterable);\r\n\t}", "public static Object and(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2)) {\n\t\t\treturn ((Boolean) val1) & ((Boolean) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).and((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in and\");\n\t}", "public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17456:1: ( ( ( ruleOpAnd ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17457:1: ( ( ruleOpAnd ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17457:1: ( ( ruleOpAnd ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17458:1: ( ruleOpAnd )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17459:1: ( ruleOpAnd )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17460:1: ruleOpAnd\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAnd_in_rule__XAndExpression__FeatureAssignment_1_0_0_135247);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "Expr join() throws IOException {\n\t\tExpr e = equality();\n\t\twhile (look.tag == Tag.AND) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new And(tok, e, equality());\n\t\t}\n\t\treturn e;\n\t}", "public And(Object... filters) {\n if (filters.length > 0) {\n if (filters[0].getClass().isArray()) {\n filters = (Object[]) filters[0];\n }\n }\n this.filters = new IFilter[filters.length];\n for (int i = 0; i < filters.length; i++) this.filters[i] = (IFilter) filters[i];\n }", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}", "public static final UnboundRecordFilter and( final UnboundRecordFilter filter1, final UnboundRecordFilter filter2 ) {\n Objects.requireNonNull(filter1, \"filter1 cannot be null\");\n Objects.requireNonNull(filter2, \"filter2 cannot be null\");\n return new UnboundRecordFilter() {\n @Override\n public RecordFilter bind(Iterable<ColumnReader> readers) {\n return new AndRecordFilter( filter1.bind(readers), filter2.bind( readers) );\n }\n };\n }" ]
[ "0.7038737", "0.695364", "0.6861028", "0.68002754", "0.68002754", "0.63970906", "0.63768965", "0.6374279", "0.6272952", "0.623475", "0.62239957", "0.62211984", "0.62000895", "0.6199242", "0.61891043", "0.616245", "0.6152251", "0.6078526", "0.606953", "0.6054277", "0.600826", "0.5985477", "0.59813297", "0.59339684", "0.5900721", "0.5895472", "0.5895472", "0.58858854", "0.58848816", "0.58728266", "0.58725864", "0.586032", "0.5849653", "0.5847775", "0.5844173", "0.58431804", "0.5841912", "0.5826909", "0.5825973", "0.58158404", "0.58023626", "0.5801885", "0.5794763", "0.5787126", "0.57852", "0.5775356", "0.577355", "0.5765397", "0.5762561", "0.57599074", "0.5757223", "0.57517624", "0.57394403", "0.57386607", "0.5735629", "0.57297105", "0.5728759", "0.571906", "0.5687885", "0.5676303", "0.5661054", "0.5658948", "0.565668", "0.56548125", "0.5651935", "0.5637245", "0.5635321", "0.56303537", "0.5584397", "0.55789125", "0.55627173", "0.5562502", "0.5559317", "0.5557891", "0.5552898", "0.5524714", "0.5513699", "0.55018234", "0.5501253", "0.5496179", "0.5486859", "0.5462787", "0.5462492", "0.54610515", "0.54546875", "0.5452648", "0.54489475", "0.54458743", "0.5443564", "0.5435238", "0.5420653", "0.5408289", "0.54071724", "0.53974354", "0.5393405", "0.53840375", "0.53789514", "0.53782827", "0.5368238", "0.5368092" ]
0.62549126
9
Create a new OR specification.
@SafeVarargs public static OrSpecification or( Specification<Composite>... specs ) { return new OrSpecification( Arrays.asList( specs ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Or createOr();", "Or createOr();", "OrExpr createOrExpr();", "OrTable createOrTable();", "public OrSpecification(final ISpecification<T> left, final ISpecification<T> right) {\n this.left = left;\n this.right = right;\n }", "ORGateway createORGateway();", "@Test\n public void testOrWithBinding() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"or_binding.drl\")));\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(2, getDescrs().size());\n final OrDescr or = ((OrDescr) (getDescrs().get(0)));\n TestCase.assertEquals(2, or.getDescrs().size());\n final PatternDescr leftPattern = ((PatternDescr) (or.getDescrs().get(0)));\n TestCase.assertEquals(\"Person\", leftPattern.getObjectType());\n TestCase.assertEquals(\"foo\", leftPattern.getIdentifier());\n final PatternDescr rightPattern = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", rightPattern.getObjectType());\n TestCase.assertEquals(\"foo\", rightPattern.getIdentifier());\n final PatternDescr cheeseDescr = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"Cheese\", cheeseDescr.getObjectType());\n TestCase.assertEquals(null, cheeseDescr.getIdentifier());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" + bar );\", ((String) (rule.getConsequence())));\n }", "ORDecomposition createORDecomposition();", "public Or(Expression e1, Expression e2) {\n this.e1 = e1;\n this.e2 = e2;\n }", "IRequirement or(IRequirement constraint);", "OrColumn createOrColumn();", "Operation createOperation();", "Operation createOperation();", "public SingleRuleBuilder or(String predicate, String... variables) { return or(false, predicate, variables); }", "@Override\n\tprotected void createOtherOrbits()\n\t{\n\t}", "public void setOr(boolean or) {\n this.or = or;\n }", "Expression orExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = andExpression();\r\n\t\twhile(isKind(OP_OR)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = andExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public void setOR(boolean value) {\n this.OR = value;\n }", "IOperationable create(String operationType);", "@Test\n public void testOrBindingComplex() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"or_binding_complex.drl\")));\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(1, getDescrs().size());\n TestCase.assertEquals(1, getDescrs().size());\n final OrDescr or = ((OrDescr) (getDescrs().get(0)));\n TestCase.assertEquals(2, or.getDescrs().size());\n // first fact\n final PatternDescr firstFact = ((PatternDescr) (or.getDescrs().get(0)));\n TestCase.assertEquals(\"Person\", firstFact.getObjectType());\n TestCase.assertEquals(\"foo\", firstFact.getIdentifier());\n // second \"option\"\n final PatternDescr secondFact = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", secondFact.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n TestCase.assertEquals(\"foo\", secondFact.getIdentifier());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" + bar );\", ((String) (rule.getConsequence())));\n }", "public final void mOR() throws RecognitionException {\n try {\n int _type = OR;\n // /Users/benjamincoe/HackWars/C.g:218:4: ( '||' )\n // /Users/benjamincoe/HackWars/C.g:218:6: '||'\n {\n match(\"||\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public com.example.DNSLog.Builder setOR(boolean value) {\n validate(fields()[16], value);\n this.OR = value;\n fieldSetFlags()[16] = true;\n return this;\n }", "public static TreeNode makeOr(List<TreeNode> nodes) {\n return new OrNode(nodes);\n }", "public final void entryRuleOpOr() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:375:1: ( ruleOpOr EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:376:1: ruleOpOr EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpOrRule()); \n }\n pushFollow(FOLLOW_ruleOpOr_in_entryRuleOpOr730);\n ruleOpOr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpOrRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpOr737); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final void entryRuleOpOr() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:580:1: ( ruleOpOr EOF )\r\n // InternalDroneScript.g:581:1: ruleOpOr EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpOr();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public static IOR makeIOR(ORB paramORB) {\n/* 91 */ return (IOR)new IORImpl(paramORB);\n/* */ }", "public void setAndOr (String AndOr);", "public OrGate() {\n\t\tsuper(2, 1);\n\t}", "public static IOR makeIOR(ORB paramORB, String paramString) {\n/* 84 */ return (IOR)new IORImpl(paramORB, paramString);\n/* */ }", "public final void ruleOpOr() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:387:2: ( ( '||' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:388:1: ( '||' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:388:1: ( '||' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:389:1: '||'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \n }\n match(input,13,FOLLOW_13_in_ruleOpOr764); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \n }\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 void addOrClause(List<FilterCriterion> orFilters)\n {\n orClauses.add(orFilters);\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "GoalSpecification createGoalSpecification();", "public final void entryRuleOpOr() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:458:1: ( ruleOpOr EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:459:1: ruleOpOr EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpOr_in_entryRuleOpOr910);\r\n ruleOpOr();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpOr917); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "public final void ruleOpOr() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:592:2: ( ( '||' ) )\r\n // InternalDroneScript.g:593:2: ( '||' )\r\n {\r\n // InternalDroneScript.g:593:2: ( '||' )\r\n // InternalDroneScript.g:594:3: '||'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \r\n }\r\n match(input,14,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "String getOr_op();", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "protected ModelNode createOperation(String address, String operation, String... params) {\n ModelNode op = new ModelNode();\n String[] pathSegments = address.split(\"/\");\n ModelNode list = op.get(\"address\").setEmptyList();\n for (String segment : pathSegments) {\n String[] elements = segment.split(\"=\");\n list.add(elements[0], elements[1]);\n }\n op.get(\"operation\").set(operation);\n for (String param : params) {\n String[] elements = param.split(\"=\");\n op.get(elements[0]).set(elements[1]);\n }\n return op;\n }", "public final void ruleOpOr() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:470:2: ( ( '||' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:471:1: ( '||' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:471:1: ( '||' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:472:1: '||'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \r\n }\r\n match(input,16,FOLLOW_16_in_ruleOpOr944); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "void visit(final OrCondition orCondition);", "public void setInputor(String inputor) {\r\n\t\tthis.inputor = inputor;\r\n\t}", "@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vOR\")\n private void vOR(ObjectRoleArg expr) {\n expr.getOR().accept(this);\n }", "public boolean getOR() {\n return OR;\n }", "public ConditionalRequirement(final ConditionalOperator operator, final ConditionalRequirement... requirements) {\r\n this.requirements = requirements;\r\n this.or = (operator == ConditionalOperator.OR);\r\n\r\n }", "public boolean getOR() {\n return OR;\n }", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "public Criteria or() {\n\t\tCriteria criteria = createCriteriaInternal();\n\t\toredCriteria.add(criteria);\n\t\treturn criteria;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic Operation createOperation(String opName, String[] params, OperationCallback caller) {\n\t\t\tthrow new RuntimeException(\"Method 'createOperation' in class 'DummyNode' not yet implemented!\");\n\t\t\t//return null;\n\t\t}", "public Criteria or() {\r\n\t\tCriteria criteria = createCriteriaInternal();\r\n\t\toredCriteria.add(criteria);\r\n\t\treturn criteria;\r\n\t}", "public Criteria or() {\r\n\t\tCriteria criteria = createCriteriaInternal();\r\n\t\toredCriteria.add(criteria);\r\n\t\treturn criteria;\r\n\t}", "public Criteria or() {\r\n\t\tCriteria criteria = createCriteriaInternal();\r\n\t\toredCriteria.add(criteria);\r\n\t\treturn criteria;\r\n\t}", "public Criteria or() {\r\n\t\tCriteria criteria = createCriteriaInternal();\r\n\t\toredCriteria.add(criteria);\r\n\t\treturn criteria;\r\n\t}", "public Criteria or() {\r\n\t\tCriteria criteria = createCriteriaInternal();\r\n\t\toredCriteria.add(criteria);\r\n\t\treturn criteria;\r\n\t}", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "Oracion createOracion();", "protected void sequence_OR(ISerializationContext context, OR semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "Definition createDefinition();", "public ConditionItem or(ConditionItem...constraints) {\n\t\treturn blockCondition(ConditionType.OR, constraints);\n\t}", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public final Expr orExpr() throws RecognitionException {\n Expr result = null;\n\n int orExpr_StartIndex = input.index();\n\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 14) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:5: (lhs= andExpr ( '||' rhs= andExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:9: lhs= andExpr ( '||' rhs= andExpr )*\n {\n pushFollow(FOLLOW_andExpr_in_orExpr707);\n lhs=andExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:48: ( '||' rhs= andExpr )*\n loop11:\n do {\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==34) ) {\n alt11=1;\n }\n\n\n switch (alt11) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:165:50: '||' rhs= andExpr\n \t {\n \t match(input,34,FOLLOW_34_in_orExpr713); if (state.failed) return result;\n\n \t pushFollow(FOLLOW_andExpr_in_orExpr717);\n \t rhs=andExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { result = new Or(result, rhs); }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop11;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 14, orExpr_StartIndex); }\n\n }\n return result;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }" ]
[ "0.67606515", "0.67606515", "0.6593984", "0.6454341", "0.63961214", "0.5934634", "0.5865119", "0.58401644", "0.5733085", "0.5591763", "0.55843514", "0.54746395", "0.54746395", "0.5474554", "0.54695517", "0.54494274", "0.54249585", "0.53908414", "0.5378509", "0.5356469", "0.53158355", "0.5295523", "0.5290223", "0.5240093", "0.5234587", "0.52276355", "0.52224594", "0.5191253", "0.51856536", "0.5183659", "0.51637036", "0.51524955", "0.5148115", "0.5122607", "0.51116836", "0.50869274", "0.50523186", "0.50506705", "0.50375473", "0.5027777", "0.50250685", "0.50225526", "0.5022507", "0.5019795", "0.50050175", "0.49865055", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49755886", "0.49727502", "0.49677983", "0.49677983", "0.49677983", "0.49677983", "0.49677983", "0.49635682", "0.49503022", "0.4941153", "0.49328277", "0.49311242", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.4909484", "0.49065256", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505", "0.48840505" ]
0.6175919
5
Create a new NOT specification.
public static NotSpecification not( Specification<Composite> operand ) { return new NotSpecification( operand ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Not createNot();", "Not createNot();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "public Unary createNot(Expr expr) {\n return createNot(expr.position(), expr);\n }", "public Schema getNot() {\n\t\treturn not;\n\t}", "Notentyp createNotentyp();", "public Unary createNot(Position pos, Expr expr) {\n assert (expr.type().isBoolean());\n return createUnary(pos, Unary.NOT, expr);\n }", "public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}", "public ConditionItem not(ConditionItem constraint) {\n\t\treturn blockCondition(ConditionType.NOT, constraint);\n\t}", "public void setNotIn(boolean notIn) {\n this.notIn = notIn;\n }", "@Test\n\tpublic void newInvoiceShouldNotBePayed() {\n\t\tInvoice tested = new Invoice(12L, 3400);\n\t\t\n\t\t// then\n\t\t// ...it should not be payed\n\t\tassertThat(tested, not( payed() ));\n\t\t\n\t}", "public final void mNOT() throws RecognitionException {\n try {\n int _type = NOT;\n // /Users/benjamincoe/HackWars/C.g:233:5: ( '!' )\n // /Users/benjamincoe/HackWars/C.g:233:7: '!'\n {\n match('!'); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }", "protected void sequence_NOT(ISerializationContext context, NOT semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Not1()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Not1()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getNOTAccess().getNot1NotKeyword_0(), semanticObject.getNot1());\n\t\tfeeder.finish();\n\t}", "public SpecificationFactoryImpl()\r\n {\r\n super();\r\n }", "public ExecutionPolicy not()\n\t{\n\t\treturn new NotRule(this);\n\t}", "InvoiceSpecification createInvoiceSpecification();", "Negacion createNegacion();", "public void setNotExists(boolean notExists) {\n this.notExists = notExists;\n }", "public static Predicate not(Predicate predicate)\n {\n return new LogicPredicate(Type.NOT, predicate);\n }", "ExcludeType createExcludeType();", "protected void assertNoTESpec() {\n\t\tassertFalse(\"A TE spec was generated, but it shouldn't\", \n\t\t\trecorder.recorded(EC.TLC_TE_SPEC_GENERATION_COMPLETE));\n\t}", "public Not(Condition condition) {\n\t\tsuper();\n\t\tif (condition == null)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Illegal 'condition' argument in Not(Condition): \"\n\t\t\t\t\t\t\t+ condition);\n\t\tcondition.follow(this);\n\t\tassert invariant() : \"Illegal state in not(Condition)\";\n\t}", "public void setSpecification(String specification) {\n this.specification = specification;\n }", "public T nonparticipation(boolean nonpart) {\n this.nonparticipation = nonpart;\n return (T) this;\n }", "public void testGetObjectSpecificationWithNotFoundIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", \"identifier2\");\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "protected AbstractXmlSpecification() {\n\t\tthis.properties = new Properties();\n\t}", "public static <T> OutputMatcher<T> not(OutputMatcher<T> matcher) {\n return OutputMatcherFactory.create(IsNot.not(matcher));\n }", "public SeleniumQueryObject not(String selector) {\n\t\treturn NotFunction.not(this, this.elements, selector);\n\t}", "@Test\n\tpublic void testCreateIncorrectParam() {\n\t\tStickyPolicy sPolicy = PolicyGenerator.buildStickyPolicy();\n\t\tfinal String owner = \"\"+1;\n\t\t\n\t\tResponse response = piiController.createPii(null, null, sPolicy, owner);\n\t\t\n\t\tverifyZeroInteractions(mPiiService);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(400, response.getStatus());\n\t\t\n\t\tObject entity = response.getEntity();\n\t\tassertNull(entity);\n\t}", "@Test(expected = TrainException.class)\n\tpublic void testCreateLocomotiveWithInvalidSpecification() throws TrainException\n\t{\n\t\tString invalidSpecification = \"3Z\";\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock locomotiveWithInvalidSpecification = \n\t\t\t\tnew asgn2RollingStock.Locomotive(validGrossWeight , invalidSpecification);\n\t}", "public Query not() {\n builder.negateQuery();\n return this;\n }", "public final CQLParser.notExpression_return notExpression() throws RecognitionException {\n CQLParser.notExpression_return retval = new CQLParser.notExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token NOT93=null;\n CQLParser.arithmeticExpression_return arithmeticExpression94 = null;\n\n\n Object NOT93_tree=null;\n\n errorMessageStack.push(\"NOT expression\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:2: ( ( NOT )? arithmeticExpression )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:4: ( NOT )? arithmeticExpression\n {\n root_0 = (Object)adaptor.nil();\n\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:4: ( NOT )?\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==NOT) ) {\n alt25=1;\n }\n switch (alt25) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:388:5: NOT\n {\n NOT93=(Token)match(input,NOT,FOLLOW_NOT_in_notExpression1816); \n NOT93_tree = (Object)adaptor.create(NOT93);\n root_0 = (Object)adaptor.becomeRoot(NOT93_tree, root_0);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_arithmeticExpression_in_notExpression1821);\n arithmeticExpression94=arithmeticExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, arithmeticExpression94.getTree());\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop();\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "public static UnaryExpression not(Expression expression) {\n return makeUnary(ExpressionType.Not, expression, expression.getType());\n }", "public NotExpression(BooleanExpression expression, SourceLocation source) throws \r\n\t\t\tIllegalSourceException, IllegalExpressionException {\r\n\t\tsuper(expression, source);\r\n\t}", "public IonModification createOpposite() {\n return new IonModification(getType(), name, molFormula, -mass, charge);\n }", "public final PythonParser.not_test_return not_test(expr_contextType ctype) throws RecognitionException {\n PythonParser.not_test_return retval = new PythonParser.not_test_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token NOT186=null;\n PythonParser.not_test_return nt = null;\n\n PythonParser.comparison_return comparison187 = null;\n\n\n PythonTree NOT186_tree=null;\n RewriteRuleTokenStream stream_NOT=new RewriteRuleTokenStream(adaptor,\"token NOT\");\n RewriteRuleSubtreeStream stream_not_test=new RewriteRuleSubtreeStream(adaptor,\"rule not_test\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1071:5: ( NOT nt= not_test[ctype] -> ^( NOT[$NOT, unaryopType.Not, actions.castExpr($nt.tree)] ) | comparison[ctype] )\n int alt84=2;\n int LA84_0 = input.LA(1);\n\n if ( (LA84_0==NOT) ) {\n alt84=1;\n }\n else if ( (LA84_0==NAME||LA84_0==LPAREN||(LA84_0>=PLUS && LA84_0<=MINUS)||(LA84_0>=TILDE && LA84_0<=LBRACK)||LA84_0==LCURLY||(LA84_0>=BACKQUOTE && LA84_0<=STRING)) ) {\n alt84=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 84, 0, input);\n\n throw nvae;\n }\n switch (alt84) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1071:7: NOT nt= not_test[ctype]\n {\n NOT186=(Token)match(input,NOT,FOLLOW_NOT_in_not_test4464); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_NOT.add(NOT186);\n\n pushFollow(FOLLOW_not_test_in_not_test4468);\n nt=not_test(ctype);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_not_test.add(nt.getTree());\n\n\n // AST REWRITE\n // elements: NOT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1072:4: -> ^( NOT[$NOT, unaryopType.Not, actions.castExpr($nt.tree)] )\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1072:7: ^( NOT[$NOT, unaryopType.Not, actions.castExpr($nt.tree)] )\n {\n PythonTree root_1 = (PythonTree)adaptor.nil();\n root_1 = (PythonTree)adaptor.becomeRoot(new UnaryOp(NOT, NOT186, unaryopType.Not, actions.castExpr((nt!=null?((PythonTree)nt.tree):null))), root_1);\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1073:7: comparison[ctype]\n {\n root_0 = (PythonTree)adaptor.nil();\n\n pushFollow(FOLLOW_comparison_in_not_test4490);\n comparison187=comparison(ctype);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, comparison187.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "@Override\n\tpublic void visit(NotExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic Void visit(Not nott) {\n\t\tprintIndent(\"not\");\n\t\tindent++;\n\t\tnott.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "@Test\n\tpublic void testCreateCorrectParamNoCreationPb() {\n\t\tStickyPolicy sPolicy = PolicyGenerator.buildStickyPolicy();\n\t\tfinal String owner = \"\"+1;\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPIIType piiWitness = new PIIType();\n\t\tpiiWitness.setHjid((long) 0);\n\t\tpiiWitness.setAttributeName(\"test.jpg\");\n\t\tpiiWitness.setAttributeValue(\"214578_test.jpg\");\n\t\tpiiWitness.setOwner(owner);\n\t\tpiiWitness.setPolicySetOrPolicy(PolicyGenerator.convertToPolicy(sPolicy.getAttribute().get(0)));\n\t\t\n\t\tPiiUniqueId piiUniqueIdWitness = new PiiUniqueId();\n\t\tpiiUniqueIdWitness.setId((long) 0);\n\t\tpiiUniqueIdWitness.setPii(piiWitness);\n\t\tpiiUniqueIdWitness.setUniqueId(piiUniqueId);\n\t\t\n\t\tFormDataContentDisposition fileDetail = FormDataContentDisposition.name(\"file\").fileName(\"test.jpg\").build();\n\t\tInputStream uploadedInputStream = null;\n\t\ttry {\n\t\t\tuploadedInputStream = new FileInputStream(new File(FILE_DIR + FILE_NAME));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\twhen(mPiiService.create(\"test.jpg\", uploadedInputStream, sPolicy, owner)).thenReturn(piiWitness);\n\t\twhen(mPuidDao.findByPiiId((long) 0)).thenReturn(piiUniqueIdWitness);\n\t\t\n\t\tResponse response = piiController.createPiiFile(uploadedInputStream, fileDetail, sPolicy, owner);\n\t\t\n\t\tverify(mPiiService).create(\"test.jpg\", uploadedInputStream, sPolicy, owner);\n\t\tverify(mPuidDao).findByPiiId((long) 0);\n\t\tassertEquals(201, response.getStatus());\n\t\t\n\t\tPiiCreateResponse piiCreateResponse = (PiiCreateResponse) response.getEntity();\n\t\tassertEquals(piiUniqueId, piiCreateResponse.getUniqueId());\n\t}", "@Test\r\n public void testCreateInvalid() throws PAException {\r\n thrown.expect(PAException.class);\r\n thrown.expectMessage(\"Missing Disease/Condition. \");\r\n StudyProtocol studyProtocol = TestSchema.createStudyProtocolObj();\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(studyProtocol.getId());\r\n StudyDiseaseDTO studyDiseaseDTO = new StudyDiseaseDTO();\r\n studyDiseaseDTO.setStudyProtocolIdentifier(spIi);\r\n studyDiseaseDTO.setCtGovXmlIndicator(BlConverter.convertToBl(true));\r\n bean.create(studyDiseaseDTO);\r\n }", "public OntModelSpec( OntModelSpec spec ) {\n this( spec.getBaseModelMaker(), spec.getImportModelMaker(), spec.getDocumentManager(),\n spec.getReasonerFactory(), spec.getLanguage() );\n }", "GoalSpecification createGoalSpecification();", "public void testGetObjectSpecificationWithEmptyKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"\", \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public static RandomVariable createNegationRV(RandomVariable rv) {\n RandomVariable negationgRv = new RandomVariable(2, \"not_\"+rv.getName());\n RVValues.addNegationRV(negationgRv, rv);\n return negationgRv;\n }", "@Override\n public JsonNode visit(JmesPathNotExpression notExpression, JsonNode input) throws InvalidTypeException {\n JsonNode resultExpr = notExpression.getExpr().accept(this, input);\n if (resultExpr != BooleanNode.TRUE) {\n return BooleanNode.TRUE;\n }\n return BooleanNode.FALSE;\n }", "public final EObject ruleEConditionClauseDefinitionNOT() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token this_BEGIN_1=null;\n Token this_END_3=null;\n EObject lv_not_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:3045:2: ( (otherlv_0= Not this_BEGIN_1= RULE_BEGIN ( (lv_not_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END ) )\n // InternalRMParser.g:3046:2: (otherlv_0= Not this_BEGIN_1= RULE_BEGIN ( (lv_not_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END )\n {\n // InternalRMParser.g:3046:2: (otherlv_0= Not this_BEGIN_1= RULE_BEGIN ( (lv_not_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END )\n // InternalRMParser.g:3047:3: otherlv_0= Not this_BEGIN_1= RULE_BEGIN ( (lv_not_2_0= ruleEConditionClauseDefinition ) ) this_END_3= RULE_END\n {\n otherlv_0=(Token)match(input,Not,FOLLOW_6); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getEConditionClauseDefinitionNOTAccess().getNotKeyword_0());\n \t\t\n this_BEGIN_1=(Token)match(input,RULE_BEGIN,FOLLOW_38); \n\n \t\t\tnewLeafNode(this_BEGIN_1, grammarAccess.getEConditionClauseDefinitionNOTAccess().getBEGINTerminalRuleCall_1());\n \t\t\n // InternalRMParser.g:3055:3: ( (lv_not_2_0= ruleEConditionClauseDefinition ) )\n // InternalRMParser.g:3056:4: (lv_not_2_0= ruleEConditionClauseDefinition )\n {\n // InternalRMParser.g:3056:4: (lv_not_2_0= ruleEConditionClauseDefinition )\n // InternalRMParser.g:3057:5: lv_not_2_0= ruleEConditionClauseDefinition\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEConditionClauseDefinitionNOTAccess().getNotEConditionClauseDefinitionParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_8);\n lv_not_2_0=ruleEConditionClauseDefinition();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEConditionClauseDefinitionNOTRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"not\",\n \t\t\t\t\t\tlv_not_2_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.EConditionClauseDefinition\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n this_END_3=(Token)match(input,RULE_END,FOLLOW_2); \n\n \t\t\tnewLeafNode(this_END_3, grammarAccess.getEConditionClauseDefinitionNOTAccess().getENDTerminalRuleCall_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setSpecification(String specs) {\n specification = specs;\n }", "public void testGetObjectSpecificationWithNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'B'.\", TYPE_NUMBER, object.getType());\r\n }", "public void testGetObjectSpecificationWithNonNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\",\r\n \"identifier\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertEquals(\"Identifier should be 'identifier'.\", \"identifier\", object.getIdentifier());\r\n assertEquals(\"Type should be 'java.lang.Object'.\", TYPE_OBJECT, object.getType());\r\n }", "ModelSpecification createModelSpecification(ModelContext context);", "ISSeedModifications createISSeedModifications();", "public Units whereNot(UnitSelector.BooleanSelector selector)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!selector.isTrueFor(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Nota() {\n }", "@Test\n\tpublic void createItemNotEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\tSystem.out.println(item);\n\t\tassertNotEquals(new Item(), item);\n\t}", "protected void sequence_LogicalAbsentStatefulSource_NOT(ISerializationContext context, NOT semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Not1()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Not1()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getLogicalAbsentStatefulSource_Bs()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getLogicalAbsentStatefulSource_Bs()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getLogicalAbsentStatefulSource_And()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getLogicalAbsentStatefulSource_And()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getLogicalAbsentStatefulSource_StdSource()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getLogicalAbsentStatefulSource_StdSource()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getNOTAccess().getNot1NotKeyword_0(), semanticObject.getNot1());\n\t\tfeeder.accept(grammarAccess.getLogicalAbsentStatefulSourceAccess().getBsBasicSourceParserRuleCall_2_0_0_1_0(), semanticObject.getBs());\n\t\tfeeder.accept(grammarAccess.getLogicalAbsentStatefulSourceAccess().getAndANDParserRuleCall_2_0_0_2_0(), semanticObject.getAnd());\n\t\tfeeder.accept(grammarAccess.getLogicalAbsentStatefulSourceAccess().getStdSourceStandardStatefulSourceParserRuleCall_2_1_0(), semanticObject.getStdSource());\n\t\tfeeder.finish();\n\t}", "public TopoDS_Wire Notch(int index) {\n return new TopoDS_Wire(OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_Notch(swigCPtr, this, index), true);\n }", "public void indicateNot() {\r\n notIndicated = true;\r\n }", "public final void mT__83() throws RecognitionException {\n try {\n int _type = T__83;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:77:7: ( 'not' )\n // InternalEsm.g:77:9: 'not'\n {\n match(\"not\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "boolean not_query(DiagnosticChain diagnostics, Map<Object, Object> context);", "public void testGetObjectSpecificationWithNotFoundNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", null);\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "public bit not()\n\t{\n\t\tbit notBit = new bit();\n\t\t\n\t\tnotBit.setValue(Math.abs(bitHolder.getValue() - 1));\n\t\t\n\t\treturn notBit;\n\t}", "public void setNotAcceptReason(String notAcceptReason) {\r\n\t\tthis.notAcceptReason = notAcceptReason;\r\n\t}", "public void testConstructorWithMalformedTypeSpecification8() throws Exception {\r\n root.addChild(createObject(\"name\", TYPE_INT));\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public void createNoSubject() {\n\n }", "public void setSpecification(String specification) {\n this.specification = specification == null ? null : specification.trim();\n }", "public final void mT__184() throws RecognitionException {\n try {\n int _type = T__184;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:182:8: ( 'not' )\n // InternalMyDsl.g:182:10: 'not'\n {\n match(\"not\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n public void testForbid() {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"ePackageImport testmodel\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"rule rulename() {\");\n _builder.newLine();\n _builder.append(\"\\t\");\n _builder.append(\"graph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"edges [(forbid a->b:testmodel.type)]\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"forbid node a:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"forbid node b:testmodel.type {}\");\n _builder.newLine();\n _builder.append(\"\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n _builder.newLine();\n final String model = _builder.toString();\n final Procedure1<FormatterTestRequest> _function = new Procedure1<FormatterTestRequest>() {\n public void apply(final FormatterTestRequest it) {\n it.setToBeFormatted(model.replace(\"\\n\", \"\").replace(\"\\t\", \"\"));\n it.setExpectation(model);\n }\n };\n this.assertFormatted(_function);\n }", "public static UnaryExpression not(Expression expression, Method method) {\n return makeUnary(ExpressionType.Not, expression, null, method);\n }", "@Then(\"^a notification should not be shown$\")\n public void a_notification_should_not_be_shown() throws Throwable {\n Assert.assertFalse(result);\n }", "public void setSpec(String spec) {\n this.spec = spec;\n }", "boolean no_type(DiagnosticChain diagnostics, Map<Object, Object> context);", "protected void sequence_BasicAbsentPatternSource_NOT(ISerializationContext context, NOT semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Not1()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Not1()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getNOT_BasicSrc()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getNOT_BasicSrc()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Ft()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getNOT_Ft()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getNOTAccess().getNot1NotKeyword_0(), semanticObject.getNot1());\n\t\tfeeder.accept(grammarAccess.getBasicAbsentPatternSourceAccess().getBasicSrcBasicSourceParserRuleCall_0_1_0(), semanticObject.getBasicSrc());\n\t\tfeeder.accept(grammarAccess.getBasicAbsentPatternSourceAccess().getFtForTimeParserRuleCall_0_2_0(), semanticObject.getFt());\n\t\tfeeder.finish();\n\t}", "public Literal(int ID, boolean isNot) {\n\t\tthis.ID = ID;\n\t\tthis.isNot = isNot;\n\t}", "public final void mRULE_NOT() throws RecognitionException {\n try {\n int _type = RULE_NOT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12817:10: ( '!' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12817:12: '!'\n {\n match('!'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public void setNota(String nota) {\n this.nota = nota;\n }", "public void setNotOkForPickupReasonDescription(java.lang.String notOkForPickupReasonDescription) {\r\n this.notOkForPickupReasonDescription = notOkForPickupReasonDescription;\r\n }", "public void executeNot() {\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString sourceBS = mIR.substring(7, 3);\n\t\tmRegisters[destBS.getValue()] = mRegisters[sourceBS.getValue()].copy();\n\t\tmRegisters[destBS.getValue()].invert();\n\n\t\tBitString notVal = mRegisters[destBS.getValue()];\n\t\tsetConditionalCode(notVal);\n\t}", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "DsmlNonUML createDsmlNonUML();", "public TcgPlatformSpecification() {\n\t}", "public YSpecificationID(String uri) {\n this(null, new YSpecVersion(\"0.1\"), uri);\n }", "public void testMissingDirectiveSpecification() throws Exception {\n File file = getResourceFile(\"/testdata/javascript/testMissingDirectiveSpecification.js\");\n DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup(\"testDummy\", file.getParentFile(),\n file.getName(), ImmutableList.<DirectiveType<?>> of(DirectiveFactory.getMockDirective()),\n EnumSet.of(JavascriptGeneratorMode.TESTING));\n DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());\n dp.parseFile();\n List<JavascriptProcessingError> error = dp.validate(new JavascriptValidator());\n assertTrue(\"Should have thrown one error for unrecognized directive\", error.size() == 1);\n }", "@Test(expected = TrainException.class)\n\tpublic void testCreateLocomotiveWithInvalidOneDigitSpecification() throws TrainException\n\t{\n\t\tString invalidSpecification = \"Z\";\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock locomotiveWithInvalidSpecification = \n\t\t\t\tnew asgn2RollingStock.Locomotive(validGrossWeight , invalidSpecification);\n\t}", "@Override\n public PaymentP2007_03 whereNotExists(Select<?> select) {\n return where(DSL.notExists(select));\n }", "Relation getNegation();", "public void createMeasurementSpecificationsForEveryMetricDescription(\n EList<MetricDescription> nonMatchingMetricDesciptions, MonitorRepositoryFactory monFactory,\n EList<MeasurementSpecification> mSpecList) {\n for (int i = 0; i < nonMatchingMetricDesciptions.size(); i++) {\n mSpecList.add(monFactory.createMeasurementSpecification());\n }\n }", "private Proof subNot(Expression a, Proof nb, java.util.function.Function<Proof, Proof> ab) {\n Proof hypoAssume = hypotesisAssume(a, ab); //|- (a -> b)\n return contraTwice(hypoAssume, nb); //|- !a\n }", "static <T> Predicate<T> not(Predicate<T> predicate) {\n return predicate.negate();\n }", "public void assertNotAttribute(final String attributeLocator, final String textPattern);", "public static <T> Predicate<T> not(final Predicate<T> predicate) {\n return new Predicate<T>() {\n\n @Override\n public boolean test(T t) {\n return !predicate.test(t);\n }\n\n };\n }", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "NOEMBED createNOEMBED();", "public NotValidator(ObjectValidator validator) {\n if (validator == null) {\n throw new IllegalArgumentException(\"validator cannot be null\");\n }\n\n this.validator = validator;\n }", "public void setSpecification(Integer specification) {\r\n this.specification = specification;\r\n }", "public static Filter not(Filter filter) {\r\n return new NotFilter(filter);\r\n }", "public void saveNewSpecification(ModelOrderItemQtySpec modelOrderItemQtySpec);" ]
[ "0.7549554", "0.7549554", "0.5933786", "0.58743596", "0.5855184", "0.5762705", "0.5600383", "0.55752414", "0.5517049", "0.5466226", "0.5417393", "0.5407474", "0.53948116", "0.5345419", "0.53385496", "0.5321509", "0.5313626", "0.525619", "0.5238835", "0.5227217", "0.5177291", "0.5170924", "0.51705223", "0.5169181", "0.5143025", "0.50968707", "0.50306255", "0.50184405", "0.5012833", "0.50122774", "0.5008124", "0.49850366", "0.49836013", "0.4977691", "0.49770084", "0.49741322", "0.49667054", "0.49654448", "0.4933634", "0.49285135", "0.49160728", "0.49065828", "0.4905694", "0.48959258", "0.48811486", "0.487989", "0.48756382", "0.4863175", "0.48600563", "0.4859049", "0.48575726", "0.48553398", "0.4846746", "0.4837205", "0.4820687", "0.48158944", "0.4807096", "0.47925365", "0.47863767", "0.4786164", "0.47836098", "0.47813785", "0.47779402", "0.477476", "0.47727263", "0.47690076", "0.4762241", "0.4750672", "0.47331446", "0.47321916", "0.4717613", "0.47057694", "0.46994668", "0.46976328", "0.46735024", "0.467269", "0.46635553", "0.46634093", "0.46582738", "0.46539435", "0.4651838", "0.46331364", "0.4630506", "0.46209303", "0.46157482", "0.46141186", "0.46108246", "0.46105146", "0.4599827", "0.45997167", "0.45940527", "0.45907447", "0.4589095", "0.4583629", "0.45801374", "0.45786124", "0.457759", "0.4574852", "0.45731425", "0.45684037" ]
0.6793077
2
Comparisons | Create a new EQUALS specification for a Property.
public static <T> EqSpecification<T> eq( Property<T> property, T value ) { return new EqSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Equality createEquality();", "public abstract QueryElement addEquals(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "public static EqualityExpression eq(String propertyName, Object value) {\n return new EqualityExpression(Operator.EQUAL, propertyName, value);\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "@TestProperties(name=\"test equal sign parameters for test\")\n\tpublic void testParametersWithEquals() throws Exception {\n\t\tjsystem.launch();\n//\t\tScenarioUtils.createAndCleanScenario(jsystem, ScenariosManager.getInstance().getCurrentScenario().getScenarioName());\n\t\tScenarioUtils.createAndCleanScenario(jsystem, jsystem.getCurrentScenario());\n\t\tjsystem.addTest(\"testWithInclueParametersNewLine\", \"ParamaetersHandlingSection\", true);\n\t\tjsystem.setTestParameter(1, \"General\", \"Str8\", \"x=2=3=4, v b n eee=,\", false);\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tString propValue = \n\t\t\tgetRunProperties().getProperty(\"testWithInclueParametersNewLine_str8\");\n\t\tassertEquals(\"x=2=3=4, v b n eee=,\", propValue);\n\t}", "public final void mEQUALS() throws RecognitionException {\n try {\n int _type = EQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2763:3: ( '=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2764:3: '='\n {\n match('='); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "Comparison createComparison();", "Comparison createComparison();", "Condition equal(QueryParameter parameter, Object value);", "public final void mEQUALS() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = EQUALS;\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:435:7: ( '=' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:435: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}", "String getEqual();", "public String getName()\n {\n return \"equal\";\n }", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public abstract QueryElement addNotEquals(String property, Object value);", "public final EObject ruleEqualsOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4540:28: ( ( () otherlv_1= '==' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:1: ( () otherlv_1= '==' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:1: ( () otherlv_1= '==' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:2: () otherlv_1= '=='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4542:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getEqualsOperatorAccess().getEqualsOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,55,FOLLOW_55_in_ruleEqualsOperator9973); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getEqualsOperatorAccess().getEqualsSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public final void rule__PredicateEquality__OpAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2136:1: ( ( '==' ) | ( '!=' ) )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==13) ) {\n alt3=1;\n }\n else if ( (LA3_0==14) ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2137:1: ( '==' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2137:1: ( '==' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2138:1: '=='\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpEqualsSignEqualsSignKeyword_1_1_0_0()); \n match(input,13,FOLLOW_13_in_rule__PredicateEquality__OpAlternatives_1_1_04070); \n after(grammarAccess.getPredicateEqualityAccess().getOpEqualsSignEqualsSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2145:6: ( '!=' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2145:6: ( '!=' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2146:1: '!='\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpExclamationMarkEqualsSignKeyword_1_1_0_1()); \n match(input,14,FOLLOW_14_in_rule__PredicateEquality__OpAlternatives_1_1_04090); \n after(grammarAccess.getPredicateEqualityAccess().getOpExclamationMarkEqualsSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\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 SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Order> orders = dao.getByPropertyEqual(\"description\", \"February Large Long-Sleeve\");\n assertEquals(1, orders.size());\n assertEquals(2, orders.get(0).getId());\n }", "public abstract QueryElement addOrEquals(String property, Object value);", "public final void mRULE_EQUALS() throws RecognitionException {\n try {\n int _type = RULE_EQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12829:13: ( '=' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12829:15: '='\n {\n match('='); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean equalsTo(String property) {\n\t\t\treturn this.value.equals(property);\n\t\t}", "Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public final void mEQUALS() throws RecognitionException {\n try {\n int _type = EQUALS;\n // /Users/benjamincoe/HackWars/C.g:215:12: ( '==' )\n // /Users/benjamincoe/HackWars/C.g:215:14: '=='\n {\n match(\"==\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }", "public static <A> Equal<P1<A>> p1Equal(final Equal<A> ea) {\n return new Equal<P1<A>>(new F<P1<A>, F<P1<A>, Boolean>>() {\n public F<P1<A>, Boolean> f(final P1<A> p1) {\n return new F<P1<A>, Boolean>() {\n public Boolean f(final P1<A> p2) {\n return ea.eq(p1._1(), p2._1());\n }\n };\n }\n });\n }", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "@Test\n public void equals_trulyEqual() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "public boolean equals(Object o) {\r\n\t\t// TODO and replace return false with the appropriate code.\r\n\t\tif (o == null || o.getClass() != this.getClass())\r\n\t\t\treturn false;\r\n\t\tProperty p = (Property) o;\r\n\t\treturn Arrays.deepEquals(p.positive, this.positive)\r\n\t\t\t\t&& Arrays.deepEquals(p.negative, this.negative)\r\n\t\t\t\t&& Arrays.deepEquals(p.stop, this.stop)\r\n\t\t\t\t&& p.scoringmethod == this.scoringmethod\r\n\t\t\t\t&& Math.abs(p.mindistance - this.mindistance) < 0.000001;\r\n\t}", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public final void rule__FindProperty__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:3011:1: ( ( '=' ) )\n // InternalBrowser.g:3012:1: ( '=' )\n {\n // InternalBrowser.g:3012:1: ( '=' )\n // InternalBrowser.g:3013:2: '='\n {\n before(grammarAccess.getFindPropertyAccess().getEqualsSignKeyword_1()); \n match(input,23,FOLLOW_2); \n after(grammarAccess.getFindPropertyAccess().getEqualsSignKeyword_1()); \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 final Enumerator ruleEqualityOperator() throws RecognitionException {\n Enumerator current = null;\n\n setCurrentLookahead(); resetLookahead(); \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6745:6: ( ( ( '==' ) | ( '!=' ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:1: ( ( '==' ) | ( '!=' ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:1: ( ( '==' ) | ( '!=' ) )\n int alt98=2;\n int LA98_0 = input.LA(1);\n\n if ( (LA98_0==66) ) {\n alt98=1;\n }\n else if ( (LA98_0==67) ) {\n alt98=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"6746:1: ( ( '==' ) | ( '!=' ) )\", 98, 0, input);\n\n throw nvae;\n }\n switch (alt98) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:2: ( '==' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:2: ( '==' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:4: '=='\n {\n match(input,66,FOLLOW_66_in_ruleEqualityOperator11772); \n\n current = grammarAccess.getEqualityOperatorAccess().getEqualToEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getEqualityOperatorAccess().getEqualToEnumLiteralDeclaration_0(), null); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:6: ( '!=' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:6: ( '!=' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:8: '!='\n {\n match(input,67,FOLLOW_67_in_ruleEqualityOperator11787); \n\n current = grammarAccess.getEqualityOperatorAccess().getNotEqualToEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getEqualityOperatorAccess().getNotEqualToEnumLiteralDeclaration_1(), null); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public Object visitEqualityExpression(GNode n) {\n Object a, b, result;\n String op;\n boolean mydostring = dostring;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"==\")) {\n result = ((Long) a).equals((Long) b);\n }\n else if (op.equals(\"!=\")) {\n result = ! ((Long) a).equals((Long) b);\n }\n else {\n result = \"\";\n }\n }\n else {\n String sa, sb;\n \n if (a instanceof String) {\n sa = (String) a;\n }\n else if (a instanceof Long) {\n sa = ((Long) a).toString();\n }\n else {\n return null;\n }\n \n if (b instanceof String) {\n sb = (String) b;\n }\n else if (b instanceof Long) {\n sb = ((Long) b).toString();\n }\n else {\n return null;\n }\n \n if (op.equals(\"==\") && sa.equals(sb)) {\n result = mydostring ? \"1\" : B.one();\n }\n else {\n result = parens(sa) + \" \" + op + \" \" + parens(sb);\n }\n }\n \n return result;\n }", "@Factory\n public static Matcher<QueryTreeNode> equalTo(Matcher<QueryTreeNode> leftMatcher, Matcher<QueryTreeNode> rightMatcher) {\n return new BinaryOperatorNodeMatcher(leftMatcher, \"=\", rightMatcher);\n }", "Eq createEq();", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "public final void mEQ() throws RecognitionException {\n try {\n int _type = EQ;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/dannluciano/Sources/MyLanguage/expr.g:166:4: ( '==' )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:166:6: '=='\n {\n match(\"==\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "Expr equality() throws IOException {\n\t\tExpr e = rel();\t\t\t\t\t\t\t\t\t\t\t//\t\t\t equality ne rel | rel\n\t\twhile (look.tag == Tag.EQ || look.tag == Tag.NE) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Rel(tok, e, rel());\n\t\t}\n\t\treturn e;\n\t}", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "public final void rule__AstExpressionEq__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2844:1: ( ( '=' ) | ( '!=' ) )\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==19) ) {\n alt14=1;\n }\n else if ( (LA14_0==20) ) {\n alt14=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n }\n switch (alt14) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2845:1: ( '=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2845:1: ( '=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2846:1: '='\n {\n before(grammarAccess.getAstExpressionEqAccess().getOperatorEqualsSignKeyword_1_1_0_0()); \n match(input,19,FOLLOW_19_in_rule__AstExpressionEq__OperatorAlternatives_1_1_06140); \n after(grammarAccess.getAstExpressionEqAccess().getOperatorEqualsSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2853:6: ( '!=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2853:6: ( '!=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2854:1: '!='\n {\n before(grammarAccess.getAstExpressionEqAccess().getOperatorExclamationMarkEqualsSignKeyword_1_1_0_1()); \n match(input,20,FOLLOW_20_in_rule__AstExpressionEq__OperatorAlternatives_1_1_06160); \n after(grammarAccess.getAstExpressionEqAccess().getOperatorExclamationMarkEqualsSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\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 static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public boolean equals(Property inProperty){\n return (inProperty.getName().equals(this.getName()));\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public final EObject ruleEqualityExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_1=null;\n Token lv_op_2_2=null;\n EObject this_InstanceofExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:382:28: ( (this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:383:1: (this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:383:1: (this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:384:5: this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getEqualityExpressionAccess().getInstanceofExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleInstanceofExpression_in_ruleEqualityExpression863);\n this_InstanceofExpression_0=ruleInstanceofExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_InstanceofExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:1: ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==30) ) {\n int LA6_2 = input.LA(2);\n\n if ( (synpred4_InternalJavaJRExpression()) ) {\n alt6=1;\n }\n\n\n }\n else if ( (LA6_0==31) ) {\n int LA6_3 = input.LA(2);\n\n if ( (synpred4_InternalJavaJRExpression()) ) {\n alt6=1;\n }\n\n\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:2: ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:2: ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:3: ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:405:6: ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:405:7: () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:405:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:406:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getEqualityExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:411:2: ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:412:1: ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:412:1: ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:413:1: (lv_op_2_1= '==' | lv_op_2_2= '!=' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:413:1: (lv_op_2_1= '==' | lv_op_2_2= '!=' )\n \t int alt5=2;\n \t int LA5_0 = input.LA(1);\n\n \t if ( (LA5_0==30) ) {\n \t alt5=1;\n \t }\n \t else if ( (LA5_0==31) ) {\n \t alt5=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 5, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt5) {\n \t case 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:414:3: lv_op_2_1= '=='\n \t {\n \t lv_op_2_1=(Token)match(input,30,FOLLOW_30_in_ruleEqualityExpression935); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_1, grammarAccess.getEqualityExpressionAccess().getOpEqualsSignEqualsSignKeyword_1_0_0_1_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getEqualityExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_1, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:426:8: lv_op_2_2= '!='\n \t {\n \t lv_op_2_2=(Token)match(input,31,FOLLOW_31_in_ruleEqualityExpression964); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_2, grammarAccess.getEqualityExpressionAccess().getOpExclamationMarkEqualsSignKeyword_1_0_0_1_0_1());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getEqualityExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_2, null);\n \t \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:441:4: ( (lv_right_3_0= ruleInstanceofExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:442:1: (lv_right_3_0= ruleInstanceofExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:442:1: (lv_right_3_0= ruleInstanceofExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:443:3: lv_right_3_0= ruleInstanceofExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getEqualityExpressionAccess().getRightInstanceofExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleInstanceofExpression_in_ruleEqualityExpression1003);\n \t lv_right_3_0=ruleInstanceofExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"InstanceofExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public static <T> EqSpecification<String> eq( Association<T> association, T value )\n {\n return new EqSpecification<>( new PropertyFunction<String>( null,\n association( association ),\n null,\n null,\n IDENTITY_METHOD ),\n value.toString() );\n }", "@Override\n public Expression toExpression()\n {\n return new ComparisonExpression(getType(this.compareType), lvalue.toExpression(), rvalue.toExpression());\n }", "boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }", "public final void rule__PredicateEquality__OpAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9903:1: ( ( ( rule__PredicateEquality__OpAlternatives_1_1_0 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9904:1: ( ( rule__PredicateEquality__OpAlternatives_1_1_0 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9904:1: ( ( rule__PredicateEquality__OpAlternatives_1_1_0 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9905:1: ( rule__PredicateEquality__OpAlternatives_1_1_0 )\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpAlternatives_1_1_0()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9906:1: ( rule__PredicateEquality__OpAlternatives_1_1_0 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9906:2: rule__PredicateEquality__OpAlternatives_1_1_0\n {\n pushFollow(FOLLOW_rule__PredicateEquality__OpAlternatives_1_1_0_in_rule__PredicateEquality__OpAssignment_1_119430);\n rule__PredicateEquality__OpAlternatives_1_1_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateEqualityAccess().getOpAlternatives_1_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 }", "@Test\n public void equality() {\n new EqualsTester()\n .addEqualityGroup(UnitConverters.identity())\n .addEqualityGroup(UnitConverters.shift(100))\n .addEqualityGroup(UnitConverters.multiply(2))\n .addEqualityGroup(UnitConverters.pow(10, 6))\n .addEqualityGroup(UnitConverters.pow(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.root(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.compose(UnitConverters.shift(100), UnitConverters.multiply(2)))\n .testEquals();\n }", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1837:1: ( ( '==' ) | ( '!=' ) )\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==15) ) {\n alt4=1;\n }\n else if ( (LA4_0==16) ) {\n alt4=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n switch (alt4) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1839:1: '=='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n match(input,15,FOLLOW_15_in_rule__OpEquality__Alternatives3867); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1847:1: '!='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n match(input,16,FOLLOW_16_in_rule__OpEquality__Alternatives3887); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n\n }\n\n\n }\n break;\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 }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.EQUALS)\n default boolean equalTo(IData other) {\n \n return notSupportedOperator(OperatorType.EQUALS);\n }", "@Override\n\tpublic void visit(EqualityNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam fiul stang si fiul drept\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tString s2 = null;\n\t\tString s1 = null;\n\t\t/**\n\t\t * preluam rezultatele evaluarii celor doi fii\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Evaluator.variables.get(node.getChild(0).getName());\n\t\t} else {\n\t\t\ts1 = node.getChild(0).getName();\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Evaluator.variables.get(node.getChild(1).getName());\n\t\t} else {\n\t\t\ts2 = node.getChild(1).getName();\n\t\t}\n\n\t\t/**\n\t\t * verificam daca cei doi fii s- au evaluat la aceeasi expresie\n\t\t */\n\t\tif (s1.contentEquals(s2)) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\n\t}", "@Test\n public void testEquals() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n \n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n \n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst1 = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n ConstraintSyntaxTree cst2 = new OCLFeatureCall(\n new Variable(decl), IntegerType.GREATER_EQUALS_INTEGER_INTEGER.getName(), c0);\n\n EvaluationAccessor val1 = Utils.createValue(ConstraintType.TYPE, context, cst1);\n EvaluationAccessor val2 = Utils.createValue(ConstraintType.TYPE, context, cst2);\n EvaluationAccessor nullV = Utils.createNullValue(context);\n \n // equals is useless and will be tested in the EvaluationVisitorTest\n \n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val1);\n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val1);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, nullV);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, nullV);\n\n val1.release();\n val2.release();\n nullV.release();\n }", "public final void mEQUAL2() throws RecognitionException {\n try {\n int _type = EQUAL2;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:8:8: ( '==' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:8:10: '=='\n {\n match(\"==\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Event> events = genericDao.getByPropertyEqual(\"name\", \"Dentist\");\n assertEquals(1, events.size());\n assertEquals(2, events.get(0).getId());\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<User> users = dao.findByPropertyEqual(\"firstName\", \"Mark\");\n assertEquals(1, users.size());\n assertEquals(2, users.get(0).getId());\n }", "Quantity getComparisonValue();", "@Override\n\tpublic boolean equals(Object other){\n\t if (other == null) return false;\n\t if (other == this) return true;\n\t if (!(other instanceof Property))return false;\n\t Property otherProperty = (Property)other;\n\t \n\t if(this.number == otherProperty.number) {\n\t \treturn true;\n\t } else {\n\t \treturn false;\n\t }\n\t}", "@JRubyMethod(name = \"==\", required = 1)\n public static IRubyObject op_equal(ThreadContext ctx, IRubyObject self, IRubyObject oth) {\n RubyString str1, str2;\n RubyModule instance = (RubyModule)self.getRuntime().getModule(\"Digest\").getConstantAt(\"Instance\");\n if (oth.getMetaClass().getRealClass().hasModuleInHierarchy(instance)) {\n str1 = digest(ctx, self, null).convertToString();\n str2 = digest(ctx, oth, null).convertToString();\n } else {\n str1 = to_s(ctx, self).convertToString();\n str2 = oth.convertToString();\n }\n boolean ret = str1.length().eql(str2.length()) && (str1.eql(str2));\n return ret ? self.getRuntime().getTrue() : self.getRuntime().getFalse();\n }", "public final void equalityExpression() throws RecognitionException {\n int equalityExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"equalityExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(765, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 113) ) { return ; }\n // Java.g:766:5: ( instanceOfExpression ( ( '==' | '!=' ) instanceOfExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:766:9: instanceOfExpression ( ( '==' | '!=' ) instanceOfExpression )*\n {\n dbg.location(766,9);\n pushFollow(FOLLOW_instanceOfExpression_in_equalityExpression4504);\n instanceOfExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(766,30);\n // Java.g:766:30: ( ( '==' | '!=' ) instanceOfExpression )*\n try { dbg.enterSubRule(134);\n\n loop134:\n do {\n int alt134=2;\n try { dbg.enterDecision(134);\n\n int LA134_0 = input.LA(1);\n\n if ( ((LA134_0>=102 && LA134_0<=103)) ) {\n alt134=1;\n }\n\n\n } finally {dbg.exitDecision(134);}\n\n switch (alt134) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:766:32: ( '==' | '!=' ) instanceOfExpression\n \t {\n \t dbg.location(766,32);\n \t if ( (input.LA(1)>=102 && input.LA(1)<=103) ) {\n \t input.consume();\n \t state.errorRecovery=false;state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t dbg.recognitionException(mse);\n \t throw mse;\n \t }\n\n \t dbg.location(766,46);\n \t pushFollow(FOLLOW_instanceOfExpression_in_equalityExpression4516);\n \t instanceOfExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop134;\n }\n } while (true);\n } finally {dbg.exitSubRule(134);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 113, equalityExpression_StartIndex); }\n }\n dbg.location(767, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"equalityExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public interface Equality extends Clause {}", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2278:1: ( ( '==' ) | ( '!=' ) )\r\n int alt6=2;\r\n int LA6_0 = input.LA(1);\r\n\r\n if ( (LA6_0==18) ) {\r\n alt6=1;\r\n }\r\n else if ( (LA6_0==19) ) {\r\n alt6=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 6, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt6) {\r\n case 1 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2279:1: ( '==' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2279:1: ( '==' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2280:1: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,18,FOLLOW_18_in_rule__OpEquality__Alternatives4816); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2287:6: ( '!=' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2287:6: ( '!=' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2288:1: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,19,FOLLOW_19_in_rule__OpEquality__Alternatives4836); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Test\r\n public void testObjectPropertyWithEqualOrSameList() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ObjectProperty<ObservableList<String>> otherPropertySameList = new SimpleObjectProperty<>(list);\r\n assertFalse(\"sanity: two properties with same list are not equal\", \r\n property.equals(otherPropertySameList));\r\n ObjectProperty<ObservableList<String>> otherPropertyEqualList =\r\n new SimpleObjectProperty(createObservableList(true));\r\n assertFalse(\"sanity: two properties with equal list are not equal\", \r\n property.equals(otherPropertyEqualList));\r\n }", "@Test\n public void equals() {\n EditReminderDescriptor descriptorWithSameValues = new EditReminderDescriptor(DESC_REMINDER_MATHS);\n assertTrue(DESC_REMINDER_MATHS.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(DESC_REMINDER_MATHS.equals(DESC_REMINDER_MATHS));\n\n // null -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(null));\n\n // different types -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(5));\n\n // different values -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(DESC_REMINDER_SCIENCE));\n\n // different desc -> returns false\n EditReminderDescriptor editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withDescription(VALID_REMINDER_DESC_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n\n // different date -> returns false\n editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withReminderDate(VALID_REMINDER_DATE_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n }", "public static void testComparing() {\n System.out.println(\"\\nTEST ASSIGNING\");\n System.out.println(\"==============\");\n int i = 20;\n int j = 20;\n\n if(i == j) {\n System.out.println(\"i and j are equal\");\n }\n\n String JPY = new String(\"JPY\");\n String YEN = new String(\"JPY\");\n\n if(JPY == YEN) {\n System.out.println(\"JPY and YEN are same\"); //This line is not printed\n }\n\n if(JPY.equals(YEN)) {\n //you should always use equals() method to compare reference types.\n System.out.println(\"JPY and YEN are equal by equals()\");\n }\n }", "public void testAssertPropertyLenientEquals_equals() {\r\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }", "public boolean equals(ArticulationParameter rhs) {\n boolean ivarsEqual = true;\n\n if (rhs.getClass() != this.getClass()) {\n return false;\n }\n\n if (!(parameterTypeDesignator == rhs.parameterTypeDesignator)) {\n ivarsEqual = false;\n }\n if (!(changeIndicator == rhs.changeIndicator)) {\n ivarsEqual = false;\n }\n if (!(partAttachedTo == rhs.partAttachedTo)) {\n ivarsEqual = false;\n }\n if (!(parameterType == rhs.parameterType)) {\n ivarsEqual = false;\n }\n if (!(parameterValue == rhs.parameterValue)) {\n ivarsEqual = false;\n }\n\n return ivarsEqual;\n }", "@Override\n public boolean equals(Object o) {\n if (o instanceof TestElementProperty) {\n if (this == o) {\n return true;\n }\n if (value != null) {\n return value.equals(((JMeterProperty) o).getObjectValue());\n }\n }\n return false;\n }", "public static BinaryExpression equal(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2550:1: ( ( '==' ) | ( '!=' ) | ( '===' ) | ( '!==' ) )\r\n int alt8=4;\r\n switch ( input.LA(1) ) {\r\n case 21:\r\n {\r\n alt8=1;\r\n }\r\n break;\r\n case 22:\r\n {\r\n alt8=2;\r\n }\r\n break;\r\n case 23:\r\n {\r\n alt8=3;\r\n }\r\n break;\r\n case 24:\r\n {\r\n alt8=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 8, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt8) {\r\n case 1 :\r\n // InternalDroneScript.g:2551:2: ( '==' )\r\n {\r\n // InternalDroneScript.g:2551:2: ( '==' )\r\n // InternalDroneScript.g:2552:3: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,21,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalDroneScript.g:2557:2: ( '!=' )\r\n {\r\n // InternalDroneScript.g:2557:2: ( '!=' )\r\n // InternalDroneScript.g:2558:3: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,22,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalDroneScript.g:2563:2: ( '===' )\r\n {\r\n // InternalDroneScript.g:2563:2: ( '===' )\r\n // InternalDroneScript.g:2564:3: '==='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); \r\n }\r\n match(input,23,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalDroneScript.g:2569:2: ( '!==' )\r\n {\r\n // InternalDroneScript.g:2569:2: ( '!==' )\r\n // InternalDroneScript.g:2570:3: '!=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); \r\n }\r\n match(input,24,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Value<?> eq(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp != null) {\r\n return new ValueBoolean(cmp == 0);\r\n\r\n }\r\n\r\n return new ValueBoolean(this.value.equals(v.value));\r\n }", "private boolean isValuesEqual(BinaryMessage tocmp, BinaryMessage original) {\n\t\tif(tocmp.getValue().equals(original.getValue())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public Eq(final Expression alpha, final Expression beta) {\n\t super(LogicalType.instance, alpha, beta);\n\t}", "@Test\n void testAssertPropertyLenientEquals_equals() {\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\n }", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public static <A> Equal<A> equal(final F<A, F<A, Boolean>> f) {\n return new Equal<A>(f);\n }", "public static MatchesSpecification matches( Property<String> property, String regexp )\n {\n return new MatchesSpecification( property( property ), regexp );\n }", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "public final EObject ruleEEqual() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n EObject lv_val_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:8590:2: ( (otherlv_0= Equal ( (lv_val_1_0= ruleESingleValue ) ) ) )\n // InternalRMParser.g:8591:2: (otherlv_0= Equal ( (lv_val_1_0= ruleESingleValue ) ) )\n {\n // InternalRMParser.g:8591:2: (otherlv_0= Equal ( (lv_val_1_0= ruleESingleValue ) ) )\n // InternalRMParser.g:8592:3: otherlv_0= Equal ( (lv_val_1_0= ruleESingleValue ) )\n {\n otherlv_0=(Token)match(input,Equal,FOLLOW_88); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getEEqualAccess().getEqualKeyword_0());\n \t\t\n // InternalRMParser.g:8596:3: ( (lv_val_1_0= ruleESingleValue ) )\n // InternalRMParser.g:8597:4: (lv_val_1_0= ruleESingleValue )\n {\n // InternalRMParser.g:8597:4: (lv_val_1_0= ruleESingleValue )\n // InternalRMParser.g:8598:5: lv_val_1_0= ruleESingleValue\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEEqualAccess().getValESingleValueParserRuleCall_1_0());\n \t\t\t\t\n pushFollow(FOLLOW_2);\n lv_val_1_0=ruleESingleValue();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEEqualRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"val\",\n \t\t\t\t\t\tlv_val_1_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.ESingleValue\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "public static FieldMatcher equals() {\n return (columnName, recordOneField, recordTwoField) -> recordOneField.equals(recordTwoField);\n }", "public void testAssertPropertyReflectionEquals_equals() {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }", "public static <A> Equal<V8<A>> v8Equal(final Equal<A> ea) {\n return streamEqual(ea).comap(V8.<A>toStream_());\n }", "AngleEquals createAngleEquals();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> equals(String field, String propertyValue);", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public static boolean equalityOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"equalityOperator\")) return false;\n if (!nextTokenIs(b, \"<equality operator>\", EQ_EQ, NEQ)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, EQUALITY_OPERATOR, \"<equality operator>\");\n r = consumeToken(b, EQ_EQ);\n if (!r) r = consumeToken(b, NEQ);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "@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 }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }" ]
[ "0.6252271", "0.62442523", "0.6208908", "0.60014266", "0.5955301", "0.59339964", "0.58057505", "0.5796006", "0.56866217", "0.56866217", "0.56811976", "0.559941", "0.54882693", "0.5484099", "0.54722923", "0.5406556", "0.53527266", "0.5325878", "0.5286341", "0.52363324", "0.51899254", "0.51680267", "0.51527387", "0.5145969", "0.51304084", "0.512716", "0.51130176", "0.5110117", "0.51091045", "0.51036716", "0.5099369", "0.509262", "0.5084479", "0.50838494", "0.50787514", "0.5067501", "0.50528425", "0.50471437", "0.5030841", "0.5027608", "0.50267947", "0.50264394", "0.50241786", "0.49768135", "0.49750727", "0.49711487", "0.49646527", "0.49632326", "0.49536997", "0.48978752", "0.489645", "0.48727944", "0.4866617", "0.4861508", "0.48567748", "0.48549685", "0.48525655", "0.4849506", "0.48010412", "0.48003912", "0.47874472", "0.4785147", "0.47841758", "0.47807193", "0.4771729", "0.47656262", "0.47621566", "0.47602206", "0.47520357", "0.47470784", "0.47469747", "0.47352275", "0.47260308", "0.47239673", "0.47197747", "0.47135895", "0.4708541", "0.47069415", "0.4706679", "0.47021267", "0.47003847", "0.46974677", "0.46800864", "0.46776313", "0.46746945", "0.46693835", "0.4663837", "0.46638134", "0.46622047", "0.46543583", "0.46509558", "0.46467635", "0.4633333", "0.4632287", "0.4631234", "0.46293455", "0.462535", "0.4622923", "0.4622923", "0.4622923" ]
0.67395526
0
Create a new EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> EqSpecification<T> eq( Property<T> property, Variable variable ) { return new EqSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "public static EqualityExpression eq(String propertyName, Object value) {\n return new EqualityExpression(Operator.EQUAL, propertyName, value);\n }", "public abstract QueryElement addEquals(String property, Object value);", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "Condition equal(QueryParameter parameter, Object value);", "public QueryElement addLowerEqualsThen(String property, Object value);", "@TestProperties(name=\"test equal sign parameters for test\")\n\tpublic void testParametersWithEquals() throws Exception {\n\t\tjsystem.launch();\n//\t\tScenarioUtils.createAndCleanScenario(jsystem, ScenariosManager.getInstance().getCurrentScenario().getScenarioName());\n\t\tScenarioUtils.createAndCleanScenario(jsystem, jsystem.getCurrentScenario());\n\t\tjsystem.addTest(\"testWithInclueParametersNewLine\", \"ParamaetersHandlingSection\", true);\n\t\tjsystem.setTestParameter(1, \"General\", \"Str8\", \"x=2=3=4, v b n eee=,\", false);\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tString propValue = \n\t\t\tgetRunProperties().getProperty(\"testWithInclueParametersNewLine_str8\");\n\t\tassertEquals(\"x=2=3=4, v b n eee=,\", propValue);\n\t}", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "public String getName()\n {\n return \"equal\";\n }", "Equality createEquality();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> equals(String field, String propertyValue);", "public final void rule__FindProperty__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:3011:1: ( ( '=' ) )\n // InternalBrowser.g:3012:1: ( '=' )\n {\n // InternalBrowser.g:3012:1: ( '=' )\n // InternalBrowser.g:3013:2: '='\n {\n before(grammarAccess.getFindPropertyAccess().getEqualsSignKeyword_1()); \n match(input,23,FOLLOW_2); \n after(grammarAccess.getFindPropertyAccess().getEqualsSignKeyword_1()); \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 }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public abstract QueryElement addOrEquals(String property, Object value);", "@Override\n public boolean equals(Object o)\n {\n boolean answer = false;\n if (o instanceof VariableNode)\n {\n VariableNode other = (VariableNode) o;\n if (this.name.equals(other.name)) answer = true;\n }\n return answer;\n }", "public static <T> EqSpecification<String> eq( Association<T> association, T value )\n {\n return new EqSpecification<>( new PropertyFunction<String>( null,\n association( association ),\n null,\n null,\n IDENTITY_METHOD ),\n value.toString() );\n }", "VarAssignment createVarAssignment();", "private Copy prepareCopyForHeaderMetaData(String variableName, String property) {\n\t\tCopy copy = new Copy();\n\t\tFromSpec from = new FromSpec();\n\t\tfrom.setType(fromTypes.VARIABLE);\n\t\tfrom.setPart(\"payload\");\n\t\tfrom.setVariableName(\"input\");\n\t\tfrom.setQueryLanguage(\"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\");\n\t\tfrom.setQuery(\"<![CDATA[tns:\" + property + \"]]>\");\n\t\tcopy.setFromSpec(from);\n\t\t\n\t\tToSpec to = new ToSpec();\n\t\tto.setType(toTypes.VARIABLE);\n\t\tto.setVariableName(variableName);\n\t\tto.setHeader(property);\n\t\tcopy.setToSpec(to);\n\t\t\n\t\treturn copy;\n\t}", "public abstract QueryElement addNotEquals(String property, Object value);", "public final void mEQUALS() throws RecognitionException {\n try {\n int _type = EQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2763:3: ( '=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2764:3: '='\n {\n match('='); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean equals(Property inProperty){\n return (inProperty.getName().equals(this.getName()));\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public final void mEQUALS() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = EQUALS;\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:435:7: ( '=' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:435: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}", "String getEqual();", "public boolean equalsTo(String property) {\n\t\t\treturn this.value.equals(property);\n\t\t}", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public TempTableHeaderVariableEqualsVariable(TempTableHeader header1, TempTableHeader header2) {\r\n\t\t\tthis.header1 = header1;\r\n\t\t\tthis.header2 = header2;\r\n\t\t}", "boolean containsProperty(String name);", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> equals(EntityField field, String propertyValue);", "public void testAssertPropertyLenientEquals_equals() {\r\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }", "@Override\n public boolean equals(Object obj) {\n return ((Variable)obj).name.equals(this.name) && ((Variable)obj).initialValue == this.initialValue;\n }", "public Variable(String name){\n this.name = name;\n }", "public String getEqName() {\n return eqName;\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public static EqQAtom parseExpression(String expression) throws ParseError {\n\t\tif (expression.contains(\"GEN\")) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t}\n\t\t\n\t\tint pos1 = expression.indexOf(\"=\");\n\t\tif (pos1==-1) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t\n\t\t}\n\t\tString var = expression.substring(0,pos1).trim();\n\t\tString ind = expression.substring(pos1+1).trim();\n\t\t\n\t\treturn new EqQAtom(ind, var);\n\t\t\n\t}", "@Override\n\tpublic void visit(EqualityNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam fiul stang si fiul drept\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tString s2 = null;\n\t\tString s1 = null;\n\t\t/**\n\t\t * preluam rezultatele evaluarii celor doi fii\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Evaluator.variables.get(node.getChild(0).getName());\n\t\t} else {\n\t\t\ts1 = node.getChild(0).getName();\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Evaluator.variables.get(node.getChild(1).getName());\n\t\t} else {\n\t\t\ts2 = node.getChild(1).getName();\n\t\t}\n\n\t\t/**\n\t\t * verificam daca cei doi fii s- au evaluat la aceeasi expresie\n\t\t */\n\t\tif (s1.contentEquals(s2)) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\n\t}", "public Object visitEqualityExpression(GNode n) {\n Object a, b, result;\n String op;\n boolean mydostring = dostring;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"==\")) {\n result = ((Long) a).equals((Long) b);\n }\n else if (op.equals(\"!=\")) {\n result = ! ((Long) a).equals((Long) b);\n }\n else {\n result = \"\";\n }\n }\n else {\n String sa, sb;\n \n if (a instanceof String) {\n sa = (String) a;\n }\n else if (a instanceof Long) {\n sa = ((Long) a).toString();\n }\n else {\n return null;\n }\n \n if (b instanceof String) {\n sb = (String) b;\n }\n else if (b instanceof Long) {\n sb = ((Long) b).toString();\n }\n else {\n return null;\n }\n \n if (op.equals(\"==\") && sa.equals(sb)) {\n result = mydostring ? \"1\" : B.one();\n }\n else {\n result = parens(sa) + \" \" + op + \" \" + parens(sb);\n }\n }\n \n return result;\n }", "public static <A> Equal<P1<A>> p1Equal(final Equal<A> ea) {\n return new Equal<P1<A>>(new F<P1<A>, F<P1<A>, Boolean>>() {\n public F<P1<A>, Boolean> f(final P1<A> p1) {\n return new F<P1<A>, Boolean>() {\n public Boolean f(final P1<A> p2) {\n return ea.eq(p1._1(), p2._1());\n }\n };\n }\n });\n }", "@Test\n void testAssertPropertyLenientEquals_equals() {\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\n }", "public final void rule__FindFirstProperty__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:3254:1: ( ( '=' ) )\n // InternalBrowser.g:3255:1: ( '=' )\n {\n // InternalBrowser.g:3255:1: ( '=' )\n // InternalBrowser.g:3256:2: '='\n {\n before(grammarAccess.getFindFirstPropertyAccess().getEqualsSignKeyword_1()); \n match(input,23,FOLLOW_2); \n after(grammarAccess.getFindFirstPropertyAccess().getEqualsSignKeyword_1()); \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 static <Entity, FieldType> Specification<Entity> fieldEqual\n\t\t\t(final SingularAttribute<Entity, FieldType> singularAttribute, final FieldType value) {\n\n\t\treturn new Specification<Entity>() {\n\t\t\t@Override\n\t\t\tpublic Predicate toPredicate(Root<Entity> root, CriteriaQuery<?> query, CriteriaBuilder cb) {\n\t\t\t\treturn cb.equal(root.get(singularAttribute), value);\n\t\t\t}\n\t\t};\n\t}", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public PropertySpecBuilder<T> name(String name)\n {\n Preconditions.checkArgument(this.name == null, \"property name already set\");\n this.shortName = name;\n this.name = prefix + name;\n\n return this;\n }", "Variable(String _var) {\n this._var = _var;\n }", "private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }", "private MessageProperty setTemplateVar(String key, String value){\n\t\tMessageProperty property = new MessageProperty();\n\t\tproperty.setPropertyName(key);\n\t\tproperty.setPropertyValue(appendCDATA(value));\n\t\treturn property;\n\t}", "Property createProperty();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}", "public void setEqName(String eqName) {\n this.eqName = eqName == null ? null : eqName.trim();\n }", "public Value( String inName, Variable inVar, int inIndex )\n {\n _var = inVar;\n _name = inName;\n _index = inIndex;\n }", "public StatementBuilder where(String property, Object value) {\n return where(Where.eq(property, value));\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "VariableExp createVariableExp();", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "public Expression assign(String var, Expression expression) {\r\n // if this variable is val no meter if is capital or small letter.\r\n if (this.variable.equalsIgnoreCase(var)) {\r\n return expression;\r\n }\r\n return this;\r\n }", "Eq createEq();", "public boolean isVariableInitialized(String variableName, TOSCAPlan buildPlan) {\n\t\tElement propertyAssignElement = buildPlan.getBpelMainSequencePropertyAssignElement();\n\t\t// get all copy elements\n\t\tfor (int i = 0; i < propertyAssignElement.getChildNodes().getLength(); i++) {\n\t\t\tif (propertyAssignElement.getChildNodes().item(i).getLocalName().equals(\"copy\")) {\n\t\t\t\tNode copyElement = propertyAssignElement.getChildNodes().item(i);\n\t\t\t\tfor (int j = 0; j < copyElement.getChildNodes().getLength(); j++) {\n\t\t\t\t\tif (copyElement.getChildNodes().item(j).getLocalName().equals(\"to\")) {\n\t\t\t\t\t\tNode toElement = copyElement.getChildNodes().item(j);\n\t\t\t\t\t\tif (toElement.getAttributes().getNamedItem(\"variable\").getNodeValue().equals(variableName)) {\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\t\treturn false;\n\t}", "public static MatchesSpecification matches( Property<String> property, String regexp )\n {\n return new MatchesSpecification( property( property ), regexp );\n }", "Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public ConditionalExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n public void testExpandBasic() {\n doBasicExpansionTestImpl(testVariableForExpansion, testPropValue);\n\n // Variable trails a prefix\n String prefix = \"prefix\";\n doBasicExpansionTestImpl(prefix + testVariableForExpansion, prefix + testPropValue);\n\n // Variable precedes a suffix\n String suffix = \"suffix\";\n doBasicExpansionTestImpl(testVariableForExpansion + suffix, testPropValue + suffix);\n\n // Variable is between prefix and suffix\n doBasicExpansionTestImpl(prefix + testVariableForExpansion + suffix, prefix + testPropValue + suffix);\n }", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "public Query equals(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.equals(key, value);\n return this;\n }", "public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }", "public final void mRULE_EQUALS() throws RecognitionException {\n try {\n int _type = RULE_EQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12829:13: ( '=' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12829:15: '='\n {\n match('='); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean equalsTerm(final Object that) {\n final Variable v = (Variable)that;\n if ((v.scope == v) && (scope == this))\n //both are unscoped, so compare by name only\n return name().equals(v.name());\n else if ((v.scope!=v) && (scope==this))\n return false;\n else if ((v.scope==v) && (scope!=this))\n return false;\n else {\n if (!name().equals(v.name()))\n return false;\n\n if (scope == v.scope) return true;\n\n if (scope.hashCode()!=v.scope.hashCode())\n return false;\n\n //WARNING infinnite loop can happen if the two scopes start equaling echother\n //we need a special equals comparison which ignores variable scope when recursively\n //called from this\n //until then, we'll use the name for comparison because it wont \n //invoke infinite recursion\n\n return scope.name().equals(v.scope.name()); \n }\n }", "protected abstract Property createProperty(String key, Object value);", "public static Node match(Parser parser) throws BuildException {\n\n Lexeme var = parser.match(LexemeType.VAR);\n Node variables = IdentifierList.match(parser);\n\n if (parser.check(LexemeType.EQUALS)) {\n Lexeme equals = parser.advance();\n return VariableDeclarationNode.createVariableDeclaration(var, variables, ExpressionList.match(parser));\n\n }\n\n return VariableDeclarationNode.createVariableDeclaration(var, variables);\n\n }", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "public boolean assignVariableValueFromInput(String variableName, String inputVariableLocalName,\n\t\t\tTOSCAPlan buildPlan) {\n\t\tElement propertyAssignElement = buildPlan.getBpelMainSequencePropertyAssignElement();\n\t\t// create copy element\n\t\tElement copyElement = buildPlan.getBpelDocument().createElementNS(TOSCAPlan.bpelNamespace, \"copy\");\n\t\tElement fromElement = buildPlan.getBpelDocument().createElementNS(TOSCAPlan.bpelNamespace, \"from\");\n\n\t\tfromElement.setAttribute(\"part\", \"payload\");\n\t\tfromElement.setAttribute(\"variable\", \"input\");\n\n\t\tElement queryElement = buildPlan.getBpelDocument().createElementNS(TOSCAPlan.bpelNamespace, \"query\");\n\t\tqueryElement.setAttribute(\"queryLanguage\", \"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\");\n\n\t\tqueryElement.appendChild(buildPlan.getBpelDocument()\n\t\t\t\t.createCDATASection(\"//*[local-name()='\" + inputVariableLocalName + \"']/text()\"));\n\n\t\t/*\n\t\t * <bpel:from part=\"payload\" variable=\"input\"> <bpel:query\n\t\t * queryLanguage=\"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\"><![\n\t\t * CDATA[//*[local-name()='instanceDataAPIUrl']/text()]]></bpel:query>\n\t\t */\n\n\t\tfromElement.appendChild(queryElement);\n\t\tElement toElement = buildPlan.getBpelDocument().createElementNS(TOSCAPlan.bpelNamespace, \"to\");\n\t\ttoElement.setAttribute(\"variable\", variableName);\n\t\tcopyElement.appendChild(fromElement);\n\t\tcopyElement.appendChild(toElement);\n\t\tpropertyAssignElement.appendChild(copyElement);\n\n\t\tBPELProcessHandler.LOG.debug(\"Adding assing was successful\");\n\t\t// TODO check if a false can be made\n\t\treturn true;\n\t}", "Variable createVariable();", "Variable createVariable();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsAllSpecification<T> containsAllVariables(\n Property<? extends Collection<T>> collectionProperty,\n Iterable<Variable> variables )\n {\n NullArgumentException.validateNotNull( \"Variables\", variables );\n return new ContainsAllSpecification( property( collectionProperty ), variables );\n }", "public void testAssertPropertyReflectionEquals_equals() {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }", "String getObjectByPropertyQuery(String subject, String property);", "StringExpression createStringExpression();", "@Override\n public boolean equals(Object obj) {\n if (obj != null && getClass() == obj.getClass()) {\n Identifier o = (Identifier)obj;\n boolean b;\n b = o.getName().equals(name);\n b &= o.getScope() == scope;\n b &= o.getType() == type;\n b &= o.getValue() == value;\n \n return b;\n }\n return false;\n }", "private void constructObjectPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n\n SWRLVariable var1 = null, var2 = null, var3 = null;\n String classNm, classObject = null;\n OWLObjectProperty o = ontologyOWLObjectPropertylVocabulary.get(name);\n\n classNm = constructObjectSubjectAtom(name, antecedent);\n classObject = constructObjectObjectAtom(name, antecedent);\n var2 = initalizeVariable(classNm, var2);\n var3 = initalizeVariable(classObject, var3);\n antecedent.add(factory.getSWRLObjectPropertyAtom(o, var2, var3));\n\n constructBuiltinAtom(classObject, operator, value, null, antecedent);\n\n }", "@Override\n\tpublic void setValueExpression(String name, ValueExpression binding) {\n\t\tif (PropertyKeys.var.toString().equals(name)) {\n\t\t\tthrow new IllegalArgumentException(ERROR_EXPRESSION_DISALLOWED);\n\t\t}\n\n\t\tsuper.setValueExpression(name, binding);\n\t}", "boolean hasPropertyLike(String name);", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public Eq(final Expression alpha, final Expression beta) {\n\t super(LogicalType.instance, alpha, beta);\n\t}", "public SimplePropertyCommand(Value property, String newValue) {\n this.property = property;\n this.newValue = newValue;\n }", "boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }", "public final void rule__VarSpec__Group_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:9521:1: ( ( '=' ) )\r\n // InternalGo.g:9522:1: ( '=' )\r\n {\r\n // InternalGo.g:9522:1: ( '=' )\r\n // InternalGo.g:9523:2: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getVarSpecAccess().getEqualsSignKeyword_2_0()); \r\n }\r\n match(input,44,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getVarSpecAccess().getEqualsSignKeyword_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private Factor createEqualFactor(Variable var1,\n Variable var2) {\n List<Variable> varList = new ArrayList<Variable>();\n varList.add(var1);\n varList.add(var2);\n List<Double> values = new ArrayList<Double>();\n for (int i = 0; i < var1.getStates() * var2.getStates(); i++)\n values.add(1.0d);\n Factor factor = new Factor();\n factor.setVariables(varList);\n factor.setValues(values);\n factor.setName(\"LinkBetweenComponents\");\n return factor;\n }", "public interface Equality extends Clause {}", "@Test\n void getByPropertyEqualSuccess() {\n List<User> users = dao.findByPropertyEqual(\"firstName\", \"Mark\");\n assertEquals(1, users.size());\n assertEquals(2, users.get(0).getId());\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Order> orders = dao.getByPropertyEqual(\"description\", \"February Large Long-Sleeve\");\n assertEquals(1, orders.size());\n assertEquals(2, orders.get(0).getId());\n }", "public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}" ]
[ "0.6177265", "0.6073852", "0.6039461", "0.5889754", "0.58660537", "0.5848568", "0.5776856", "0.51668787", "0.5165144", "0.515639", "0.5044466", "0.50240594", "0.5013628", "0.50079215", "0.50020623", "0.49821737", "0.4950336", "0.49364325", "0.49359515", "0.48929048", "0.4868198", "0.4851287", "0.48381758", "0.48299575", "0.47947633", "0.47783282", "0.4778301", "0.47645038", "0.47359315", "0.4726646", "0.47234327", "0.47049642", "0.46902454", "0.46798506", "0.46745095", "0.46713412", "0.467026", "0.46392205", "0.46178022", "0.46090195", "0.45850763", "0.4583376", "0.4567206", "0.4566206", "0.45643055", "0.45519325", "0.45496136", "0.4537508", "0.45306543", "0.45299232", "0.45195472", "0.45162776", "0.45153338", "0.44955274", "0.44733223", "0.44704387", "0.44605747", "0.4453273", "0.44445354", "0.44329923", "0.44325727", "0.44309792", "0.4428222", "0.44109625", "0.4410641", "0.43905905", "0.43894386", "0.43786386", "0.43784007", "0.43782663", "0.43750188", "0.43740675", "0.4365752", "0.43614578", "0.4358933", "0.43566817", "0.43523663", "0.43405288", "0.43405288", "0.4340156", "0.43371147", "0.43220785", "0.43178764", "0.4311581", "0.43109372", "0.43048504", "0.42998415", "0.42960683", "0.42907348", "0.4282992", "0.4278866", "0.42712966", "0.42706123", "0.4263466", "0.42581284", "0.4258005", "0.4240522", "0.42374432", "0.42342386", "0.4223066" ]
0.6916793
0
Create a new EQUALS specification for an Association.
public static <T> EqSpecification<String> eq( Association<T> association, T value ) { return new EqSpecification<>( new PropertyFunction<String>( null, association( association ), null, null, IDENTITY_METHOD ), value.toString() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Equality createEquality();", "Eq createEq();", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "public final void mEQUALS() throws RecognitionException {\n try {\n int _type = EQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2763:3: ( '=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2764:3: '='\n {\n match('='); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public interface Equality extends Clause {}", "public final void mEQUALS() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = EQUALS;\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:435:7: ( '=' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:435: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}", "@Test\n public void organisationEqualsWorks() {\n Organisation organisation = new Organisation();\n organisation.setName(\"Name\");\n organisation.setVertecId(1L);\n organisation.setFullAddress(\"Building, Street_no Street, City, ZIP, Country\");\n organisation.setActive(true);\n organisation.setWebsite(\"website.net\");\n organisation.setOwnerId(2L);\n\n\n Organisation org2 = new Organisation();\n org2.setName(\"Name\");\n org2.setVertecId(1L);\n org2.setBuildingName(\"Building\");\n org2.setStreet_no(\"Street_no\");\n org2.setStreet(\"Street\");\n org2.setCity(\"City\");\n org2.setZip(\"ZIP\");\n org2.setCountry(\"Country\");\n org2.setActive(true);\n org2.setWebsite(\"website.net\");\n org2.setOwnerId(2L);\n\n System.out.println(organisation.toJsonString());\n System.out.println(org2.toJsonString());\n\n assertTrue(organisation.equalsForUpdateAssertion(org2));\n }", "public abstract QueryElement addEquals(String property, Object value);", "AngleEquals createAngleEquals();", "public final void mEQ() throws RecognitionException {\n try {\n int _type = EQ;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/dannluciano/Sources/MyLanguage/expr.g:166:4: ( '==' )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:166:6: '=='\n {\n match(\"==\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mEQUALS() throws RecognitionException {\n try {\n int _type = EQUALS;\n // /Users/benjamincoe/HackWars/C.g:215:12: ( '==' )\n // /Users/benjamincoe/HackWars/C.g:215:14: '=='\n {\n match(\"==\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "Expr equality() throws IOException {\n\t\tExpr e = rel();\t\t\t\t\t\t\t\t\t\t\t//\t\t\t equality ne rel | rel\n\t\twhile (look.tag == Tag.EQ || look.tag == Tag.NE) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Rel(tok, e, rel());\n\t\t}\n\t\treturn e;\n\t}", "Condition equal(QueryParameter parameter, Object value);", "public final void rule__AstExpressionEq__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2844:1: ( ( '=' ) | ( '!=' ) )\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==19) ) {\n alt14=1;\n }\n else if ( (LA14_0==20) ) {\n alt14=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n }\n switch (alt14) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2845:1: ( '=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2845:1: ( '=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2846:1: '='\n {\n before(grammarAccess.getAstExpressionEqAccess().getOperatorEqualsSignKeyword_1_1_0_0()); \n match(input,19,FOLLOW_19_in_rule__AstExpressionEq__OperatorAlternatives_1_1_06140); \n after(grammarAccess.getAstExpressionEqAccess().getOperatorEqualsSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2853:6: ( '!=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2853:6: ( '!=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2854:1: '!='\n {\n before(grammarAccess.getAstExpressionEqAccess().getOperatorExclamationMarkEqualsSignKeyword_1_1_0_1()); \n match(input,20,FOLLOW_20_in_rule__AstExpressionEq__OperatorAlternatives_1_1_06160); \n after(grammarAccess.getAstExpressionEqAccess().getOperatorExclamationMarkEqualsSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\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 final void rule__PredicateEquality__OpAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2136:1: ( ( '==' ) | ( '!=' ) )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==13) ) {\n alt3=1;\n }\n else if ( (LA3_0==14) ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2137:1: ( '==' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2137:1: ( '==' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2138:1: '=='\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpEqualsSignEqualsSignKeyword_1_1_0_0()); \n match(input,13,FOLLOW_13_in_rule__PredicateEquality__OpAlternatives_1_1_04070); \n after(grammarAccess.getPredicateEqualityAccess().getOpEqualsSignEqualsSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2145:6: ( '!=' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2145:6: ( '!=' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2146:1: '!='\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpExclamationMarkEqualsSignKeyword_1_1_0_1()); \n match(input,14,FOLLOW_14_in_rule__PredicateEquality__OpAlternatives_1_1_04090); \n after(grammarAccess.getPredicateEqualityAccess().getOpExclamationMarkEqualsSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\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 }", "@Test\n public void testSpecificationEqualsContract() {\n EqualsVerifier.forClass(PdfaSpecificationImpl.class).verify();\n }", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1837:1: ( ( '==' ) | ( '!=' ) )\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==15) ) {\n alt4=1;\n }\n else if ( (LA4_0==16) ) {\n alt4=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n switch (alt4) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1839:1: '=='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n match(input,15,FOLLOW_15_in_rule__OpEquality__Alternatives3867); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1847:1: '!='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n match(input,16,FOLLOW_16_in_rule__OpEquality__Alternatives3887); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n\n }\n\n\n }\n break;\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 AlgoAreEqual(Construction cons, String label,\n\t\t\tGeoElement inputElement1, GeoElement inputElement2) {\n\t\tthis(cons, inputElement1, inputElement2);\n\t\toutputBoolean.setLabel(label);\n\t}", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2278:1: ( ( '==' ) | ( '!=' ) )\r\n int alt6=2;\r\n int LA6_0 = input.LA(1);\r\n\r\n if ( (LA6_0==18) ) {\r\n alt6=1;\r\n }\r\n else if ( (LA6_0==19) ) {\r\n alt6=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 6, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt6) {\r\n case 1 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2279:1: ( '==' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2279:1: ( '==' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2280:1: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,18,FOLLOW_18_in_rule__OpEquality__Alternatives4816); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2287:6: ( '!=' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2287:6: ( '!=' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2288:1: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,19,FOLLOW_19_in_rule__OpEquality__Alternatives4836); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final EObject ruleEqualsOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4540:28: ( ( () otherlv_1= '==' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:1: ( () otherlv_1= '==' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:1: ( () otherlv_1= '==' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:2: () otherlv_1= '=='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4541:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4542:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getEqualsOperatorAccess().getEqualsOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,55,FOLLOW_55_in_ruleEqualsOperator9973); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getEqualsOperatorAccess().getEqualsSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public boolean equals(ArticulationParameter rhs) {\n boolean ivarsEqual = true;\n\n if (rhs.getClass() != this.getClass()) {\n return false;\n }\n\n if (!(parameterTypeDesignator == rhs.parameterTypeDesignator)) {\n ivarsEqual = false;\n }\n if (!(changeIndicator == rhs.changeIndicator)) {\n ivarsEqual = false;\n }\n if (!(partAttachedTo == rhs.partAttachedTo)) {\n ivarsEqual = false;\n }\n if (!(parameterType == rhs.parameterType)) {\n ivarsEqual = false;\n }\n if (!(parameterValue == rhs.parameterValue)) {\n ivarsEqual = false;\n }\n\n return ivarsEqual;\n }", "Comparison createComparison();", "Comparison createComparison();", "public final void mEQUAL2() throws RecognitionException {\n try {\n int _type = EQUAL2;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:8:8: ( '==' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:8:10: '=='\n {\n match(\"==\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static <A> Equal<V2<A>> v2Equal(final Equal<A> ea) {\n return streamEqual(ea).comap(V2.<A>toStream_());\n }", "@Override\r\n\tpublic boolean equals (Object o) {\r\n\t if (!(o instanceof Assessment) || o == null) {\r\n\t \treturn false; \r\n\t }\r\n\t Assessment a = (Assessment) o;\r\n\t return weight == a.weight && type == a.type; // Checking if weight and type if equal\r\n\t}", "@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }", "public static <A> Equal<P1<A>> p1Equal(final Equal<A> ea) {\n return new Equal<P1<A>>(new F<P1<A>, F<P1<A>, Boolean>>() {\n public F<P1<A>, Boolean> f(final P1<A> p1) {\n return new F<P1<A>, Boolean>() {\n public Boolean f(final P1<A> p2) {\n return ea.eq(p1._1(), p2._1());\n }\n };\n }\n });\n }", "public static <A> Equal<V8<A>> v8Equal(final Equal<A> ea) {\n return streamEqual(ea).comap(V8.<A>toStream_());\n }", "boolean equivalent(Concept x, Concept y);", "public final void rule__AstConnectionAttribute__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6389:1: ( ( '=' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6390:1: ( '=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6390:1: ( '=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6391:1: '='\n {\n before(grammarAccess.getAstConnectionAttributeAccess().getEqualsSignKeyword_1()); \n match(input,19,FOLLOW_19_in_rule__AstConnectionAttribute__Group__1__Impl13332); \n after(grammarAccess.getAstConnectionAttributeAccess().getEqualsSignKeyword_1()); \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 final void mRULE_EQUALS() throws RecognitionException {\n try {\n int _type = RULE_EQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12829:13: ( '=' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12829:15: '='\n {\n match('='); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n VEqinquiry other = (VEqinquiry) that;\n return (this.getCorpcode() == null ? other.getCorpcode() == null : this.getCorpcode().equals(other.getCorpcode()))\n && (this.getCorpname() == null ? other.getCorpname() == null : this.getCorpname().equals(other.getCorpname()))\n && (this.getCorpshortname() == null ? other.getCorpshortname() == null : this.getCorpshortname().equals(other.getCorpshortname()))\n && (this.getCorptype() == null ? other.getCorptype() == null : this.getCorptype().equals(other.getCorptype()))\n && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getCorpid() == null ? other.getCorpid() == null : this.getCorpid().equals(other.getCorpid()))\n && (this.getInquirycontent() == null ? other.getInquirycontent() == null : this.getInquirycontent().equals(other.getInquirycontent()))\n && (this.getInquirydate() == null ? other.getInquirydate() == null : this.getInquirydate().equals(other.getInquirydate()))\n && (this.getAttribute1() == null ? other.getAttribute1() == null : this.getAttribute1().equals(other.getAttribute1()))\n && (this.getAttribute2() == null ? other.getAttribute2() == null : this.getAttribute2().equals(other.getAttribute2()))\n && (this.getAttribute3() == null ? other.getAttribute3() == null : this.getAttribute3().equals(other.getAttribute3()))\n && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))\n && (this.getCreationdate() == null ? other.getCreationdate() == null : this.getCreationdate().equals(other.getCreationdate()))\n && (this.getLastupdateby() == null ? other.getLastupdateby() == null : this.getLastupdateby().equals(other.getLastupdateby()))\n && (this.getLastupdatedate() == null ? other.getLastupdatedate() == null : this.getLastupdatedate().equals(other.getLastupdatedate()));\n }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.EQUALS)\n default boolean equalTo(IData other) {\n \n return notSupportedOperator(OperatorType.EQUALS);\n }", "public final void rule__PredicateEquality__OpAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9903:1: ( ( ( rule__PredicateEquality__OpAlternatives_1_1_0 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9904:1: ( ( rule__PredicateEquality__OpAlternatives_1_1_0 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9904:1: ( ( rule__PredicateEquality__OpAlternatives_1_1_0 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9905:1: ( rule__PredicateEquality__OpAlternatives_1_1_0 )\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpAlternatives_1_1_0()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9906:1: ( rule__PredicateEquality__OpAlternatives_1_1_0 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9906:2: rule__PredicateEquality__OpAlternatives_1_1_0\n {\n pushFollow(FOLLOW_rule__PredicateEquality__OpAlternatives_1_1_0_in_rule__PredicateEquality__OpAssignment_1_119430);\n rule__PredicateEquality__OpAlternatives_1_1_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateEqualityAccess().getOpAlternatives_1_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 }", "protected abstract NativeSQLStatement createNativeEqualsStatement(Geometry geom);", "public final void mEQUALSEQUALS() throws RecognitionException {\n try {\n int _type = EQUALSEQUALS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2769:3: ( '==' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2770:3: '=='\n {\n match(\"==\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null) return false;\n if (!(o instanceof Autogen{{class_name}})) return false;\n Autogen{{class_name}} other = (Autogen{{class_name}}) o;\n\n {{#properties}}\n {\n {{#type}}\n Function3<{{> type}}", "boolean equivalent(AssignmentPath other);", "public static EqualityExpression eq(String propertyName, Object value) {\n return new EqualityExpression(Operator.EQUAL, propertyName, value);\n }", "public boolean equals(Object rhs) {\n AS rhsAS = (AS) rhs;\n return this.asn == rhsAS.asn;\n }", "public final void equalityExpression() throws RecognitionException {\n int equalityExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"equalityExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(765, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 113) ) { return ; }\n // Java.g:766:5: ( instanceOfExpression ( ( '==' | '!=' ) instanceOfExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:766:9: instanceOfExpression ( ( '==' | '!=' ) instanceOfExpression )*\n {\n dbg.location(766,9);\n pushFollow(FOLLOW_instanceOfExpression_in_equalityExpression4504);\n instanceOfExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(766,30);\n // Java.g:766:30: ( ( '==' | '!=' ) instanceOfExpression )*\n try { dbg.enterSubRule(134);\n\n loop134:\n do {\n int alt134=2;\n try { dbg.enterDecision(134);\n\n int LA134_0 = input.LA(1);\n\n if ( ((LA134_0>=102 && LA134_0<=103)) ) {\n alt134=1;\n }\n\n\n } finally {dbg.exitDecision(134);}\n\n switch (alt134) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:766:32: ( '==' | '!=' ) instanceOfExpression\n \t {\n \t dbg.location(766,32);\n \t if ( (input.LA(1)>=102 && input.LA(1)<=103) ) {\n \t input.consume();\n \t state.errorRecovery=false;state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t dbg.recognitionException(mse);\n \t throw mse;\n \t }\n\n \t dbg.location(766,46);\n \t pushFollow(FOLLOW_instanceOfExpression_in_equalityExpression4516);\n \t instanceOfExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop134;\n }\n } while (true);\n } finally {dbg.exitSubRule(134);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 113, equalityExpression_StartIndex); }\n }\n dbg.location(767, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"equalityExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "public String getName()\n {\n return \"equal\";\n }", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "@Test\n public void equalsTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0, entity1);\n }", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof Acquirente)) return false;\n return this.equalKeys(other) && ((Acquirente)other).equalKeys(this);\n }", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "public static <A> Equal<A> equal(final F<A, F<A, Boolean>> f) {\n return new Equal<A>(f);\n }", "public F<A, Boolean> eq(final A a) {\n return new F<A, Boolean>() {\n public Boolean f(final A a1) {\n return eq(a, a1);\n }\n };\n }", "public final void rule__BPredicate__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2556:1: ( ( '=' ) )\n // InternalBSQL2Java.g:2557:1: ( '=' )\n {\n // InternalBSQL2Java.g:2557:1: ( '=' )\n // InternalBSQL2Java.g:2558:2: '='\n {\n before(grammarAccess.getBPredicateAccess().getEqualsSignKeyword_1_1()); \n match(input,28,FOLLOW_2); \n after(grammarAccess.getBPredicateAccess().getEqualsSignKeyword_1_1()); \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 static <T> AssociationNullSpecification<T> isNull( Association<T> association )\n {\n return new AssociationNullSpecification<>( association( association ) );\n }", "protected abstract boolean equalityTest(Object key, Object key2);", "public AlgoAreEqual(Construction cons, GeoElement inputElement1,\n\t\t\tGeoElement inputElement2) {\n\t\tsuper(cons);\n\t\tthis.inputElement1 = inputElement1;\n\t\tthis.inputElement2 = inputElement2;\n\n\t\toutputBoolean = new GeoBoolean(cons);\n\n\t\tsetInputOutput();\n\t\tcompute();\n\n\t}", "@Test\n public void equals_trulyEqual() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "public boolean equals( SongsCompGenre rhs ) \n\t {\n\t return genre.equals(rhs.genre);\n\t }", "DbQuery setEqualsFilter(boolean value) {\n filter = Filter.EQUALS;\n filterType = FilterType.BOOLEAN;\n this.equals = value;\n return this;\n }", "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value );\n }", "public final void rule__AstExpressionEq__OperatorAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25262:1: ( ( ( rule__AstExpressionEq__OperatorAlternatives_1_1_0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25263:1: ( ( rule__AstExpressionEq__OperatorAlternatives_1_1_0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25263:1: ( ( rule__AstExpressionEq__OperatorAlternatives_1_1_0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25264:1: ( rule__AstExpressionEq__OperatorAlternatives_1_1_0 )\n {\n before(grammarAccess.getAstExpressionEqAccess().getOperatorAlternatives_1_1_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25265:1: ( rule__AstExpressionEq__OperatorAlternatives_1_1_0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25265:2: rule__AstExpressionEq__OperatorAlternatives_1_1_0\n {\n pushFollow(FOLLOW_rule__AstExpressionEq__OperatorAlternatives_1_1_0_in_rule__AstExpressionEq__OperatorAssignment_1_150749);\n rule__AstExpressionEq__OperatorAlternatives_1_1_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionEqAccess().getOperatorAlternatives_1_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 }", "@Test\n public void testEquals() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n \n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n \n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst1 = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n ConstraintSyntaxTree cst2 = new OCLFeatureCall(\n new Variable(decl), IntegerType.GREATER_EQUALS_INTEGER_INTEGER.getName(), c0);\n\n EvaluationAccessor val1 = Utils.createValue(ConstraintType.TYPE, context, cst1);\n EvaluationAccessor val2 = Utils.createValue(ConstraintType.TYPE, context, cst2);\n EvaluationAccessor nullV = Utils.createNullValue(context);\n \n // equals is useless and will be tested in the EvaluationVisitorTest\n \n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val1);\n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val1);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, nullV);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, nullV);\n\n val1.release();\n val2.release();\n nullV.release();\n }", "@SuppressWarnings(\"unchecked\")\n private BooleanFormula makeAssignment(Formula pFormula1, Formula pFormula2) {\n FormulaType<?> pType = mgr.getFormulaType(pFormula1);\n assertWithMessage(\n \"Trying to equalize two formulas %s and %s of different types %s and %s\",\n pFormula1, pFormula2, pType, mgr.getFormulaType(pFormula2))\n .that(mgr.getFormulaType(pFormula1).equals(mgr.getFormulaType(pFormula2)))\n .isTrue();\n if (pType.isBooleanType()) {\n return bmgr.equivalence((BooleanFormula) pFormula1, (BooleanFormula) pFormula2);\n } else if (pType.isIntegerType()) {\n return imgr.equal((IntegerFormula) pFormula1, (IntegerFormula) pFormula2);\n } else if (pType.isRationalType()) {\n return rmgr.equal((RationalFormula) pFormula1, (RationalFormula) pFormula2);\n } else if (pType.isBitvectorType()) {\n return bvmgr.equal((BitvectorFormula) pFormula1, (BitvectorFormula) pFormula2);\n } else if (pType.isFloatingPointType()) {\n return fpmgr.assignment((FloatingPointFormula) pFormula1, (FloatingPointFormula) pFormula2);\n } else if (pType.isArrayType()) {\n @SuppressWarnings(\"rawtypes\")\n ArrayFormula f2 = (ArrayFormula) pFormula2;\n return amgr.equivalence((ArrayFormula<?, ?>) pFormula1, f2);\n }\n throw new IllegalArgumentException(\n \"Cannot make equality of formulas with type \" + pType + \" in the Solver!\");\n }", "@Override\n\tpublic Condition convertToCondition() {\n\t\tRelation r = (type == EffectType.DISCARD)? Relation.UNEQUAL : Relation.EQUAL;\n\t\treturn new TemplateCondition(labelTemplate, valueTemplate, r);\n\t}", "@Override\n\tpublic int getEQMode()\n\t{\n\t\treturn 0;\n\t}", "@Test\n public void equals() {\n EditReminderDescriptor descriptorWithSameValues = new EditReminderDescriptor(DESC_REMINDER_MATHS);\n assertTrue(DESC_REMINDER_MATHS.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(DESC_REMINDER_MATHS.equals(DESC_REMINDER_MATHS));\n\n // null -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(null));\n\n // different types -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(5));\n\n // different values -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(DESC_REMINDER_SCIENCE));\n\n // different desc -> returns false\n EditReminderDescriptor editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withDescription(VALID_REMINDER_DESC_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n\n // different date -> returns false\n editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withReminderDate(VALID_REMINDER_DATE_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n }", "public final void rule__ConstSpec__Group_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:8792:1: ( ( '=' ) )\r\n // InternalGo.g:8793:1: ( '=' )\r\n {\r\n // InternalGo.g:8793:1: ( '=' )\r\n // InternalGo.g:8794:2: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getConstSpecAccess().getEqualsSignKeyword_2_0()); \r\n }\r\n match(input,44,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getConstSpecAccess().getEqualsSignKeyword_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private Equals() {}", "public final Enumerator ruleEqualityOperator() throws RecognitionException {\n Enumerator current = null;\n\n setCurrentLookahead(); resetLookahead(); \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6745:6: ( ( ( '==' ) | ( '!=' ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:1: ( ( '==' ) | ( '!=' ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:1: ( ( '==' ) | ( '!=' ) )\n int alt98=2;\n int LA98_0 = input.LA(1);\n\n if ( (LA98_0==66) ) {\n alt98=1;\n }\n else if ( (LA98_0==67) ) {\n alt98=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"6746:1: ( ( '==' ) | ( '!=' ) )\", 98, 0, input);\n\n throw nvae;\n }\n switch (alt98) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:2: ( '==' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:2: ( '==' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:4: '=='\n {\n match(input,66,FOLLOW_66_in_ruleEqualityOperator11772); \n\n current = grammarAccess.getEqualityOperatorAccess().getEqualToEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getEqualityOperatorAccess().getEqualToEnumLiteralDeclaration_0(), null); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:6: ( '!=' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:6: ( '!=' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:8: '!='\n {\n match(input,67,FOLLOW_67_in_ruleEqualityOperator11787); \n\n current = grammarAccess.getEqualityOperatorAccess().getNotEqualToEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getEqualityOperatorAccess().getNotEqualToEnumLiteralDeclaration_1(), null); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Test\n public void equals() {\n Beneficiary animalShelterCopy = new BeneficiaryBuilder(ANIMAL_SHELTER).build();\n assertTrue(ANIMAL_SHELTER.equals(animalShelterCopy));\n\n // same object -> returns true\n assertTrue(ANIMAL_SHELTER.equals(ANIMAL_SHELTER));\n\n // null -> returns false\n assertFalse(ANIMAL_SHELTER.equals(null));\n\n // different type -> returns false\n assertFalse(ANIMAL_SHELTER.equals(5));\n\n // different beneficiary -> returns false\n assertFalse(ANIMAL_SHELTER.equals(BABES));\n\n // same name -> returns true\n Beneficiary editedAnimalShelter = new BeneficiaryBuilder(BABES).withName(VALID_NAME_ANIMAL_SHELTER).build();\n assertTrue(ANIMAL_SHELTER.equals(editedAnimalShelter));\n\n // same phone and email -> returns true\n editedAnimalShelter = new BeneficiaryBuilder(BABES)\n .withPhone(VALID_PHONE_ANIMAL_SHELTER).withEmail(VALID_EMAIL_ANIMAL_SHELTER).build();\n assertTrue(ANIMAL_SHELTER.equals(editedAnimalShelter));\n }", "Assignment createAssignment();", "Assignment createAssignment();", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "public static Criteria newAndCreateCriteria() {\n YoungSeckillPromotionProductRelationExample example = new YoungSeckillPromotionProductRelationExample();\n return example.createCriteria();\n }", "public Eq(final Expression alpha, final Expression beta) {\n\t super(LogicalType.instance, alpha, beta);\n\t}", "public static <A> Equal<V6<A>> v6Equal(final Equal<A> ea) {\n return streamEqual(ea).comap(V6.<A>toStream_());\n }", "public AssociationTest(String name) {\n\t\tsuper(name);\n\t}", "public QueryElement addLowerEqualsThen(String property, Object value);", "public final void rule__XEqualityExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17490:1: ( ( ( ruleOpEquality ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17491:1: ( ( ruleOpEquality ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17491:1: ( ( ruleOpEquality ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17492:1: ( ruleOpEquality )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17493:1: ( ruleOpEquality )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17494:1: ruleOpEquality\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpEquality_in_rule__XEqualityExpression__FeatureAssignment_1_0_0_135317);\r\n ruleOpEquality();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "public boolean equals(Object other)\n {\n if (this == other) return true;\n if (other == null) return false;\n if (getClass() != other.getClass()) return false;\n \n // Arenas must have different names.\n if (other instanceof ArenaStandard && ((ArenaStandard)other).name.equals(name))\n return true;\n \n return false;\n }", "public static char getDefaultAttributeEqualitySign()\n {\n return defaults.attribute_equality_sign;\n }", "InvoiceSpecification createInvoiceSpecification();", "@Test\n public void equalsWithDifferentName() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"key1\");\n AttributeKey<Number> key2 = new AttributeKey<Number>(Number.class, \"key2\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "@VisibleForTesting\n protected void appendEquals(String leftTable,\n String leftField,\n String rightTable,\n String rightField,\n boolean joinOnNullKeys) {\n if (joinOnNullKeys) {\n builder.append(OPEN_GROUP);\n }\n\n // ...table1.column1 = table2.column2...\n builder.append(leftTable).append(DOT).append(leftField);\n builder.append(EQ);\n builder.append(rightTable).append(DOT).append(rightField);\n\n if (joinOnNullKeys) {\n // ... OR (table1.column1 IS NULL AND table2.column2 IS NULL))...\n builder.append(OR).append(OPEN_GROUP);\n builder.append(leftTable).append(DOT).append(leftField).append(IS_NULL);\n builder.append(AND);\n builder.append(rightTable).append(DOT).append(rightField).append(IS_NULL);\n builder.append(CLOSE_GROUP).append(CLOSE_GROUP);\n }\n }", "public final void rule__XEqualityExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12241:1: ( ( ( ruleOpEquality ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12242:1: ( ( ruleOpEquality ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12242:1: ( ( ruleOpEquality ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12243:1: ( ruleOpEquality )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12244:1: ( ruleOpEquality )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12245:1: ruleOpEquality\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpEquality_in_rule__XEqualityExpression__FeatureAssignment_1_0_0_124557);\n ruleOpEquality();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\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 static <A> Equal<V4<A>> v4Equal(final Equal<A> ea) {\n return streamEqual(ea).comap(V4.<A>toStream_());\n }", "@TestProperties(name=\"test equal sign parameters for test\")\n\tpublic void testParametersWithEquals() throws Exception {\n\t\tjsystem.launch();\n//\t\tScenarioUtils.createAndCleanScenario(jsystem, ScenariosManager.getInstance().getCurrentScenario().getScenarioName());\n\t\tScenarioUtils.createAndCleanScenario(jsystem, jsystem.getCurrentScenario());\n\t\tjsystem.addTest(\"testWithInclueParametersNewLine\", \"ParamaetersHandlingSection\", true);\n\t\tjsystem.setTestParameter(1, \"General\", \"Str8\", \"x=2=3=4, v b n eee=,\", false);\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tString propValue = \n\t\t\tgetRunProperties().getProperty(\"testWithInclueParametersNewLine_str8\");\n\t\tassertEquals(\"x=2=3=4, v b n eee=,\", propValue);\n\t}", "String getEqual();", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2550:1: ( ( '==' ) | ( '!=' ) | ( '===' ) | ( '!==' ) )\r\n int alt8=4;\r\n switch ( input.LA(1) ) {\r\n case 21:\r\n {\r\n alt8=1;\r\n }\r\n break;\r\n case 22:\r\n {\r\n alt8=2;\r\n }\r\n break;\r\n case 23:\r\n {\r\n alt8=3;\r\n }\r\n break;\r\n case 24:\r\n {\r\n alt8=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 8, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt8) {\r\n case 1 :\r\n // InternalDroneScript.g:2551:2: ( '==' )\r\n {\r\n // InternalDroneScript.g:2551:2: ( '==' )\r\n // InternalDroneScript.g:2552:3: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,21,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalDroneScript.g:2557:2: ( '!=' )\r\n {\r\n // InternalDroneScript.g:2557:2: ( '!=' )\r\n // InternalDroneScript.g:2558:3: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,22,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalDroneScript.g:2563:2: ( '===' )\r\n {\r\n // InternalDroneScript.g:2563:2: ( '===' )\r\n // InternalDroneScript.g:2564:3: '==='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); \r\n }\r\n match(input,23,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalDroneScript.g:2569:2: ( '!==' )\r\n {\r\n // InternalDroneScript.g:2569:2: ( '!==' )\r\n // InternalDroneScript.g:2570:3: '!=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); \r\n }\r\n match(input,24,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof BlastingtypeRelationsAud)) return false;\n return this.equalKeys(other) && ((BlastingtypeRelationsAud)other).equalKeys(this);\n }", "public final void rule__Affectation__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:1391:1: ( ( '=' ) )\n // InternalBrowser.g:1392:1: ( '=' )\n {\n // InternalBrowser.g:1392:1: ( '=' )\n // InternalBrowser.g:1393:2: '='\n {\n before(grammarAccess.getAffectationAccess().getEqualsSignKeyword_1()); \n match(input,23,FOLLOW_2); \n after(grammarAccess.getAffectationAccess().getEqualsSignKeyword_1()); \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 }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "public SimpleCondition(String fieldName, Cs cs, Object value, Associated associated) {\n\t\tif (associated != null)\n\t\t\tthis.associated = associated;\n\t\tthis.fieldName = fieldName;\n\t\tthis.value = value;\n\t\tthis.cs = cs;\n\t}", "Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public final EObject ruleEqualityExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_1=null;\n Token lv_op_2_2=null;\n EObject this_InstanceofExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:382:28: ( (this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:383:1: (this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:383:1: (this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:384:5: this_InstanceofExpression_0= ruleInstanceofExpression ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getEqualityExpressionAccess().getInstanceofExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleInstanceofExpression_in_ruleEqualityExpression863);\n this_InstanceofExpression_0=ruleInstanceofExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_InstanceofExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:1: ( ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) ) )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==30) ) {\n int LA6_2 = input.LA(2);\n\n if ( (synpred4_InternalJavaJRExpression()) ) {\n alt6=1;\n }\n\n\n }\n else if ( (LA6_0==31) ) {\n int LA6_3 = input.LA(2);\n\n if ( (synpred4_InternalJavaJRExpression()) ) {\n alt6=1;\n }\n\n\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:2: ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) ) ( (lv_right_3_0= ruleInstanceofExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:2: ( ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:392:3: ( ( () ( ( ( '==' | '!=' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:405:6: ( () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:405:7: () ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:405:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:406:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getEqualityExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:411:2: ( ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:412:1: ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:412:1: ( (lv_op_2_1= '==' | lv_op_2_2= '!=' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:413:1: (lv_op_2_1= '==' | lv_op_2_2= '!=' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:413:1: (lv_op_2_1= '==' | lv_op_2_2= '!=' )\n \t int alt5=2;\n \t int LA5_0 = input.LA(1);\n\n \t if ( (LA5_0==30) ) {\n \t alt5=1;\n \t }\n \t else if ( (LA5_0==31) ) {\n \t alt5=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 5, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt5) {\n \t case 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:414:3: lv_op_2_1= '=='\n \t {\n \t lv_op_2_1=(Token)match(input,30,FOLLOW_30_in_ruleEqualityExpression935); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_1, grammarAccess.getEqualityExpressionAccess().getOpEqualsSignEqualsSignKeyword_1_0_0_1_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getEqualityExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_1, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:426:8: lv_op_2_2= '!='\n \t {\n \t lv_op_2_2=(Token)match(input,31,FOLLOW_31_in_ruleEqualityExpression964); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_2, grammarAccess.getEqualityExpressionAccess().getOpExclamationMarkEqualsSignKeyword_1_0_0_1_0_1());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getEqualityExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_2, null);\n \t \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:441:4: ( (lv_right_3_0= ruleInstanceofExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:442:1: (lv_right_3_0= ruleInstanceofExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:442:1: (lv_right_3_0= ruleInstanceofExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:443:3: lv_right_3_0= ruleInstanceofExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getEqualityExpressionAccess().getRightInstanceofExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleInstanceofExpression_in_ruleEqualityExpression1003);\n \t lv_right_3_0=ruleInstanceofExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"InstanceofExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }" ]
[ "0.6278353", "0.5741245", "0.5650976", "0.5550149", "0.54236907", "0.537287", "0.5224415", "0.51774627", "0.51570046", "0.5078459", "0.49847135", "0.49794415", "0.49693733", "0.4936367", "0.49222645", "0.49043235", "0.48925185", "0.4857408", "0.4855814", "0.48521957", "0.4841569", "0.4838444", "0.4838444", "0.48376536", "0.48353294", "0.4833627", "0.4825837", "0.48255536", "0.4804107", "0.47844663", "0.47838867", "0.47750425", "0.47721153", "0.4771512", "0.47702235", "0.47498697", "0.47403035", "0.47374275", "0.4726706", "0.47177154", "0.47151974", "0.46974158", "0.46653074", "0.46337336", "0.46323603", "0.46208146", "0.4619417", "0.4604924", "0.46033257", "0.45684305", "0.45584136", "0.45583302", "0.45553854", "0.4542543", "0.45406932", "0.45315856", "0.4527387", "0.4514221", "0.45025066", "0.44991198", "0.44960117", "0.44906142", "0.44896144", "0.44806036", "0.44787094", "0.44748995", "0.4469379", "0.44583076", "0.44478866", "0.44459376", "0.44411793", "0.44356042", "0.44344014", "0.44344014", "0.442687", "0.4424139", "0.44157565", "0.44146013", "0.44070634", "0.43990943", "0.43985808", "0.43921524", "0.4389459", "0.43833363", "0.43812966", "0.43805674", "0.43804622", "0.43799102", "0.43785763", "0.4376961", "0.43763378", "0.4374162", "0.43713865", "0.43699914", "0.43658057", "0.43640614", "0.43631265", "0.4362914", "0.4358385", "0.43571618" ]
0.63274837
0
Create a new GREATER OR EQUALS specification for a Property.
public static <T> GeSpecification<T> ge( Property<T> property, T value ) { return new GeSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public QueryElement addGreaterThen(String property, Object value);", "public GreaterThanOrEqualExpression(final ExpressionNode<T, ?> left, final ExpressionNode<T, ?> right)\n {\n super(left, right);\n _operator = \">=\";\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public static BinaryExpression greaterThanOrEqual(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public QueryElement addLowerEqualsThen(String property, Object value);", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "public final EObject ruleGreaterOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4674:28: ( ( () otherlv_1= '>=' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:1: ( () otherlv_1= '>=' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:1: ( () otherlv_1= '>=' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:2: () otherlv_1= '>='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4676:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getGreaterOrEqualThanOperatorAccess().getGreaterOrEqualThanOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,61,FOLLOW_61_in_ruleGreaterOrEqualThanOperator10381); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getGreaterOrEqualThanOperatorAccess().getGreaterThanSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public static BinaryExpression greaterThanOrEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public Value<?> gte(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">=\", v);\r\n return new ValueBoolean(cmp >= 0);\r\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "Comparison createComparison();", "Comparison createComparison();", "public Criteria andSortGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "BooleanExpression gt(ComparableExpression<? extends T> expr);", "public abstract QueryElement addNotEquals(String property, Object value);", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "@Factory\n public static Matcher<QueryTreeNode> greaterThanOrEqualsTo(Matcher<QueryTreeNode> leftMatcher, Matcher<QueryTreeNode> rightMatcher) {\n return new BinaryOperatorNodeMatcher(leftMatcher, \">=\", rightMatcher);\n }", "Condition greaterThan(QueryParameter parameter, Object x);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(String field, long propertyValue);", "String getGreater();", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "Condition greaterThanOrEqualTo(QueryParameter parameter, Object x);", "public Value<?> gt(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">\", v);\r\n return new ValueBoolean(cmp > 0);\r\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "BooleanExpression gt(T t);", "public Criteria andStrGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andComposeGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"compose >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttribGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(EntityField field, long propertyValue);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "BooleanExpression gteq(ComparableExpression<? extends T> expr);", "public final void mGREATER_OR_EQ1() throws RecognitionException {\n try {\n int _type = GREATER_OR_EQ1;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:15:16: ( '>=' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:15:18: '>='\n {\n match(\">=\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public Criteria andAttr1GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr1 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andSortGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@Override\n public Expression toExpression()\n {\n return new ComparisonExpression(getType(this.compareType), lvalue.toExpression(), rvalue.toExpression());\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public abstract QueryElement addEquals(String property, Object value);", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "BooleanExpression gteq(T t);", "public abstract QueryElement addOrEquals(String property, Object value);", "public static BinaryExpression lessThanOrEqual(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final void mGE() throws RecognitionException {\n try {\n int _type = GE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/dannluciano/Sources/MyLanguage/expr.g:169:4: ( '>=' )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:169:6: '>='\n {\n match(\">=\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public Criteria andAttr2GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr2 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public final EObject entryRuleGreaterOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleGreaterOrEqualThanOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4663:2: (iv_ruleGreaterOrEqualThanOperator= ruleGreaterOrEqualThanOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4664:2: iv_ruleGreaterOrEqualThanOperator= ruleGreaterOrEqualThanOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getGreaterOrEqualThanOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleGreaterOrEqualThanOperator_in_entryRuleGreaterOrEqualThanOperator10325);\r\n iv_ruleGreaterOrEqualThanOperator=ruleGreaterOrEqualThanOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleGreaterOrEqualThanOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleGreaterOrEqualThanOperator10335); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Criteria andAttr10GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr10 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "SelectorBuilderInterface<SelectorT> greaterThan(EntityField field, long propertyValue);", "public Criteria andAttr6GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr6 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr8GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr8 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPnameGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andEnabledGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"enabled >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThan(String field, long propertyValue);", "List<Object> greaterThanOrEqualsTo(Object value);", "ConditionalExpression createConditionalExpression();", "public final void rule__PredicateComparison__OpAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2162:1: ( ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )\n int alt4=4;\n switch ( input.LA(1) ) {\n case 15:\n {\n alt4=1;\n }\n break;\n case 16:\n {\n alt4=2;\n }\n break;\n case 17:\n {\n alt4=3;\n }\n break;\n case 18:\n {\n alt4=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n\n switch (alt4) {\n case 1 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2163:1: ( '>=' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2163:1: ( '>=' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2164:1: '>='\n {\n before(grammarAccess.getPredicateComparisonAccess().getOpGreaterThanSignEqualsSignKeyword_1_1_0_0()); \n match(input,15,FOLLOW_15_in_rule__PredicateComparison__OpAlternatives_1_1_04125); \n after(grammarAccess.getPredicateComparisonAccess().getOpGreaterThanSignEqualsSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2171:6: ( '<=' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2171:6: ( '<=' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2172:1: '<='\n {\n before(grammarAccess.getPredicateComparisonAccess().getOpLessThanSignEqualsSignKeyword_1_1_0_1()); \n match(input,16,FOLLOW_16_in_rule__PredicateComparison__OpAlternatives_1_1_04145); \n after(grammarAccess.getPredicateComparisonAccess().getOpLessThanSignEqualsSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2179:6: ( '>' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2179:6: ( '>' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2180:1: '>'\n {\n before(grammarAccess.getPredicateComparisonAccess().getOpGreaterThanSignKeyword_1_1_0_2()); \n match(input,17,FOLLOW_17_in_rule__PredicateComparison__OpAlternatives_1_1_04165); \n after(grammarAccess.getPredicateComparisonAccess().getOpGreaterThanSignKeyword_1_1_0_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2187:6: ( '<' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2187:6: ( '<' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2188:1: '<'\n {\n before(grammarAccess.getPredicateComparisonAccess().getOpLessThanSignKeyword_1_1_0_3()); \n match(input,18,FOLLOW_18_in_rule__PredicateComparison__OpAlternatives_1_1_04185); \n after(grammarAccess.getPredicateComparisonAccess().getOpLessThanSignKeyword_1_1_0_3()); \n\n }\n\n\n }\n break;\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 Criteria andAttr9GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr9 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPriceGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andConsigneeGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"consignee >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "public Criteria andAttr7GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr7 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andShopOrderGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"shop_order >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@JsonCreator\n public GreaterThanEquals(\n @JsonProperty(JSON_KEY_LEFT_OPERAND) final Fragment left,\n @JsonProperty(JSON_KEY_RIGHT_OPERAND)final Fragment right)\n throws InvalidArgumentException {\n\n if(left == null) {\n throw\n new InvalidArgumentException(\n \"The left operand is missing.\");\n }\n if(! (left instanceof Terminal)) {\n throw\n new InvalidArgumentException(\n \"The left operand is not a terminal value.\");\n }\n if(right == null) {\n throw\n new InvalidArgumentException(\n \"The right operand is missing.\");\n }\n if(! (right instanceof Terminal)) {\n throw\n new InvalidArgumentException(\n \"The right operand is not a terminal value.\");\n }\n\n this.left = (Terminal) left;\n this.right = (Terminal) right;\n }", "public static EqualityExpression ne(String propertyName, Object value) {\n return new EqualityExpression(Operator.NOT_EQUAL, propertyName, value);\n }", "public static BinaryExpression lessThanOrEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "PropertyRule createPropertyRule();", "public Criteria andAttr3GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr3 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andProductIdGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"product_id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr4GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr4 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Query greaterThanEqualTo(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.GREATERTHANEQUAL), key, value);\n return this;\n }", "public GreaterThanTest(String name) {\n\t\tsuper(name);\n\t}", "public Snippet visit(GreaterThanEqualExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" >= \"+f2.returnTemp;\n\t return _ret;\n\t }", "public Criteria andOrderSnGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_sn >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andNameGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "default A isGreaterThanOrEqualTo(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN_OR_EQUAL));\n }", "public Criteria andAttr5GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr5 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andEnabledGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"enabled > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andSystemedGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"systemed >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "LengthGreater createLengthGreater();", "@Factory\n public static Matcher<QueryTreeNode> greaterThan(Matcher<QueryTreeNode> leftMatcher, Matcher<QueryTreeNode> rightMatcher) {\n return relation(leftMatcher, \">\", rightMatcher);\n }", "AngleGreater createAngleGreater();", "Condition(Column col1, String relation, Column col2) {\n this._col1 = col1;\n this._col2 = col2;\n this.compRep = 0;\n\n switch (relation) {\n case \"<=\":\n this.compRep |= EQ;\n this.compRep |= LT;\n break;\n case \"<\":\n this.compRep |= LT;\n break;\n case \">=\":\n this.compRep |= EQ;\n this.compRep |= GT;\n break;\n case \">\":\n this.compRep |= GT;\n break;\n case \"=\":\n this.compRep |= EQ;\n break;\n case \"!=\":\n this.compRep = (GT | LT) & ~EQ;\n break;\n default:\n throw new DBException(\"Error: invalid relation.\");\n }\n\n }", "public Criteria andPriceGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andStrGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public final EObject ruleLessOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4736:28: ( ( () otherlv_1= '<=' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:1: ( () otherlv_1= '<=' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:1: ( () otherlv_1= '<=' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:2: () otherlv_1= '<='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4738:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getLessOrEqualThanOperatorAccess().getLessOrEqualThanOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,63,FOLLOW_63_in_ruleLessOrEqualThanOperator10565); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getLessOrEqualThanOperatorAccess().getLessThanSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Criteria andUpdateByGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"update_by >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andIdGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "Property createProperty();", "public static Operator giveOperator(Actor self, Actor recipient, Prop prop) {\n\n\t\t// Set conditions that must be true\n\t\tArrayList<ICondition> beTrue = new ArrayList<ICondition>();\n\t\tbeTrue.add(new LivesCondition(self));\n\t\tbeTrue.add(new LivesCondition(recipient));\n\t\tbeTrue.add(new SamePlaceCondition(self, recipient));\n\t\tbeTrue.add(new BelongsToCondition(prop, self));\n\n\t\t// Set conditions that must be false\n\t\tArrayList<ICondition> beFalse = new ArrayList<ICondition>();\n\n\t\t// Set conditions that will be set true\n\t\tArrayList<ICondition> setTrue = new ArrayList<ICondition>();\n\t\tsetTrue.add(new BelongsToCondition(prop, recipient));\n\n\t\t// Set conditions that will be set false\n\t\tArrayList<ICondition> setFalse = new ArrayList<ICondition>();\n\n\t\t// Add the corresponding action to the operator\n\t\tAction action = new Action(Action.ActionType.GIVE, self, recipient, prop);\n\t\t\n\t\t// The weight for giving actions\n\t\tint weight = 5;\n\t\t\n\t\treturn new Operator(beTrue, beFalse, setTrue, setFalse, action, weight);\n\t}", "public final EObject ruleFieldPropertyAssociation() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_ownedValue_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:10860:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon ) )\n // InternalSafetyParser.g:10861:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon )\n {\n // InternalSafetyParser.g:10861:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon )\n // InternalSafetyParser.g:10862:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon\n {\n // InternalSafetyParser.g:10862:3: ( (otherlv_0= RULE_ID ) )\n // InternalSafetyParser.g:10863:4: (otherlv_0= RULE_ID )\n {\n // InternalSafetyParser.g:10863:4: (otherlv_0= RULE_ID )\n // InternalSafetyParser.g:10864:5: otherlv_0= RULE_ID\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getFieldPropertyAssociationRule());\n \t\t\t\t\t}\n \t\t\t\t\n }\n otherlv_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_110); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_0, grammarAccess.getFieldPropertyAssociationAccess().getPropertyBasicPropertyCrossReference_0_0());\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,EqualsSignGreaterThanSign,FollowSets000.FOLLOW_104); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getFieldPropertyAssociationAccess().getEqualsSignGreaterThanSignKeyword_1());\n \t\t\n }\n // InternalSafetyParser.g:10879:3: ( (lv_ownedValue_2_0= rulePropertyExpression ) )\n // InternalSafetyParser.g:10880:4: (lv_ownedValue_2_0= rulePropertyExpression )\n {\n // InternalSafetyParser.g:10880:4: (lv_ownedValue_2_0= rulePropertyExpression )\n // InternalSafetyParser.g:10881:5: lv_ownedValue_2_0= rulePropertyExpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getFieldPropertyAssociationAccess().getOwnedValuePropertyExpressionParserRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_14);\n lv_ownedValue_2_0=rulePropertyExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getFieldPropertyAssociationRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedValue\",\n \t\t\t\t\t\tlv_ownedValue_2_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.PropertyExpression\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getFieldPropertyAssociationAccess().getSemicolonKeyword_3());\n \t\t\n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }" ]
[ "0.70800173", "0.680845", "0.6708215", "0.6706691", "0.65541327", "0.58665943", "0.58620936", "0.5730666", "0.56754106", "0.5630716", "0.5541568", "0.55235696", "0.5516249", "0.54829544", "0.54690087", "0.5466497", "0.5337721", "0.5335086", "0.5305922", "0.52492714", "0.52492714", "0.5208975", "0.5176895", "0.5175213", "0.5151495", "0.51465297", "0.51102793", "0.50970334", "0.5072179", "0.5060596", "0.5057075", "0.50518745", "0.5038238", "0.50127965", "0.5003739", "0.49958503", "0.4993472", "0.49884224", "0.49777", "0.49711832", "0.49553123", "0.49322635", "0.4925838", "0.49232474", "0.49224928", "0.49208483", "0.4881423", "0.4873359", "0.48733538", "0.48682368", "0.4865703", "0.4861708", "0.4861308", "0.48599783", "0.48593098", "0.48567614", "0.4855543", "0.4852385", "0.48406082", "0.48404834", "0.48273537", "0.48256627", "0.4823783", "0.48233247", "0.48223582", "0.47912112", "0.47903872", "0.477655", "0.47536165", "0.47132707", "0.4713148", "0.47060058", "0.47049335", "0.4701984", "0.46970403", "0.46960762", "0.46931064", "0.4686049", "0.46822655", "0.46779612", "0.46758798", "0.46651685", "0.4660359", "0.46492308", "0.4648376", "0.46342796", "0.4630418", "0.46299282", "0.46205017", "0.46092355", "0.46071887", "0.46041405", "0.46035483", "0.46016434", "0.45984328", "0.45951563", "0.4593712", "0.45933124", "0.45852917", "0.45821014" ]
0.6189032
5
Create a new GREATER OR EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> GeSpecification<T> ge( Property<T> property, Variable variable ) { return new GeSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "public QueryElement addGreaterThen(String property, Object value);", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "Condition greaterThan(QueryParameter parameter, Object x);", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "Condition greaterThanOrEqualTo(QueryParameter parameter, Object x);", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(String field, long propertyValue);", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "String getGreater();", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public GreaterThanTest(String name) {\n\t\tsuper(name);\n\t}", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "public GreaterThanOrEqualExpression(final ExpressionNode<T, ?> left, final ExpressionNode<T, ?> right)\n {\n super(left, right);\n _operator = \">=\";\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThan(String field, long propertyValue);", "ConditionalExpression createConditionalExpression();", "public abstract QueryElement addOrNotEquals(String property, Object value);", "SelectorBuilderInterface<SelectorT> greaterThan(EntityField field, long propertyValue);", "public static BinaryExpression greaterThanOrEqual(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "Comparison createComparison();", "Comparison createComparison();", "Variable createVariable();", "Variable createVariable();", "public Criteria andPnameGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }", "Condition equal(QueryParameter parameter, Object value);", "public Value<?> gte(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">=\", v);\r\n return new ValueBoolean(cmp >= 0);\r\n }", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "BooleanExpression gt(ComparableExpression<? extends T> expr);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(EntityField field, long propertyValue);", "VariableExp createVariableExp();", "public static EqualityExpression eq(String propertyName, Object value) {\n return new EqualityExpression(Operator.EQUAL, propertyName, value);\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "public abstract QueryElement addNotEquals(String property, Object value);", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public ConditionalExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "Property createProperty();", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "public abstract QueryElement addEquals(String property, Object value);", "VarAssignment createVarAssignment();", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public Criteria andNameGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public final EObject ruleGreaterOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4674:28: ( ( () otherlv_1= '>=' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:1: ( () otherlv_1= '>=' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:1: ( () otherlv_1= '>=' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:2: () otherlv_1= '>='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4676:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getGreaterOrEqualThanOperatorAccess().getGreaterOrEqualThanOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,61,FOLLOW_61_in_ruleGreaterOrEqualThanOperator10381); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getGreaterOrEqualThanOperatorAccess().getGreaterThanSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Criteria andPnameGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static void greaterThanOrEqual(double arg, double min, String argName) {\r\n if (arg < min) {\r\n throw new IllegalArgumentException(\"Argument \\\"\" + argName + \"\\\" must be greater than or equal to \" + min);\r\n }\r\n }", "public abstract QueryElement addOrEquals(String property, Object value);", "BooleanExpression gt(T t);", "public NdexPropertyValuePair getPropertyByName(String name) {\n\t\tfor ( NdexPropertyValuePair p : _properties ) {\n\t\t\tif ( p.getPredicateString().equals(name)) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Variable(String name){\n this.name = name;\n }", "LengthGreater createLengthGreater();", "public Snippet visit(GreaterThanEqualExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" >= \"+f2.returnTemp;\n\t return _ret;\n\t }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "Condition between(QueryParameter parameter, Object x, Object y);", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "public static EqualityExpression ne(String propertyName, Object value) {\n return new EqualityExpression(Operator.NOT_EQUAL, propertyName, value);\n }", "public Value<?> gt(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">\", v);\r\n return new ValueBoolean(cmp > 0);\r\n }", "public static BinaryExpression greaterThanOrEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public Criteria andComposeGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"compose >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andStrGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Element getPredicateVariable();", "PropertyRule createPropertyRule();", "Condition lessThanOrEqualTo(QueryParameter parameter, Object x);", "public interface ComparisonOperator{\r\n\r\n\t /** Set PropertyName\r\n\t */\r\n\tpublic void setPropertyName (String property);\r\n\t\r\n\t/**\r\n\t * Get PropertyName\r\n\t */\r\n\tpublic String getPropertyName();\r\n}", "public QueryElement addLowerThen(String property, Object value);", "public String getName()\n {\n return \"equal\";\n }", "public Criteria andAttribGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Conditional(String tag, String value) {\r\n super(tag, value);\r\n }", "boolean containsProperty(String name);", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "public static Node match(Parser parser) throws BuildException {\n\n Lexeme var = parser.match(LexemeType.VAR);\n Node variables = IdentifierList.match(parser);\n\n if (parser.check(LexemeType.EQUALS)) {\n Lexeme equals = parser.advance();\n return VariableDeclarationNode.createVariableDeclaration(var, variables, ExpressionList.match(parser));\n\n }\n\n return VariableDeclarationNode.createVariableDeclaration(var, variables);\n\n }", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {\n boolean hasPropertyAgnosticType = false;\n EventType[] types = validationContext.getStreamTypeService().getEventTypes();\n for (int i = 0; i < validationContext.getStreamTypeService().getEventTypes().length; i++) {\n if (types[i] instanceof EventTypeSPI) {\n hasPropertyAgnosticType |= ((EventTypeSPI) types[i]).getMetadata().isPropertyAgnostic();\n }\n }\n\n if (!hasPropertyAgnosticType) {\n // the variable name should not overlap with a property name\n try {\n validationContext.getStreamTypeService().resolveByPropertyName(variableName, false);\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (DuplicatePropertyException e) {\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (PropertyNotFoundException e) {\n // expected\n }\n }\n\n VariableMetaData variableMetadata = validationContext.getVariableService().getVariableMetaData(variableName);\n if (variableMetadata == null) {\n throw new ExprValidationException(\"Failed to find variable by name '\" + variableName + \"'\");\n }\n isPrimitive = variableMetadata.getEventType() == null;\n variableType = variableMetadata.getType();\n if (optSubPropName != null) {\n if (variableMetadata.getEventType() == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n eventTypeGetter = ((EventTypeSPI) variableMetadata.getEventType()).getGetterSPI(optSubPropName);\n if (eventTypeGetter == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n variableType = variableMetadata.getEventType().getPropertyType(optSubPropName);\n }\n\n readersPerCp = validationContext.getVariableService().getReadersPerCP(variableName);\n if (variableMetadata.getContextPartitionName() == null) {\n readerNonCP = readersPerCp.get(EPStatementStartMethod.DEFAULT_AGENT_INSTANCE_ID);\n }\n variableType = JavaClassHelper.getBoxedType(variableType);\n return null;\n }", "public RandomVaries(String name, int probability, float minUnits, float maxUnits){\n super(name);\n this.probability=probability;\n if(minUnits<0)generator=true;\n this.minUnits=Math.abs(minUnits);\n this.maxUnits=Math.abs(maxUnits);\n }", "public Criteria andSortGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andNameGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThanEquals(String field, long propertyValue);", "Variable(String _var) {\n this._var = _var;\n }", "private MessageProperty setTemplateVar(String key, String value){\n\t\tMessageProperty property = new MessageProperty();\n\t\tproperty.setPropertyName(key);\n\t\tproperty.setPropertyValue(appendCDATA(value));\n\t\treturn property;\n\t}", "public Criteria andCnameGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"cname >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static Operator giveOperator(Actor self, Actor recipient, Prop prop) {\n\n\t\t// Set conditions that must be true\n\t\tArrayList<ICondition> beTrue = new ArrayList<ICondition>();\n\t\tbeTrue.add(new LivesCondition(self));\n\t\tbeTrue.add(new LivesCondition(recipient));\n\t\tbeTrue.add(new SamePlaceCondition(self, recipient));\n\t\tbeTrue.add(new BelongsToCondition(prop, self));\n\n\t\t// Set conditions that must be false\n\t\tArrayList<ICondition> beFalse = new ArrayList<ICondition>();\n\n\t\t// Set conditions that will be set true\n\t\tArrayList<ICondition> setTrue = new ArrayList<ICondition>();\n\t\tsetTrue.add(new BelongsToCondition(prop, recipient));\n\n\t\t// Set conditions that will be set false\n\t\tArrayList<ICondition> setFalse = new ArrayList<ICondition>();\n\n\t\t// Add the corresponding action to the operator\n\t\tAction action = new Action(Action.ActionType.GIVE, self, recipient, prop);\n\t\t\n\t\t// The weight for giving actions\n\t\tint weight = 5;\n\t\t\n\t\treturn new Operator(beTrue, beFalse, setTrue, setFalse, action, weight);\n\t}", "BooleanExpression gteq(ComparableExpression<? extends T> expr);", "public static boolean isVariable(Name name) {\n\t\t\n\t\tAstNode parent = name.getParent();\n\n\t\tif(parent instanceof InfixExpression) {\n\t\t\tInfixExpression ie = (InfixExpression) parent;\n\t\t\tif(ie.getOperator() == Token.GETPROP || ie.getOperator() == Token.GETPROPNOWARN) {\n /* If the parent is field access, make sure it is on the LHS. */\n\t\t\t\tif(ie.getRight() == name) return false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t/* It is some other boolean operator, so it should be a variable. */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif(parent instanceof UnaryExpression) {\n\t\t\t/* It is a variable that is being operated on by a unary expression. */\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "public Query greaterThanEqualTo(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.GREATERTHANEQUAL), key, value);\n return this;\n }", "public void testBoundToVariable()\n throws Exception\n {\n String varname =\"ITEM\";\n String id = \"occ_hermes1\";\n Occurrence occ = (Occurrence) tm.getObjectByID(id);\n // resolver shall resolve by id\n tag.setOccurrence(occ);\n\n // resolved topic shall be stored in\n // the variable named TOPIC\n tag.setVar(varname);\n \n // resolve\n setScriptForTagBody(tag);\n tag.doTag(null);\n \n // the item should be stored in the variable\n assertEquals(occ, ctx.getVariable(varname));\n \n // make a new tag, bound to the same variable \n // set resolvement to non existant topic\n tag = new UseOccurrenceTag();\n tag.setContext(ctx);\n tag.setVar(varname);\n tag.setId(\"nonexistantntifd\");\n\n // resolve\n tag.doTag(null);\n\n // the variable should be resetted\n assertNull(ctx.getVariable(varname));\n \n }", "boolean hasPropertyLike(String name);", "public final void mGREATER_OR_EQ1() throws RecognitionException {\n try {\n int _type = GREATER_OR_EQ1;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:15:16: ( '>=' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:15:18: '>='\n {\n match(\">=\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "<C, PM> Variable<C, PM> createVariable();" ]
[ "0.66034365", "0.6579301", "0.63179356", "0.6212571", "0.6192968", "0.58367807", "0.58275366", "0.5681955", "0.56168526", "0.53784", "0.534697", "0.5293511", "0.5286019", "0.5276842", "0.5217778", "0.5185212", "0.5083017", "0.5067754", "0.49930707", "0.49257642", "0.49030232", "0.48718208", "0.48609036", "0.4816105", "0.48097795", "0.480358", "0.47972777", "0.47819188", "0.47708517", "0.4768645", "0.47559854", "0.47559854", "0.47152036", "0.47152036", "0.46951997", "0.4685161", "0.46756926", "0.46651992", "0.46593124", "0.46432936", "0.46302494", "0.45951092", "0.4588766", "0.45845693", "0.45800716", "0.4579985", "0.45762992", "0.45739287", "0.45703563", "0.4564602", "0.4557982", "0.45535174", "0.45523334", "0.45487225", "0.4546857", "0.45179942", "0.45087168", "0.44922188", "0.4491996", "0.44839156", "0.4477312", "0.4474797", "0.44737136", "0.4467511", "0.4453573", "0.44520953", "0.4445313", "0.44376534", "0.44343278", "0.44281358", "0.44200024", "0.44100034", "0.4401736", "0.43979877", "0.43901664", "0.43757954", "0.43683943", "0.4367287", "0.43665695", "0.43593323", "0.43570793", "0.43509495", "0.43490386", "0.4341983", "0.43412137", "0.4330016", "0.43196452", "0.43120745", "0.43090338", "0.4284716", "0.4279149", "0.4274097", "0.42693606", "0.42597872", "0.42574874", "0.42570433", "0.4253102", "0.42523852", "0.42484415", "0.42456502" ]
0.60550106
5
Create a new GREATER THAN specification for a Property.
public static <T> GtSpecification<T> gt( Property<T> property, T value ) { return new GtSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryElement addGreaterThen(String property, Object value);", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "String getGreater();", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "public GreaterThanTest(String name) {\n\t\tsuper(name);\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThan(String field, long propertyValue);", "default A isGreaterThanOrEqualTo(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN_OR_EQUAL));\n }", "SelectorBuilderInterface<SelectorT> greaterThan(EntityField field, long propertyValue);", "default A isGreaterThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN));\n }", "public Criteria andComposeGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"compose >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "LengthGreater createLengthGreater();", "Condition greaterThan(QueryParameter parameter, Object x);", "public Criteria andAttribGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andSortGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "AngleGreater createAngleGreater();", "public Criteria andPnameGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPriceGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPriceGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public Criteria andSortGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "@Override\n\tprotected GreaterThan getFixture() {\n\t\treturn (GreaterThan)fixture;\n\t}", "public Criteria andAttr10GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr10 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andComposeGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"compose > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPnameGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr1GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr1 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Value<?> gt(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">\", v);\r\n return new ValueBoolean(cmp > 0);\r\n }", "public Criteria andSystemedGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"systemed >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr10GreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr10 > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andIfAnalyzeGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_analyze >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public boolean greaterP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) > (yRatio.numerator * x.denominator));\n }\n }\n }", "Condition greaterThanOrEqualTo(QueryParameter parameter, Object x);", "public Value<?> gte(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">=\", v);\r\n return new ValueBoolean(cmp >= 0);\r\n }", "public Criteria andAttribGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr6GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr6 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andStrGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public Criteria andCreatePersonGreaterThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andLevelGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`level` >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private double estimateNumericalPropertyProb(TemporalElementStats stat, String property,\n Comparator comp, PropertyValue value) {\n // property not sampled or not considered\n if (!stat.getNumericalPropertyStatsEstimation().containsKey(property)) {\n // if property not excluded, return very small value\n // if excluded, it is irrelevant, return 0.5\n return isPropertyRelevant(property) ? 0.0001 : 0.5;\n }\n Double[] propertyStats = stat.getNumericalPropertyStatsEstimation().get(property);\n NormalDistribution dist = new NormalDistribution(propertyStats[0],\n Math.max(Math.sqrt(propertyStats[1]), VERY_LOW_PROB));\n double doubleValue = ((Number) value.getObject()).doubleValue();\n double occurenceProb = stat.getNumericalOccurrenceEstimation().get(property);\n if (comp == EQ) {\n return VERY_LOW_PROB * occurenceProb;\n } else if (comp == NEQ) {\n return (1. - VERY_LOW_PROB) * occurenceProb;\n } else if (comp == LTE) {\n return dist.cumulativeProbability(doubleValue) * occurenceProb;\n } else if (comp == LT) {\n return occurenceProb * (dist.cumulativeProbability(doubleValue) - VERY_LOW_PROB);\n } else if (comp == GTE) {\n return occurenceProb *\n (1. - dist.cumulativeProbability(doubleValue) + VERY_LOW_PROB);\n } else {\n //GT\n return occurenceProb * (1. - dist.cumulativeProbability(doubleValue));\n }\n }", "BooleanExpression gt(ComparableExpression<? extends T> expr);", "public Criteria andAttr7GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr7 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andGoodsPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"goods_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "float getGt();", "public Criteria andNameGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr9GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr9 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andConsigneeGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"consignee >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "BooleanExpression gt(T t);", "public Criteria andAttr1GreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr1 > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andGoodsPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"goods_price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andIfLeafGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_leaf >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andProductIdGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"product_id > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andCreatePersonGreaterThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andOrdernumberGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"ordernumber >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static BinaryExpression greaterThanOrEqual(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public Criteria andProductIdGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"product_id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andEnabledGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"enabled > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andLevelGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`level` > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr8GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr8 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andEnabledGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"enabled >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andOrdernumberGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"ordernumber > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andConsigneeGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"consignee > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void testGreaterThanElement() {\n\t // fail(\"testGreaterThanElement\");\n \tCircuit circuit = new Circuit();\n \tDouble x1 = 0.5;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tGte gte1 = (Gte) circuit.getFactory().getGate(Gate.GTE);\n \tand.setLeftInput(x1);\n \tnot.setInput(x1);\n \tnot.eval();\n \tand.setRightInput(not.getOutput());\n\t\tand.eval();\n \tgte1.setLeftInput(and.getOutput());\n\t\tgte1.setRightInput(x1);\n \tassertEquals( new Double(0.0), gte1.eval());\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(String field, long propertyValue);", "void validateGreaterThanOrEqualTo(Number x, Number y, String failureMessage, String successMessage) throws ValidationException, IllegalArgumentException;", "public final EObject ruleGreaterOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4674:28: ( ( () otherlv_1= '>=' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:1: ( () otherlv_1= '>=' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:1: ( () otherlv_1= '>=' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:2: () otherlv_1= '>='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4675:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4676:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getGreaterOrEqualThanOperatorAccess().getGreaterOrEqualThanOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,61,FOLLOW_61_in_ruleGreaterOrEqualThanOperator10381); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getGreaterOrEqualThanOperatorAccess().getGreaterThanSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Criteria andOrderPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andMessageGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"message >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andFlashPromotionPriceGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"flash_promotion_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andRemarkGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"remark >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public boolean valueLargerThan(Money other);", "public Criteria andAttr5GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr5 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andDeletedGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"deleted > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public InequalityTerm getGreaterTerm() {\n\t\treturn _greaterTerm;\n\t}", "public Criteria andOrderPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andReportGenTimeGreaterThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"report_gen_time > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public Criteria andFlashPromotionLimitGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"flash_promotion_limit > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThan(String field, long propertyValue);", "public Criteria andAttr7GreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr7 > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr6GreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr6 > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andFreightPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"freight_price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andReportGenTimeGreaterThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"report_gen_time >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andFreightPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"freight_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static BinaryExpression greaterThanOrEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public Criteria andNameGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public boolean setPropertyBalanceMax(long aValue);", "ReadOnlyDoubleProperty maximumProperty();", "public Criteria andFlashPromotionPriceGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"flash_promotion_price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "float getLt();", "public Criteria andIfAnalyzeGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_analyze > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }" ]
[ "0.7084806", "0.682903", "0.6641307", "0.6315945", "0.61460257", "0.5808589", "0.5800344", "0.57995456", "0.5737108", "0.5714316", "0.56128705", "0.5610326", "0.5543998", "0.55208164", "0.54937243", "0.5438056", "0.5357717", "0.53455997", "0.5344262", "0.53032595", "0.5291126", "0.5271433", "0.52505726", "0.5244577", "0.5233228", "0.52208453", "0.5208849", "0.51923585", "0.51877064", "0.51839834", "0.51570636", "0.51313037", "0.5093982", "0.5059508", "0.505007", "0.50484467", "0.50480974", "0.50474375", "0.5040183", "0.5029442", "0.5024417", "0.50150806", "0.50143296", "0.5002824", "0.5002322", "0.4997811", "0.4992385", "0.49871185", "0.49804807", "0.49766162", "0.49748945", "0.49744844", "0.49648282", "0.49612027", "0.49586436", "0.4956446", "0.49520543", "0.4951028", "0.49466583", "0.4940472", "0.49396697", "0.49360952", "0.4934168", "0.49193117", "0.49072155", "0.489009", "0.488737", "0.48742586", "0.48673192", "0.48644", "0.48612013", "0.48588136", "0.48529884", "0.4847926", "0.48421967", "0.48392388", "0.48387292", "0.48349217", "0.48318568", "0.48304367", "0.48302004", "0.48252395", "0.48224768", "0.48157465", "0.4810124", "0.4803268", "0.47960585", "0.4794965", "0.47907105", "0.47844246", "0.4776327", "0.47698337", "0.47684622", "0.47683164", "0.47669044", "0.4766301", "0.4764376", "0.476347", "0.47626942", "0.47623703" ]
0.68040735
2
Create a new GREATER THAN specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> GtSpecification<T> gt( Property<T> property, Variable variable ) { return new GtSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryElement addGreaterThen(String property, Object value);", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public GreaterThanTest(String name) {\n\t\tsuper(name);\n\t}", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "String getGreater();", "Condition greaterThan(QueryParameter parameter, Object x);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThan(String field, long propertyValue);", "SelectorBuilderInterface<SelectorT> greaterThan(EntityField field, long propertyValue);", "LengthGreater createLengthGreater();", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "default A isGreaterThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN));\n }", "public Criteria andPnameGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "public Criteria andPnameGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "Condition greaterThanOrEqualTo(QueryParameter parameter, Object x);", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "@Override\n\tprotected GreaterThan getFixture() {\n\t\treturn (GreaterThan)fixture;\n\t}", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public Criteria andComposeGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"compose >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "default A isGreaterThanOrEqualTo(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN_OR_EQUAL));\n }", "public static void greaterThanOrEqual(double arg, double min, String argName) {\r\n if (arg < min) {\r\n throw new IllegalArgumentException(\"Argument \\\"\" + argName + \"\\\" must be greater than or equal to \" + min);\r\n }\r\n }", "public Criteria andNameGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "AngleGreater createAngleGreater();", "public RandomVaries(String name, int probability, float minUnits, float maxUnits){\n super(name);\n this.probability=probability;\n if(minUnits<0)generator=true;\n this.minUnits=Math.abs(minUnits);\n this.maxUnits=Math.abs(maxUnits);\n }", "public Criteria andNameGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(String field, long propertyValue);", "public Criteria andPriceGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThan(String field, long propertyValue);", "public Criteria andAttribGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andCreatePersonGreaterThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andComposeGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"compose > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private double estimateNumericalPropertyProb(TemporalElementStats stat, String property,\n Comparator comp, PropertyValue value) {\n // property not sampled or not considered\n if (!stat.getNumericalPropertyStatsEstimation().containsKey(property)) {\n // if property not excluded, return very small value\n // if excluded, it is irrelevant, return 0.5\n return isPropertyRelevant(property) ? 0.0001 : 0.5;\n }\n Double[] propertyStats = stat.getNumericalPropertyStatsEstimation().get(property);\n NormalDistribution dist = new NormalDistribution(propertyStats[0],\n Math.max(Math.sqrt(propertyStats[1]), VERY_LOW_PROB));\n double doubleValue = ((Number) value.getObject()).doubleValue();\n double occurenceProb = stat.getNumericalOccurrenceEstimation().get(property);\n if (comp == EQ) {\n return VERY_LOW_PROB * occurenceProb;\n } else if (comp == NEQ) {\n return (1. - VERY_LOW_PROB) * occurenceProb;\n } else if (comp == LTE) {\n return dist.cumulativeProbability(doubleValue) * occurenceProb;\n } else if (comp == LT) {\n return occurenceProb * (dist.cumulativeProbability(doubleValue) - VERY_LOW_PROB);\n } else if (comp == GTE) {\n return occurenceProb *\n (1. - dist.cumulativeProbability(doubleValue) + VERY_LOW_PROB);\n } else {\n //GT\n return occurenceProb * (1. - dist.cumulativeProbability(doubleValue));\n }\n }", "public Criteria andPriceGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andCreatePersonGreaterThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static void greaterThan(double arg, double min, String argName) {\r\n if (arg <= min) {\r\n throw new IllegalArgumentException(\"Argument \\\"\" + argName + \"\\\" must be greater than \" + min);\r\n }\r\n }", "public Criteria andIfAnalyzeGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_analyze >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "@Override\n\tpublic Constraint toJaCoP(\n\t\t\tStore store, IntVar[] variables, \n\t\t\tDevice device, List<Component> components) \n\t\t\t\tthrows EugeneException {\n\t\tIntVar count = new IntVar(store, this.getA()+\"_MORETHAN_\"+this.getB()+\"-counter\", (int)(this.getB()+1), variables.length); \n\t\treturn new Count(variables, count, (int)this.getA());\n\t}", "public Criteria andGoodsPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"goods_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public Value<?> gt(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">\", v);\r\n return new ValueBoolean(cmp > 0);\r\n }", "Condition lessThan(QueryParameter parameter, Object x);", "public Criteria andSystemedGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"systemed >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andSortGreaterThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public InequalityTerm getGreaterTerm() {\n\t\treturn _greaterTerm;\n\t}", "BooleanExpression gt(ComparableExpression<? extends T> expr);", "public Snippet visit(GreaterThanEqualExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" >= \"+f2.returnTemp;\n\t return _ret;\n\t }", "public Criteria andSortGreaterThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr10GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr10 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttribGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public boolean valueLargerThan(Money other);", "public Criteria andGoodsPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"goods_price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "float getGt();", "public Criteria andIfAnalyzeGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_analyze > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "void validateGreaterThanOrEqualTo(Number x, Number y, String failureMessage, String successMessage) throws ValidationException, IllegalArgumentException;", "public Criteria andCnameGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"cname >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "BooleanExpression gt(T t);", "public Criteria andStrGreaterThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andAttr10GreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr10 > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> lessThan(EntityField field, long propertyValue);", "private MMGoal generateGoalFromProperty(ServiceProperty effectPlus) {\n\t\tMMGoal goal = new MMGoal();\n\t\tdouble goalValue = 0;\n\t\t\n\t\tif (!effectPlus.getTreatment_effect().equals(\"\")) {\n\t\t\tString name = effectPlus.getTreatment_effect().split(\"__\")[0];\n\t\t\tfor (Gauge gauge : this.agent.getGauges()) {\n\t\t\t\tif (gauge.getName().equals(name)) {\n\t\t\t\t\tgoalValue = MMReasoningModule.GAUGE_REFILL * gauge.getMaxValue();\n\t\t\t\t\t\n\t\t\t\t\tgoal = new MMGoal();\n\t\t\t\t\t\n\t\t\t\t\tgoal.getSuccessCondition().setPropertyName(\"biggerThan\");\n\t\t\t\t\tgoal.getSuccessCondition().setPropertyParameters(new ArrayList<Param>());\n\t\t\t\t\tgoal.getSuccessCondition().getPropertyParameters()\n\t\t\t\t\t\t\t.add(new Param(gauge.getName(), \"\", \"double\", \"\", \"false\"));\n\t\t\t\t\tgoal.getSuccessCondition().getPropertyParameters()\n\t\t\t\t\t\t\t.add(new Param(\"amount\", String.valueOf(goalValue), \"double\", \"\", \"false\"));\n\t\t\t\t\tgoal.getSuccessCondition().setTreatment_precond(gauge.getName() + \"__>__amount\");\n\t\t\t\t\t\n\t\t\t\t\tgoal.setPriority(effectPlus.getAttractivity());\n\t\t\t\t\t\n\t\t\t\t\treturn goal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<PropertyLink> linkList = Model.getInstance().getAI().getWorld().getLinkList();\n\t\t\n\t\tServiceProperty premise = null;\n\t\t\n\t\tif ((premise = effectPlus.getPremise(linkList)) != null) {\n\t\t\tfor (Param parameter : premise.getPropertyParameters()) {\n\t\t\t\tif (parameter.getFixed().equals(\"false\") && !parameter.getFindValue().equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparameter.setParamValue(String.valueOf(this.agent.getMemory().getKnowledgeAboutOwner()\n\t\t\t\t\t\t\t\t.getPropertiesContainer().getProperty(parameter.getFindValue()).getValue()));\n\t\t\t\t\t} catch (Exception e) {\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\tgoal.setSuccessCondition(premise);\n\t\t\tgoal.setPriority(effectPlus.getAttractivity());\n\t\t\t\n\t\t\treturn goal;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Criteria andLevelGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`level` > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public MaxAggregator(String property)\r\n {\r\n setProperty(property);\r\n }", "public Criteria andLevelGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`level` >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andFreightPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"freight_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public T caseGreaterThan(GreaterThan object) {\n\t\treturn null;\n\t}", "public Value<?> gte(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp == null)\r\n throw unsupported(\">=\", v);\r\n return new ValueBoolean(cmp >= 0);\r\n }", "public Criteria andAttr1GreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr1 >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "Condition lessThanOrEqualTo(QueryParameter parameter, Object x);", "public void testGreaterThanElement() {\n\t // fail(\"testGreaterThanElement\");\n \tCircuit circuit = new Circuit();\n \tDouble x1 = 0.5;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tGte gte1 = (Gte) circuit.getFactory().getGate(Gate.GTE);\n \tand.setLeftInput(x1);\n \tnot.setInput(x1);\n \tnot.eval();\n \tand.setRightInput(not.getOutput());\n\t\tand.eval();\n \tgte1.setLeftInput(and.getOutput());\n\t\tgte1.setRightInput(x1);\n \tassertEquals( new Double(0.0), gte1.eval());\n }", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public Criteria andCnameGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"cname > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andFreightPriceGreaterThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"freight_price >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public interface NumberComparisonDsl<A> extends Satisfies<A> {\n /**\n * Assert that the value is a number, meeting an additional condition\n * @param condition the number condition\n * @return the assertion for fluent assertions, with this condition added\n */\n default A satisfiesNumberCondition(Condition condition) {\n return satisfies(new PredicateWrappedCondition(\"Number\", JsonNode::isNumber, condition));\n }\n\n /**\n * Assert that the value is a number, greater than\n * @param number the amount\n * @return the assertion for fluent assertions, with this condition added\n */\n default A isGreaterThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN));\n }\n\n /**\n * Assert that the value is a number, greater than or equal to\n * @param number the amount\n * @return the assertion for fluent assertions, with this condition added\n */\n default A isGreaterThanOrEqualTo(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN_OR_EQUAL));\n }\n\n /**\n * Assert that the value is a number, less than the given number\n * @param number the number to compare with\n * @return the assertion for fluent assertions, with this condition added\n */\n default A isLessThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, LESS_THAN));\n }\n\n /**\n * Assert that the value is a number, less than or equal to\n * @param number the amount\n * @return the assertion for fluent assertions, with this condition added\n */\n default A isLessThanOrEqualTo(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, LESS_THAN_OR_EQUAL));\n }\n\n /**\n * Assert that the value lies between the limits\n * @param firstInclusive the first one which the value must be greater than or equal to\n * @param lastInclusive the last one which the value must be less than or equal to\n * @return the assertion for fluent assertions, with this condition added\n */\n default A isBetween(Number firstInclusive, Number lastInclusive) {\n return satisfiesNumberCondition(new NumberCondition<>(firstInclusive, GREATER_THAN_OR_EQUAL)\n .and(new NumberCondition<>(lastInclusive, LESS_THAN_OR_EQUAL)));\n }\n\n /**\n * Assert that the value is a number, equal to 0\n * @return the assertion for fluent assertions, with this condition added\n */\n default A isZero() {\n return satisfiesNumberCondition(new NumberCondition<>(0, EQUAL_TO));\n }\n}", "public Criteria andOrdernumberGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"ordernumber >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andOrdernumberGreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"ordernumber > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> greaterThanEquals(EntityField field, long propertyValue);", "public static <N extends Number> PropertyConstraint<N> positive() {\n return ConstraintFactory.fromPredicate(\n new Predicate<N>() {\n @Override\n public boolean test(N t) {\n return t.intValue() > 0;\n }\n },\n \"Should be positive\"\n );\n }", "Variable createVariable();", "Variable createVariable();", "public boolean setPropertyBalanceMax(long aValue);", "public Criteria andOrderPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Snippet visit(GreaterThanExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" > \"+f2.returnTemp;\n\t return _ret;\n\t }", "public Criteria andTaxPriceGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"tax_price > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public boolean greaterP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) > (yRatio.numerator * x.denominator));\n }\n }\n }", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "public Criteria andReportGenTimeGreaterThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"report_gen_time > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "Property createProperty();", "public final void mT__44() throws RecognitionException {\n try {\n int _type = T__44;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:44:7: ( 'isParaLenghtGreaterThan' )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:44:9: 'isParaLenghtGreaterThan'\n {\n match(\"isParaLenghtGreaterThan\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public Criteria andAttr1GreaterThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr1 > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "PropertyRule createPropertyRule();", "public Criteria andStrGreaterThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andOrderSnGreaterThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_sn > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }" ]
[ "0.67282987", "0.640976", "0.63233954", "0.60097617", "0.58719474", "0.5791175", "0.57365745", "0.57262003", "0.57063967", "0.5573414", "0.5499971", "0.5479587", "0.5373365", "0.5173067", "0.5149309", "0.5130159", "0.5105551", "0.5100948", "0.50944936", "0.5067473", "0.5025927", "0.49963823", "0.4984095", "0.49656844", "0.49239412", "0.49159396", "0.48564166", "0.48363465", "0.48341686", "0.48298964", "0.4792889", "0.47687393", "0.47565427", "0.47546056", "0.47460634", "0.47399446", "0.47227263", "0.47095487", "0.47092244", "0.47045362", "0.46927124", "0.46861443", "0.46718127", "0.4611305", "0.46090952", "0.46046138", "0.45979458", "0.45901915", "0.45891058", "0.45810267", "0.4569586", "0.45690057", "0.45576954", "0.45519197", "0.4551504", "0.45509198", "0.45421177", "0.45391154", "0.45350894", "0.45317063", "0.45212814", "0.4519965", "0.45158562", "0.45124847", "0.45105496", "0.45061538", "0.4489695", "0.4488006", "0.44865218", "0.44842926", "0.44834748", "0.44828722", "0.44810718", "0.4477502", "0.4470423", "0.44697654", "0.44662884", "0.4465714", "0.44563708", "0.44440907", "0.4439047", "0.44368458", "0.44328254", "0.4415129", "0.43995735", "0.43995735", "0.43971002", "0.43926525", "0.43910748", "0.43808743", "0.4371068", "0.4365064", "0.43620512", "0.4349772", "0.43476972", "0.43448386", "0.43369693", "0.43281004", "0.43275166", "0.4325857" ]
0.67884344
0
Create a new LESS OR EQUALS specification for a Property.
public static <T> LeSpecification<T> le( Property<T> property, T value ) { return new LeSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "PropertyRule createPropertyRule();", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public abstract QueryElement addOrLike(String property, Object value);", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "Less createLess();", "public abstract QueryElement addOrEquals(String property, Object value);", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public QueryElement addGreaterEqualsThen(String property, Object value);", "ConditionalExpression createConditionalExpression();", "public final EObject ruleBinaryProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_6=null;\n Token otherlv_10=null;\n Token otherlv_14=null;\n Token otherlv_18=null;\n Token otherlv_22=null;\n Token otherlv_26=null;\n Token otherlv_29=null;\n Token otherlv_30=null;\n Token otherlv_32=null;\n Token otherlv_33=null;\n Token otherlv_35=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_right_3_0 = null;\n\n EObject lv_left_5_0 = null;\n\n EObject lv_right_7_0 = null;\n\n EObject lv_left_9_0 = null;\n\n EObject lv_right_11_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_right_15_0 = null;\n\n EObject lv_left_17_0 = null;\n\n EObject lv_right_19_0 = null;\n\n EObject lv_left_21_0 = null;\n\n EObject lv_right_23_0 = null;\n\n EObject lv_left_25_0 = null;\n\n EObject lv_right_27_0 = null;\n\n EObject lv_left_31_0 = null;\n\n EObject lv_range_34_0 = null;\n\n EObject lv_right_37_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:1149:2: ( ( ( () ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= 'or' ( (lv_right_3_0= ruleProperty ) ) ) | ( () ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) ) otherlv_6= '->' ( (lv_right_7_0= ruleProperty ) ) ) | ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) ) otherlv_18= 'before' ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_21_0= ruleSequence ) ) otherlv_22= '|=>' ( (lv_right_23_0= ruleProperty ) ) ) | ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) ) | ( () otherlv_29= 'next_event_a' otherlv_30= '(' ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) ) otherlv_32= ')' otherlv_33= '[' ( (lv_range_34_0= ruleRange ) ) otherlv_35= ']' otherlv_36= '(' ( (lv_right_37_0= ruleProperty ) ) otherlv_38= ')' ) ) )\n // InternalMyDsl.g:1150:2: ( ( () ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= 'or' ( (lv_right_3_0= ruleProperty ) ) ) | ( () ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) ) otherlv_6= '->' ( (lv_right_7_0= ruleProperty ) ) ) | ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) ) otherlv_18= 'before' ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_21_0= ruleSequence ) ) otherlv_22= '|=>' ( (lv_right_23_0= ruleProperty ) ) ) | ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) ) | ( () otherlv_29= 'next_event_a' otherlv_30= '(' ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) ) otherlv_32= ')' otherlv_33= '[' ( (lv_range_34_0= ruleRange ) ) otherlv_35= ']' otherlv_36= '(' ( (lv_right_37_0= ruleProperty ) ) otherlv_38= ')' ) )\n {\n // InternalMyDsl.g:1150:2: ( ( () ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= 'or' ( (lv_right_3_0= ruleProperty ) ) ) | ( () ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) ) otherlv_6= '->' ( (lv_right_7_0= ruleProperty ) ) ) | ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) ) otherlv_18= 'before' ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_left_21_0= ruleSequence ) ) otherlv_22= '|=>' ( (lv_right_23_0= ruleProperty ) ) ) | ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) ) | ( () otherlv_29= 'next_event_a' otherlv_30= '(' ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) ) otherlv_32= ')' otherlv_33= '[' ( (lv_range_34_0= ruleRange ) ) otherlv_35= ']' otherlv_36= '(' ( (lv_right_37_0= ruleProperty ) ) otherlv_38= ')' ) )\n int alt9=8;\n alt9 = dfa9.predict(input);\n switch (alt9) {\n case 1 :\n // InternalMyDsl.g:1151:3: ( () ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= 'or' ( (lv_right_3_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:1151:3: ( () ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= 'or' ( (lv_right_3_0= ruleProperty ) ) )\n // InternalMyDsl.g:1152:4: () ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= 'or' ( (lv_right_3_0= ruleProperty ) )\n {\n // InternalMyDsl.g:1152:4: ()\n // InternalMyDsl.g:1153:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getOrBooleanPropertyPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1162:4: ( (lv_left_1_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1163:5: (lv_left_1_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1163:5: (lv_left_1_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1164:6: lv_left_1_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_0_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_1_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getBinaryPropertyAccess().getOrKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:1185:4: ( (lv_right_3_0= ruleProperty ) )\n // InternalMyDsl.g:1186:5: (lv_right_3_0= ruleProperty )\n {\n // InternalMyDsl.g:1186:5: (lv_right_3_0= ruleProperty )\n // InternalMyDsl.g:1187:6: lv_right_3_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_3_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_3_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:1206:3: ( () ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) ) otherlv_6= '->' ( (lv_right_7_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:1206:3: ( () ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) ) otherlv_6= '->' ( (lv_right_7_0= ruleProperty ) ) )\n // InternalMyDsl.g:1207:4: () ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) ) otherlv_6= '->' ( (lv_right_7_0= ruleProperty ) )\n {\n // InternalMyDsl.g:1207:4: ()\n // InternalMyDsl.g:1208:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getImpliesPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1217:4: ( (lv_left_5_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1218:5: (lv_left_5_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1218:5: (lv_left_5_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1219:6: lv_left_5_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_17);\n lv_left_5_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_5_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_6=(Token)match(input,31,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getBinaryPropertyAccess().getHyphenMinusGreaterThanSignKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:1240:4: ( (lv_right_7_0= ruleProperty ) )\n // InternalMyDsl.g:1241:5: (lv_right_7_0= ruleProperty )\n {\n // InternalMyDsl.g:1241:5: (lv_right_7_0= ruleProperty )\n // InternalMyDsl.g:1242:6: lv_right_7_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_7_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_7_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1262:4: () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1262:4: ()\n // InternalMyDsl.g:1263:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getEquivalencePropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1272:4: ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1274:6: lv_left_9_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_18);\n lv_left_9_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_9_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_10=(Token)match(input,32,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_10, grammarAccess.getBinaryPropertyAccess().getLessThanSignHyphenMinusGreaterThanSignKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:1295:4: ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1297:6: lv_right_11_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_11_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_11_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:1316:3: ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1316:3: ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1317:4: () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1317:4: ()\n // InternalMyDsl.g:1318:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getOverlappingUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1327:4: ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1328:5: (lv_left_13_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1328:5: (lv_left_13_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1329:6: lv_left_13_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_3_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_19);\n lv_left_13_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_14=(Token)match(input,33,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getBinaryPropertyAccess().getUntil_Keyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:1350:4: ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1351:5: (lv_right_15_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1351:5: (lv_right_15_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1352:6: lv_right_15_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_15_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_15_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:1371:3: ( () ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) ) otherlv_18= 'before' ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1371:3: ( () ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) ) otherlv_18= 'before' ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1372:4: () ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) ) otherlv_18= 'before' ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1372:4: ()\n // InternalMyDsl.g:1373:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getBeforePropertyAction_4_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1382:4: ( (lv_left_17_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1383:5: (lv_left_17_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1383:5: (lv_left_17_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1384:6: lv_left_17_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_4_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_20);\n lv_left_17_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_17_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_18=(Token)match(input,34,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_18, grammarAccess.getBinaryPropertyAccess().getBeforeKeyword_4_2());\n \t\t\t\n }\n // InternalMyDsl.g:1405:4: ( (lv_right_19_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1406:5: (lv_right_19_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1406:5: (lv_right_19_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1407:6: lv_right_19_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_4_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_19_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_19_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:1426:3: ( () ( (lv_left_21_0= ruleSequence ) ) otherlv_22= '|=>' ( (lv_right_23_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:1426:3: ( () ( (lv_left_21_0= ruleSequence ) ) otherlv_22= '|=>' ( (lv_right_23_0= ruleProperty ) ) )\n // InternalMyDsl.g:1427:4: () ( (lv_left_21_0= ruleSequence ) ) otherlv_22= '|=>' ( (lv_right_23_0= ruleProperty ) )\n {\n // InternalMyDsl.g:1427:4: ()\n // InternalMyDsl.g:1428:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getSuffixImplicationPropertyAction_5_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1437:4: ( (lv_left_21_0= ruleSequence ) )\n // InternalMyDsl.g:1438:5: (lv_left_21_0= ruleSequence )\n {\n // InternalMyDsl.g:1438:5: (lv_left_21_0= ruleSequence )\n // InternalMyDsl.g:1439:6: lv_left_21_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftSequenceParserRuleCall_5_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_21);\n lv_left_21_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Sequence\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_22=(Token)match(input,35,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_22, grammarAccess.getBinaryPropertyAccess().getVerticalLineEqualsSignGreaterThanSignKeyword_5_2());\n \t\t\t\n }\n // InternalMyDsl.g:1460:4: ( (lv_right_23_0= ruleProperty ) )\n // InternalMyDsl.g:1461:5: (lv_right_23_0= ruleProperty )\n {\n // InternalMyDsl.g:1461:5: (lv_right_23_0= ruleProperty )\n // InternalMyDsl.g:1462:6: lv_right_23_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightPropertyParserRuleCall_5_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_23_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_23_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:1481:3: ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:1481:3: ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) )\n // InternalMyDsl.g:1482:4: () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) )\n {\n // InternalMyDsl.g:1482:4: ()\n // InternalMyDsl.g:1483:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getOverlappingSuffixImplicationPropertyAction_6_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1492:4: ( (lv_left_25_0= ruleSequence ) )\n // InternalMyDsl.g:1493:5: (lv_left_25_0= ruleSequence )\n {\n // InternalMyDsl.g:1493:5: (lv_left_25_0= ruleSequence )\n // InternalMyDsl.g:1494:6: lv_left_25_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftSequenceParserRuleCall_6_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_22);\n lv_left_25_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_25_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Sequence\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_26=(Token)match(input,36,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_26, grammarAccess.getBinaryPropertyAccess().getVerticalLineHyphenMinusGreaterThanSignKeyword_6_2());\n \t\t\t\n }\n // InternalMyDsl.g:1515:4: ( (lv_right_27_0= ruleProperty ) )\n // InternalMyDsl.g:1516:5: (lv_right_27_0= ruleProperty )\n {\n // InternalMyDsl.g:1516:5: (lv_right_27_0= ruleProperty )\n // InternalMyDsl.g:1517:6: lv_right_27_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightPropertyParserRuleCall_6_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_27_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_27_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:1536:3: ( () otherlv_29= 'next_event_a' otherlv_30= '(' ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) ) otherlv_32= ')' otherlv_33= '[' ( (lv_range_34_0= ruleRange ) ) otherlv_35= ']' otherlv_36= '(' ( (lv_right_37_0= ruleProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:1536:3: ( () otherlv_29= 'next_event_a' otherlv_30= '(' ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) ) otherlv_32= ')' otherlv_33= '[' ( (lv_range_34_0= ruleRange ) ) otherlv_35= ']' otherlv_36= '(' ( (lv_right_37_0= ruleProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:1537:4: () otherlv_29= 'next_event_a' otherlv_30= '(' ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) ) otherlv_32= ')' otherlv_33= '[' ( (lv_range_34_0= ruleRange ) ) otherlv_35= ']' otherlv_36= '(' ( (lv_right_37_0= ruleProperty ) ) otherlv_38= ')'\n {\n // InternalMyDsl.g:1537:4: ()\n // InternalMyDsl.g:1538:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getBinaryPropertyAccess().getNextEventAPropertyAction_7_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_29=(Token)match(input,37,FOLLOW_23); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_29, grammarAccess.getBinaryPropertyAccess().getNext_event_aKeyword_7_1());\n \t\t\t\n }\n otherlv_30=(Token)match(input,20,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getBinaryPropertyAccess().getLeftParenthesisKeyword_7_2());\n \t\t\t\n }\n // InternalMyDsl.g:1555:4: ( (lv_left_31_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1556:5: (lv_left_31_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1556:5: (lv_left_31_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1557:6: lv_left_31_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_7_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_31_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\tlv_left_31_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_32=(Token)match(input,21,FOLLOW_24); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_32, grammarAccess.getBinaryPropertyAccess().getRightParenthesisKeyword_7_4());\n \t\t\t\n }\n otherlv_33=(Token)match(input,38,FOLLOW_25); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_33, grammarAccess.getBinaryPropertyAccess().getLeftSquareBracketKeyword_7_5());\n \t\t\t\n }\n // InternalMyDsl.g:1582:4: ( (lv_range_34_0= ruleRange ) )\n // InternalMyDsl.g:1583:5: (lv_range_34_0= ruleRange )\n {\n // InternalMyDsl.g:1583:5: (lv_range_34_0= ruleRange )\n // InternalMyDsl.g:1584:6: lv_range_34_0= ruleRange\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRangeRangeParserRuleCall_7_6_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_26);\n lv_range_34_0=ruleRange();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"range\",\n \t\t\t\t\t\t\tlv_range_34_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Range\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_35=(Token)match(input,39,FOLLOW_23); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_35, grammarAccess.getBinaryPropertyAccess().getRightSquareBracketKeyword_7_7());\n \t\t\t\n }\n otherlv_36=(Token)match(input,20,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getBinaryPropertyAccess().getLeftParenthesisKeyword_7_8());\n \t\t\t\n }\n // InternalMyDsl.g:1609:4: ( (lv_right_37_0= ruleProperty ) )\n // InternalMyDsl.g:1610:5: (lv_right_37_0= ruleProperty )\n {\n // InternalMyDsl.g:1610:5: (lv_right_37_0= ruleProperty )\n // InternalMyDsl.g:1611:6: lv_right_37_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightPropertyParserRuleCall_7_9_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_right_37_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getBinaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_37_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getBinaryPropertyAccess().getRightParenthesisKeyword_7_10());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public QueryElement addLowerThen(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "Property createProperty();", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public interface UnaryBooleanExpressionProperty extends BooleanExpressionProperty<BooleanExpression>, UnaryProperty<BooleanExpressionProperty<BooleanExpression>, BooleanExpression> {\n}", "public final void mLESS_OR_EQ1() throws RecognitionException {\n try {\n int _type = LESS_OR_EQ1;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:12:13: ( '<=' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:12:15: '<='\n {\n match(\"<=\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "@Factory\n public static Matcher<QueryTreeNode> lessThanOrEqualsTo(Matcher<QueryTreeNode> leftMatcher,\n Matcher<QueryTreeNode> rightMatcher) {\n return new BinaryOperatorNodeMatcher(leftMatcher, \"<=\", rightMatcher);\n }", "public void setAndOr (String AndOr);", "public abstract QueryElement addLike(String property, Object value);", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "public static BinaryExpression lessThanOrEqual(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static BinaryExpression lessThanOrEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public QueryElement addGreaterThen(String property, Object value);", "private SingleRuleBuilder or(boolean negate, String predicate, String... variables) {\n literals.add( new MLNText.Literal(!negate, predicate, variables[0], variables[1]));\n return this;\n }", "public abstract QueryElement addEquals(String property, Object value);", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "private void constructOwlDataPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n SWRLVariable var1 = null, var2;\n String classNm = null;\n\n var1 = initalizeVariable(name, var1);\n OWLDataProperty p = ontologyOWLDataPropertyVocabulary.get(name);\n\n classNm = constructpropertySubjectAtom(name, antecedent);\n\n var2 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(classNm)));\n antecedent.add(factory.getSWRLDataPropertyAtom(p, var2, var1));\n Set<OWLDataPropertyRangeAxiom> sgdp = domainOntology.getDataPropertyRangeAxioms(p);\n OWLDataRange r = null;\n for (OWLDataPropertyRangeAxiom a : sgdp) {\n r = a.getRange();\n }\n constructBuiltinAtom(name, operator, value, r.asOWLDatatype(), antecedent);\n\n }", "public final EObject ruleLessOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4736:28: ( ( () otherlv_1= '<=' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:1: ( () otherlv_1= '<=' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:1: ( () otherlv_1= '<=' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:2: () otherlv_1= '<='\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4737:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4738:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getLessOrEqualThanOperatorAccess().getLessOrEqualThanOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,63,FOLLOW_63_in_ruleLessOrEqualThanOperator10565); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getLessOrEqualThanOperatorAccess().getLessThanSignEqualsSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "OrExpr createOrExpr();", "PropertyCallExp createPropertyCallExp();", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public final EObject ruleUnaryProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_11=null;\n Token otherlv_14=null;\n Token otherlv_17=null;\n Token otherlv_20=null;\n Token otherlv_23=null;\n EObject lv_operand_1_0 = null;\n\n EObject lv_operand_3_0 = null;\n\n EObject lv_operand_5_0 = null;\n\n EObject lv_operand_9_0 = null;\n\n EObject lv_operand_12_0 = null;\n\n EObject lv_operand_15_0 = null;\n\n EObject lv_operand_18_0 = null;\n\n EObject lv_operand_21_0 = null;\n\n EObject lv_operand_24_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:815:2: ( ( ( () ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_operand_3_0= ruleSequence ) ) ) | ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) | ( () otherlv_8= 'always' ( (lv_operand_9_0= ruleProperty ) ) ) | ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) ) | ( () otherlv_17= 'next_e' ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_23= 'eventually!' ( (lv_operand_24_0= ruleSequence ) ) ) ) )\n // InternalMyDsl.g:816:2: ( ( () ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_operand_3_0= ruleSequence ) ) ) | ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) | ( () otherlv_8= 'always' ( (lv_operand_9_0= ruleProperty ) ) ) | ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) ) | ( () otherlv_17= 'next_e' ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_23= 'eventually!' ( (lv_operand_24_0= ruleSequence ) ) ) )\n {\n // InternalMyDsl.g:816:2: ( ( () ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( (lv_operand_3_0= ruleSequence ) ) ) | ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) | ( () otherlv_8= 'always' ( (lv_operand_9_0= ruleProperty ) ) ) | ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) ) | ( () otherlv_17= 'next_e' ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) ) | ( () otherlv_23= 'eventually!' ( (lv_operand_24_0= ruleSequence ) ) ) )\n int alt8=9;\n alt8 = dfa8.predict(input);\n switch (alt8) {\n case 1 :\n // InternalMyDsl.g:817:3: ( () ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:817:3: ( () ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:818:4: () ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:818:4: ()\n // InternalMyDsl.g:819:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getBooleanPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:828:4: ( (lv_operand_1_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:829:5: (lv_operand_1_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:829:5: (lv_operand_1_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:830:6: lv_operand_1_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_0_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_1_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_1_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getSequencePropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_3_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Sequence\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n {\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n // InternalMyDsl.g:882:4: () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!'\n {\n // InternalMyDsl.g:882:4: ()\n // InternalMyDsl.g:883:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getSequenceTightPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:892:4: ( (lv_operand_5_0= ruleSequence ) )\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n {\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n // InternalMyDsl.g:894:6: lv_operand_5_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_15);\n lv_operand_5_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_5_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Sequence\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_6=(Token)match(input,26,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getUnaryPropertyAccess().getExclamationMarkKeyword_2_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:917:3: ( () otherlv_8= 'always' ( (lv_operand_9_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:917:3: ( () otherlv_8= 'always' ( (lv_operand_9_0= ruleProperty ) ) )\n // InternalMyDsl.g:918:4: () otherlv_8= 'always' ( (lv_operand_9_0= ruleProperty ) )\n {\n // InternalMyDsl.g:918:4: ()\n // InternalMyDsl.g:919:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getAlwaysPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_8=(Token)match(input,27,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getUnaryPropertyAccess().getAlwaysKeyword_3_1());\n \t\t\t\n }\n // InternalMyDsl.g:932:4: ( (lv_operand_9_0= ruleProperty ) )\n // InternalMyDsl.g:933:5: (lv_operand_9_0= ruleProperty )\n {\n // InternalMyDsl.g:933:5: (lv_operand_9_0= ruleProperty )\n // InternalMyDsl.g:934:6: lv_operand_9_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandPropertyParserRuleCall_3_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_9_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_9_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:953:3: ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:953:3: ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:954:4: () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:954:4: ()\n // InternalMyDsl.g:955:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getNeverBooleanPropertyAction_4_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_11=(Token)match(input,28,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_11, grammarAccess.getUnaryPropertyAccess().getNeverKeyword_4_1());\n \t\t\t\n }\n // InternalMyDsl.g:968:4: ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:969:5: (lv_operand_12_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:969:5: (lv_operand_12_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:970:6: lv_operand_12_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_4_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_12_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_12_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:989:3: ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:989:3: ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) )\n // InternalMyDsl.g:990:4: () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) )\n {\n // InternalMyDsl.g:990:4: ()\n // InternalMyDsl.g:991:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getNeverSequencePropertyAction_5_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_14=(Token)match(input,28,FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getUnaryPropertyAccess().getNeverKeyword_5_1());\n \t\t\t\n }\n // InternalMyDsl.g:1004:4: ( (lv_operand_15_0= ruleSequence ) )\n // InternalMyDsl.g:1005:5: (lv_operand_15_0= ruleSequence )\n {\n // InternalMyDsl.g:1005:5: (lv_operand_15_0= ruleSequence )\n // InternalMyDsl.g:1006:6: lv_operand_15_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_5_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_15_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_15_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Sequence\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:1025:3: ( () otherlv_17= 'next_e' ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1025:3: ( () otherlv_17= 'next_e' ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1026:4: () otherlv_17= 'next_e' ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1026:4: ()\n // InternalMyDsl.g:1027:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getNextEPropertyAction_6_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_17=(Token)match(input,29,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getUnaryPropertyAccess().getNext_eKeyword_6_1());\n \t\t\t\n }\n // InternalMyDsl.g:1040:4: ( (lv_operand_18_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1041:5: (lv_operand_18_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1041:5: (lv_operand_18_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1042:6: lv_operand_18_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_6_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_18_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_18_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:1061:3: ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1061:3: ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1062:4: () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1062:4: ()\n // InternalMyDsl.g:1063:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getEventuallyBooleanPropertyAction_7_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_20=(Token)match(input,30,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getUnaryPropertyAccess().getEventuallyKeyword_7_1());\n \t\t\t\n }\n // InternalMyDsl.g:1076:4: ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1077:5: (lv_operand_21_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1077:5: (lv_operand_21_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1078:6: lv_operand_21_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_7_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_21_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 9 :\n // InternalMyDsl.g:1097:3: ( () otherlv_23= 'eventually!' ( (lv_operand_24_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:1097:3: ( () otherlv_23= 'eventually!' ( (lv_operand_24_0= ruleSequence ) ) )\n // InternalMyDsl.g:1098:4: () otherlv_23= 'eventually!' ( (lv_operand_24_0= ruleSequence ) )\n {\n // InternalMyDsl.g:1098:4: ()\n // InternalMyDsl.g:1099:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getUnaryPropertyAccess().getEventuallySequencePropertyAction_8_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n otherlv_23=(Token)match(input,30,FOLLOW_16); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_23, grammarAccess.getUnaryPropertyAccess().getEventuallyKeyword_8_1());\n \t\t\t\n }\n // InternalMyDsl.g:1112:4: ( (lv_operand_24_0= ruleSequence ) )\n // InternalMyDsl.g:1113:5: (lv_operand_24_0= ruleSequence )\n {\n // InternalMyDsl.g:1113:5: (lv_operand_24_0= ruleSequence )\n // InternalMyDsl.g:1114:6: lv_operand_24_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_8_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_24_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getUnaryPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"operand\",\n \t\t\t\t\t\t\tlv_operand_24_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Sequence\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "String getLess();", "public SingleRuleBuilder or(String predicate, String... variables) { return or(false, predicate, variables); }", "public static Operator giveOperator(Actor self, Actor recipient, Prop prop) {\n\n\t\t// Set conditions that must be true\n\t\tArrayList<ICondition> beTrue = new ArrayList<ICondition>();\n\t\tbeTrue.add(new LivesCondition(self));\n\t\tbeTrue.add(new LivesCondition(recipient));\n\t\tbeTrue.add(new SamePlaceCondition(self, recipient));\n\t\tbeTrue.add(new BelongsToCondition(prop, self));\n\n\t\t// Set conditions that must be false\n\t\tArrayList<ICondition> beFalse = new ArrayList<ICondition>();\n\n\t\t// Set conditions that will be set true\n\t\tArrayList<ICondition> setTrue = new ArrayList<ICondition>();\n\t\tsetTrue.add(new BelongsToCondition(prop, recipient));\n\n\t\t// Set conditions that will be set false\n\t\tArrayList<ICondition> setFalse = new ArrayList<ICondition>();\n\n\t\t// Add the corresponding action to the operator\n\t\tAction action = new Action(Action.ActionType.GIVE, self, recipient, prop);\n\t\t\n\t\t// The weight for giving actions\n\t\tint weight = 5;\n\t\t\n\t\treturn new Operator(beTrue, beFalse, setTrue, setFalse, action, weight);\n\t}", "public SingleRuleBuilder orNot(String predicate, String... variables) { return or(true, predicate, variables); }", "public PropertySpecBuilder<T> validator(String regex)\n {\n return validator(Pattern.compile(regex));\n }", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "public final void mLESS_OR_EQ2() throws RecognitionException {\n try {\n int _type = LESS_OR_EQ2;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:13:13: ( '!>' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:13:15: '!>'\n {\n match(\"!>\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "QueryElement addLikeWithWildcardSetting(String property, String value);", "public ConditionalRequirement(final ConditionalOperator operator, final ConditionalRequirement... requirements) {\r\n this.requirements = requirements;\r\n this.or = (operator == ConditionalOperator.OR);\r\n\r\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public abstract QueryElement addNotEquals(String property, Object value);", "public final void mLESS() throws RecognitionException {\n try {\n int _type = LESS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:11:6: ( '<' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:11:8: '<'\n {\n match('<'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final ManchesterOWLSyntaxAutoComplete.propertyExpression_return propertyExpression() {\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.propertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER6 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE7 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression8 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:171:1:\n // ( IDENTIFIER | ENTITY_REFERENCE | complexPropertyExpression )\n int alt8 = 3;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt8 = 1;\n }\n break;\n case ENTITY_REFERENCE: {\n alt8 = 2;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt8 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 8, 0, input);\n throw nvae;\n }\n switch (alt8) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:172:7:\n // IDENTIFIER\n {\n IDENTIFIER6 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_propertyExpression462);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER6.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:176:9:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE7 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_propertyExpression480);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE7.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:180:7:\n // complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_propertyExpression494);\n complexPropertyExpression8 = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable()\n .match(complexPropertyExpression8 != null ? complexPropertyExpression8.node\n .getText() : null));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\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 static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public static Operator takeOperator(Actor self, Prop prop) {\n\n\t\t// Set conditions that must be true\n\t\tArrayList<ICondition> beTrue = new ArrayList<ICondition>();\n\t\tbeTrue.add(new LivesCondition(self));\n\t\tbeTrue.add(new SamePlaceCondition(self, prop));\n\n\t\t// Set conditions that must be false\n\t\tArrayList<ICondition> beFalse = new ArrayList<ICondition>();\n\n\t\t// Set conditions that will be set true\n\t\tArrayList<ICondition> setTrue = new ArrayList<ICondition>();\n\t\tsetTrue.add(new BelongsToCondition(prop, self));\n\n\t\t// Set conditions that will be set false\n\t\tArrayList<ICondition> setFalse = new ArrayList<ICondition>();\n\t\t\n\t\t// Add the corresponding action to the operator\n\t\tAction action = new Action(Action.ActionType.TAKE, self, prop);\n\t\t\n\t\t// The weight for taking actions\n\t\tint weight = 5;\n\n\t\treturn new Operator(beTrue, beFalse, setTrue, setFalse, action, weight);\n\t}", "public final void mLESS() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = LESS;\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:437:5: ( '<' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:437: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}", "protected Expression buildExpression(RestrictExpression restrictor,String pathSpec){\n\t\tverifyParameters(restrictor, pathSpec);\n\n\t\tObject value = valueTranslator(restrictor.getValue());\t//For most cases we will need this value\n\t\t//Check all known operators, try to handle them\n\t\tswitch (restrictor.getOperator()){\n\t\tcase EQUAL_TO:\n\t\t\treturn ExpressionFactory.matchExp(pathSpec, value);\n\t\tcase NOT_EQUAL_TO:\n\t\t\treturn ExpressionFactory.noMatchExp(pathSpec, value);\n\t\tcase LESS_THAN:\n\t\t\treturn ExpressionFactory.lessExp(pathSpec, value);\n\t\tcase GREATER_THAN:\n\t\t\treturn ExpressionFactory.greaterExp(pathSpec, value);\n\t\tcase LESS_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.lessOrEqualExp(pathSpec, value);\n\t\tcase GREATER_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.greaterOrEqualExp(pathSpec, value);\n\t\tcase BETWEEN:\n\t\t\tif (restrictor.getValues().size()==2){\n\t\t\t\tIterator<Object> iter = restrictor.getValues().iterator();\n\t\t\t\treturn ExpressionFactory.betweenExp(pathSpec, valueTranslator(iter.next()), valueTranslator(iter.next()));\n\t\t\t}\n\t\tcase IN:\n\t\t\treturn ExpressionFactory.inExp(pathSpec, translateValues(restrictor.getValues()));\n\t\tcase LIKE:\n\t\t\treturn ExpressionFactory.likeExp(pathSpec, value);\n\t\tdefault:\n\t\t\treturn ExpressionFactory.expFalse();\n\t\t}\n\t}", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "@Override\n\tpublic void visit(LessNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam expresiile din cei 2 fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger s2 = 0;\n\t\tInteger s1 = 0;\n\t\t/**\n\t\t * preluam rezultatele evaluarii si verificam daca primul este mai mic\n\t\t * decat la doilea ,setand corespunzator valoarea din nodul curent in\n\t\t * functie de rezultatul comparatiei\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\t\t} else {\n\t\t\ts1 = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t} else {\n\t\t\ts2 = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (s1 < s2) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\t}", "public T addRule(final Property property, final String value) {\n addRule(StyleManager.stringifyEnum(property) + \": \" + value + \";\");\n return (T)this;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public static BinaryExpression exclusiveOrAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public static MatchesSpecification matches( Property<String> property, String regexp )\n {\n return new MatchesSpecification( property( property ), regexp );\n }", "public static BinaryExpression orAssign(Expression expression0, Expression expression1, Method method) {\n return makeBinary(ExpressionType.OrAssign, expression0, expression1);\n }", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "interface Matcher<R extends OWLPropertyRange, F extends R, P extends OWLPropertyExpression<R, P>> {\n boolean isMatch(OWLClassExpression c, P p, R f);\n\n boolean isMatch(OWLClassExpression c, P p, R f, boolean direct);\n\n /** Perform a recursive search, adding nodes that match. If direct is true\n * only add nodes if they have no subs that match\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of leave nodes */\n NodeSet<F> getLeaves(OWLClassExpression c, P p, R start, boolean direct);\n\n /** Perform a search on the direct subs of start, adding nodes that match. If\n * direct is false then recurse into descendants of start\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of root nodes */\n NodeSet<F> getRoots(OWLClassExpression c, P p, R start, boolean direct);\n}", "public StatementBuilder where(String property, Object value) {\n return where(Where.eq(property, value));\n }", "AssignmentRule createAssignmentRule();", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "ExprRule createExprRule();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "public GreaterThanOrEqualExpression(final ExpressionNode<T, ?> left, final ExpressionNode<T, ?> right)\n {\n super(left, right);\n _operator = \">=\";\n }", "Object getPropertytrue();", "public static BinaryExpression exclusiveOrAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "@Factory\n public static Matcher<QueryTreeNode> greaterThanOrEqualsTo(Matcher<QueryTreeNode> leftMatcher, Matcher<QueryTreeNode> rightMatcher) {\n return new BinaryOperatorNodeMatcher(leftMatcher, \">=\", rightMatcher);\n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public static Property setPropertyAttributes(Property oneProperty,\r\n String [] propertyAtt) {\r\n int mlsAsInt = Integer.parseInt(propertyAtt[2]);\r\n int zipAsInt = Integer.parseInt(propertyAtt[7]);\r\n int bedAsInt = Integer.parseInt(propertyAtt[8]);\r\n double bathAsDouble = Double.parseDouble(propertyAtt[9]);\r\n boolean soldAsBoolean = \"Y\".equalsIgnoreCase(propertyAtt[10]);\r\n double priceAsDouble = Double.parseDouble(propertyAtt[11]);\r\n \r\n oneProperty.setMlsNum(mlsAsInt);\r\n oneProperty.setLicenseNum(propertyAtt[3]);\r\n oneProperty.setAddress(propertyAtt[4]);\r\n oneProperty.setCity(propertyAtt[5]);\r\n oneProperty.setState(propertyAtt[6]);\r\n oneProperty.setZipCode(zipAsInt);\r\n oneProperty.setNumBed(bedAsInt);\r\n oneProperty.setNumBath(bathAsDouble);\r\n oneProperty.setSold(soldAsBoolean);\r\n oneProperty.setAskingPrice(priceAsDouble);\r\n \r\n return oneProperty;\r\n }", "public interface Text extends Property<String> {\r\n\r\n\t/**\r\n\t * Returns the direction of the text, such as left-to-right and right-to-left.\r\n\t * \r\n\t * @return the direction of the text, may be empty.\r\n\t */\r\n\tOptional<Direction> getDirection();\r\n\r\n\t/**\r\n\t * Returns the language of the text.\r\n\t * \r\n\t * @return the language of the text, may be empty.\r\n\t */\t\r\n\tOptional<Locale> getLanguage();\r\n\t\r\n\t/**\r\n\t * Builder for building instances of types derived from {@link Text}.\r\n\t *\r\n\t * @param <T> the type of the property to be built by this builder.\r\n\t * @param <R> the actual builder type.\r\n\t */\r\n\tpublic interface Builder<T extends Text, R extends Builder<T, R>> extends PropertyBuilder<String, T, R> {\r\n\t\r\n\t\t/**\r\n\t\t * Specifies the direction of the text, such as left-to-right and right-to-left.\r\n\t\t * \r\n\t\t * @param direction the direction of the text, cannot be {@code null}.\r\n\t\t * @return this builder.\r\n\t\t * @throws IllegalArgumentException if given {@code direction} is {@code null}.\r\n\t\t */\r\n\t\tR direction(Direction direction);\r\n\t\t\r\n\t\t/**\r\n\t\t * Specifies the language of the text.\r\n\t\t * \r\n\t\t * @param language the language of the text, cannot be {@code null}.\r\n\t\t * @return this builder.\r\n\t\t * @throws IllegalArgumentException if given {@code language} is {@code null}.\r\n\t\t */\r\n\t\tR language(Locale language);\r\n\t}\r\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}", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "public static BinaryExpression exclusiveOrAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n public Expression translateSyntacticSugar() {\n return new Condition(this.e1, BooleanConstant.TRUE, this.e2);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThanEquals(String field, long propertyValue);", "BooleanExpression createBooleanExpression();", "BooleanExpression createBooleanExpression();", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final EObject ruleProperty() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n Token otherlv_36=null;\n Token otherlv_38=null;\n Token otherlv_39=null;\n Token otherlv_41=null;\n Token otherlv_42=null;\n Token otherlv_46=null;\n Token otherlv_48=null;\n Token otherlv_49=null;\n Token otherlv_51=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_left_34_0 = null;\n\n EObject lv_left_35_0 = null;\n\n EObject lv_left_37_0 = null;\n\n EObject lv_left_40_0 = null;\n\n EObject lv_right_43_0 = null;\n\n EObject this_UnaryProperty_44 = null;\n\n EObject this_BinaryProperty_45 = null;\n\n EObject this_UnaryProperty_47 = null;\n\n EObject this_BinaryProperty_50 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:181:2: ( ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) ) )\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n {\n // InternalMyDsl.g:182:2: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) | ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) | ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) | ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) ) | this_UnaryProperty_44= ruleUnaryProperty | this_BinaryProperty_45= ruleBinaryProperty | (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' ) | (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' ) )\n int alt7=8;\n alt7 = dfa7.predict(input);\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAndPropertyAction_0_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt3=4;\n alt3 = dfa3.predict(input);\n switch (alt3) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_1_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_2_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_4_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_0_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_7_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_0_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPropertyAccess().getAndKeyword_0_2());\n \t\t\t\n }\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_10_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getOrPropertyBooleanPropertyAction_1_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt4=4;\n alt4 = dfa4.predict(input);\n switch (alt4) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_12_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_13_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_15_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_1_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_18_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_1_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getPropertyAccess().getOrKeyword_1_2());\n \t\t\t\n }\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_21_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.Property\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getAbortPropertyAction_2_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt5=4;\n alt5 = dfa5.predict(input);\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_23_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_24_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_26_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_28, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_2_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_29_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_30, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_2_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_31, grammarAccess.getPropertyAccess().getAbortKeyword_2_2());\n \t\t\t\n }\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_32_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:594:3: ( () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:595:4: () ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) ) otherlv_42= 'until' ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:595:4: ()\n // InternalMyDsl.g:596:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\tgrammarAccess.getPropertyAccess().getUntilPropertyAction_3_0(),\n \t\t\t\t\t\tcurrent);\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:605:4: ( ( (lv_left_34_0= ruleUnaryProperty ) ) | ( (lv_left_35_0= ruleBinaryProperty ) ) | (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' ) | (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' ) )\n int alt6=4;\n alt6 = dfa6.predict(input);\n switch (alt6) {\n case 1 :\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:606:5: ( (lv_left_34_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:607:6: (lv_left_34_0= ruleUnaryProperty )\n // InternalMyDsl.g:608:7: lv_left_34_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_34_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_34_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:626:5: ( (lv_left_35_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:627:6: (lv_left_35_0= ruleBinaryProperty )\n // InternalMyDsl.g:628:7: lv_left_35_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_14);\n lv_left_35_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\tlv_left_35_0,\n \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n {\n // InternalMyDsl.g:646:5: (otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')' )\n // InternalMyDsl.g:647:6: otherlv_36= '(' ( (lv_left_37_0= ruleUnaryProperty ) ) otherlv_38= ')'\n {\n otherlv_36=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_36, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_2_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:651:6: ( (lv_left_37_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:652:7: (lv_left_37_0= ruleUnaryProperty )\n // InternalMyDsl.g:653:8: lv_left_37_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_3_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_37_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_37_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.UnaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_38=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_38, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_2_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n {\n // InternalMyDsl.g:676:5: (otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')' )\n // InternalMyDsl.g:677:6: otherlv_39= '(' ( (lv_left_40_0= ruleBinaryProperty ) ) otherlv_41= ')'\n {\n otherlv_39=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_39, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_3_1_3_0());\n \t\t\t\t\t\n }\n // InternalMyDsl.g:681:6: ( (lv_left_40_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:682:7: (lv_left_40_0= ruleBinaryProperty )\n // InternalMyDsl.g:683:8: lv_left_40_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_3_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_40_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"left\",\n \t\t\t\t\t\t\t\t\tlv_left_40_0,\n \t\t\t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BinaryProperty\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_41=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_41, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_3_1_3_2());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_42=(Token)match(input,25,FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_42, grammarAccess.getPropertyAccess().getUntilKeyword_3_2());\n \t\t\t\n }\n // InternalMyDsl.g:710:4: ( (lv_right_43_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:711:5: (lv_right_43_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:712:6: lv_right_43_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_43_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPropertyRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"right\",\n \t\t\t\t\t\t\tlv_right_43_0,\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.BooleanOrOCLLiteral\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:731:3: this_UnaryProperty_44= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_4());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_UnaryProperty_44=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_UnaryProperty_44;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:743:3: this_BinaryProperty_45= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_5());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_BinaryProperty_45=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_BinaryProperty_45;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 7 :\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n {\n // InternalMyDsl.g:755:3: (otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')' )\n // InternalMyDsl.g:756:4: otherlv_46= '(' this_UnaryProperty_47= ruleUnaryProperty otherlv_48= ')'\n {\n otherlv_46=(Token)match(input,20,FOLLOW_7); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_46, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_6_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getUnaryPropertyParserRuleCall_6_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_UnaryProperty_47=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_UnaryProperty_47;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_48=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_48, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_6_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n case 8 :\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n {\n // InternalMyDsl.g:777:3: (otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')' )\n // InternalMyDsl.g:778:4: otherlv_49= '(' this_BinaryProperty_50= ruleBinaryProperty otherlv_51= ')'\n {\n otherlv_49=(Token)match(input,20,FOLLOW_9); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_49, grammarAccess.getPropertyAccess().getLeftParenthesisKeyword_7_0());\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t/* */\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getBinaryPropertyParserRuleCall_7_1());\n \t\t\t\n }\n pushFollow(FOLLOW_8);\n this_BinaryProperty_50=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tcurrent = this_BinaryProperty_50;\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n otherlv_51=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_51, grammarAccess.getPropertyAccess().getRightParenthesisKeyword_7_2());\n \t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "LengthGreater createLengthGreater();", "@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }", "public void check(final BiPredicate<A, B> property) {\n final TheoryRunner<Pair<A, B>, Pair<A, B>> qc = new TheoryRunner<>(\n this.state.get(),\n combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2));\n }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public static BinaryExpression orAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.OrAssign, expression0, expression1);\n }", "public Condition(Node n) {\n\t// get the page item properties\n\tsuper(n);\n\ttry {\n\t // assign various attributes\n\t NodeList subnodes = n.getChildNodes();\n\t Node node1 = subnodes.item(1);\n\t Node node2 = subnodes.item(3);\n\t Node node3 = subnodes.item(5);\n\t String node1_name = node1 != null ? node1.getNodeName() : \"\";\n\t String node2_name = node2 != null ? node2.getNodeName() : \"\";\n\t String node3_name = node3 != null ? node3.getNodeName() : \"\";\n\n\t // option 1: if the Condition is a leaf node, first node is a\n\t // \"field\"\n\t if (node1_name.equalsIgnoreCase(\"field\")) {\n\t\t// parse the leaf node\n\t\t// note XML Schema enforces order of: field, operator, (constant\n\t\t// OR field)\n\t\tpre_field = node1.getFirstChild().getNodeValue();\n\t\tjs_expression.append(\"(a['\" + pre_field + \"']\");\n\t\tif (pre_field.equals(\"\"))\n\t\t throw new Exception(\n\t\t\t \"Invalid Precondition: Empty field name before \"\n\t\t\t\t + node2_name);\n\t\t// represent comparison operator as integer, since eval needs\n\t\t// 'switch,' which can't take strings\n\t\tif (node2_name.equalsIgnoreCase(\"gt\")) {\n\t\t operatr_int = 11;\n\t\t js_expression.append(\" > \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"lt\")) {\n\t\t operatr_int = 12;\n\t\t js_expression.append(\" < \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"geq\")) {\n\t\t operatr_int = 13;\n\t\t js_expression.append(\" >= \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"leq\")) {\n\t\t operatr_int = 14;\n\t\t js_expression.append(\" <= \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"eq\")) {\n\t\t operatr_int = 15;\n\t\t js_expression.append(\" = \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"neq\")) {\n\t\t operatr_int = 16;\n\t\t js_expression.append(\" != \");\n\t\t} else\n\t\t throw new Exception(\"Invalid operator in Precondition: \"\n\t\t\t + node2_name);\n\t\t// obtain the value for comparison\n\t\tif (node3_name.equalsIgnoreCase(\"cn\")) {\n\t\t String const_str = node3.getFirstChild().getNodeValue();\n\t\t if (const_str != null) {\n\t\t\tint_constant = new Integer(const_str);\n\t\t\tjs_expression.append(const_str);\n\t\t\tjs_expression.append(\")\");\n\t\t }\n\t\t} else if (node3_name.equalsIgnoreCase(\"field\")) {\n\t\t pre_field_second = node3.getFirstChild().getNodeValue();\n\t\t js_expression.append(pre_field_second);\n\t\t js_expression.append(\")\");\n\t\t if (pre_field_second.equals(\"\"))\n\t\t\tthrow new Exception(\n\t\t\t\t\"Invalid Precondition: Empty field name after \"\n\t\t\t\t\t+ node1_name);\n\t\t} else\n\t\t throw new Exception(\"Invalid comparator in Precondition: \"\n\t\t\t + node3_name);\n\t }\n\t // option 2, syntax: apply, and|or, apply\n\t else if (node1_name.equalsIgnoreCase(\"apply\")) {\n\t\t// recursively parse the nested preconditions\n\t\tcond = new Condition(node1); // the apply node is itself a\n\t\t\t\t\t // predicate\n\t\tjs_expression.append(cond.getJs_expression());\n\t\tif (node2_name.equalsIgnoreCase(\"and\")) {\n\t\t operatr_int = 1;\n\t\t js_expression.append(\" && \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"or\")) {\n\t\t operatr_int = 2;\n\t\t js_expression.append(\" || \");\n\t\t} else\n\t\t throw new Exception(\n\t\t\t \"Invalid boolean operator in Precondition: \"\n\t\t\t\t + node2_name);\n\t\t// recursively parse the 2nd apply node - another nested\n\t\t// precondition\n\t\tif (node3_name.equalsIgnoreCase(\"apply\")) {\n\t\t cond2 = new Condition(node3);\n\t\t js_expression.append(cond2.getJs_expression());\n\t\t}\n\n\t\telse\n\t\t throw new Exception(\n\t\t\t \"Invalid righthand predicate in Precondition: \"\n\t\t\t\t + node3_name);\n\t } else\n\t\tthrow new Exception(\"Invalid Precondition node starting at: \"\n\t\t\t+ node1_name);\n\n\t}// end of try\n\tcatch (Exception e) {\n\t WISE_Application.log_error(\n\t\t \"WISE - CONDITION parse: \" + e.toString(), null);\n\t return;\n\t}\n }", "public final EObject entryRuleLessOrEqualThanOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleLessOrEqualThanOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4725:2: (iv_ruleLessOrEqualThanOperator= ruleLessOrEqualThanOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4726:2: iv_ruleLessOrEqualThanOperator= ruleLessOrEqualThanOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getLessOrEqualThanOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleLessOrEqualThanOperator_in_entryRuleLessOrEqualThanOperator10509);\r\n iv_ruleLessOrEqualThanOperator=ruleLessOrEqualThanOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleLessOrEqualThanOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleLessOrEqualThanOperator10519); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public static BinaryExpression orAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) {\n return makeBinary(ExpressionType.OrAssign, expression0, expression1, false, method, lambdaExpression);\n }", "@Override\n public Expression toExpression()\n {\n return new ComparisonExpression(getType(this.compareType), lvalue.toExpression(), rvalue.toExpression());\n }", "private Expression createExpression(String weightAmplifier) {\n if(StringUtils.isNotBlank(weightAmplifier)) {\n JexlEngine jexl = new JexlEngine();\n return jexl.createExpression(weightAmplifier);\n }\n return null;\n }", "public final PythonParser.comp_op_return comp_op() throws RecognitionException {\n PythonParser.comp_op_return retval = new PythonParser.comp_op_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token LESS189=null;\n Token GREATER190=null;\n Token EQUAL191=null;\n Token GREATEREQUAL192=null;\n Token LESSEQUAL193=null;\n Token ALT_NOTEQUAL194=null;\n Token NOTEQUAL195=null;\n Token IN196=null;\n Token NOT197=null;\n Token IN198=null;\n Token IS199=null;\n Token IS200=null;\n Token NOT201=null;\n\n PythonTree LESS189_tree=null;\n PythonTree GREATER190_tree=null;\n PythonTree EQUAL191_tree=null;\n PythonTree GREATEREQUAL192_tree=null;\n PythonTree LESSEQUAL193_tree=null;\n PythonTree ALT_NOTEQUAL194_tree=null;\n PythonTree NOTEQUAL195_tree=null;\n PythonTree IN196_tree=null;\n PythonTree NOT197_tree=null;\n PythonTree IN198_tree=null;\n PythonTree IS199_tree=null;\n PythonTree IS200_tree=null;\n PythonTree NOT201_tree=null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1101:5: ( LESS | GREATER | EQUAL | GREATEREQUAL | LESSEQUAL | ALT_NOTEQUAL | NOTEQUAL | IN | NOT IN | IS | IS NOT )\n int alt87=11;\n alt87 = dfa87.predict(input);\n switch (alt87) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1101:7: LESS\n {\n root_0 = (PythonTree)adaptor.nil();\n\n LESS189=(Token)match(input,LESS,FOLLOW_LESS_in_comp_op4621); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LESS189_tree = (PythonTree)adaptor.create(LESS189);\n adaptor.addChild(root_0, LESS189_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.Lt;\n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1103:7: GREATER\n {\n root_0 = (PythonTree)adaptor.nil();\n\n GREATER190=(Token)match(input,GREATER,FOLLOW_GREATER_in_comp_op4639); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n GREATER190_tree = (PythonTree)adaptor.create(GREATER190);\n adaptor.addChild(root_0, GREATER190_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.Gt;\n }\n\n }\n break;\n case 3 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1105:7: EQUAL\n {\n root_0 = (PythonTree)adaptor.nil();\n\n EQUAL191=(Token)match(input,EQUAL,FOLLOW_EQUAL_in_comp_op4657); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n EQUAL191_tree = (PythonTree)adaptor.create(EQUAL191);\n adaptor.addChild(root_0, EQUAL191_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.Eq;\n }\n\n }\n break;\n case 4 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1107:7: GREATEREQUAL\n {\n root_0 = (PythonTree)adaptor.nil();\n\n GREATEREQUAL192=(Token)match(input,GREATEREQUAL,FOLLOW_GREATEREQUAL_in_comp_op4675); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n GREATEREQUAL192_tree = (PythonTree)adaptor.create(GREATEREQUAL192);\n adaptor.addChild(root_0, GREATEREQUAL192_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.GtE;\n }\n\n }\n break;\n case 5 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1109:7: LESSEQUAL\n {\n root_0 = (PythonTree)adaptor.nil();\n\n LESSEQUAL193=(Token)match(input,LESSEQUAL,FOLLOW_LESSEQUAL_in_comp_op4693); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LESSEQUAL193_tree = (PythonTree)adaptor.create(LESSEQUAL193);\n adaptor.addChild(root_0, LESSEQUAL193_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.LtE;\n }\n\n }\n break;\n case 6 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1111:7: ALT_NOTEQUAL\n {\n root_0 = (PythonTree)adaptor.nil();\n\n ALT_NOTEQUAL194=(Token)match(input,ALT_NOTEQUAL,FOLLOW_ALT_NOTEQUAL_in_comp_op4711); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n ALT_NOTEQUAL194_tree = (PythonTree)adaptor.create(ALT_NOTEQUAL194);\n adaptor.addChild(root_0, ALT_NOTEQUAL194_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.NotEq;\n }\n\n }\n break;\n case 7 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1113:7: NOTEQUAL\n {\n root_0 = (PythonTree)adaptor.nil();\n\n NOTEQUAL195=(Token)match(input,NOTEQUAL,FOLLOW_NOTEQUAL_in_comp_op4729); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NOTEQUAL195_tree = (PythonTree)adaptor.create(NOTEQUAL195);\n adaptor.addChild(root_0, NOTEQUAL195_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.NotEq;\n }\n\n }\n break;\n case 8 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1115:7: IN\n {\n root_0 = (PythonTree)adaptor.nil();\n\n IN196=(Token)match(input,IN,FOLLOW_IN_in_comp_op4747); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IN196_tree = (PythonTree)adaptor.create(IN196);\n adaptor.addChild(root_0, IN196_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.In;\n }\n\n }\n break;\n case 9 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1117:7: NOT IN\n {\n root_0 = (PythonTree)adaptor.nil();\n\n NOT197=(Token)match(input,NOT,FOLLOW_NOT_in_comp_op4765); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NOT197_tree = (PythonTree)adaptor.create(NOT197);\n adaptor.addChild(root_0, NOT197_tree);\n }\n IN198=(Token)match(input,IN,FOLLOW_IN_in_comp_op4767); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IN198_tree = (PythonTree)adaptor.create(IN198);\n adaptor.addChild(root_0, IN198_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.NotIn;\n }\n\n }\n break;\n case 10 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1119:7: IS\n {\n root_0 = (PythonTree)adaptor.nil();\n\n IS199=(Token)match(input,IS,FOLLOW_IS_in_comp_op4785); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IS199_tree = (PythonTree)adaptor.create(IS199);\n adaptor.addChild(root_0, IS199_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.Is;\n }\n\n }\n break;\n case 11 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1121:7: IS NOT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n IS200=(Token)match(input,IS,FOLLOW_IS_in_comp_op4803); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IS200_tree = (PythonTree)adaptor.create(IS200);\n adaptor.addChild(root_0, IS200_tree);\n }\n NOT201=(Token)match(input,NOT,FOLLOW_NOT_in_comp_op4805); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NOT201_tree = (PythonTree)adaptor.create(NOT201);\n adaptor.addChild(root_0, NOT201_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = cmpopType.IsNot;\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }" ]
[ "0.56116426", "0.54314125", "0.5360363", "0.5254776", "0.5170427", "0.51616675", "0.5051677", "0.50451446", "0.5004894", "0.49457994", "0.49403328", "0.49036533", "0.48962826", "0.4813737", "0.47833192", "0.4765272", "0.47622368", "0.47338364", "0.4722292", "0.4706932", "0.4688416", "0.4661106", "0.4656368", "0.4641391", "0.4633018", "0.46224773", "0.46218544", "0.4618864", "0.46169955", "0.46018866", "0.45720842", "0.45485857", "0.4547276", "0.4523089", "0.45089373", "0.45038676", "0.44989863", "0.44872195", "0.44864562", "0.44845775", "0.44593948", "0.44492745", "0.4430662", "0.4427564", "0.44154975", "0.44101694", "0.43940294", "0.43843192", "0.43814123", "0.43813148", "0.437651", "0.4371445", "0.43689144", "0.43639192", "0.4359637", "0.43301392", "0.43246433", "0.43131712", "0.42904177", "0.42884046", "0.42876688", "0.42863092", "0.42730096", "0.42692566", "0.42603356", "0.42570952", "0.42476404", "0.42429486", "0.42409113", "0.42392442", "0.4221324", "0.42130545", "0.42050588", "0.4194228", "0.41889325", "0.41777802", "0.4170785", "0.41604283", "0.41452008", "0.4141902", "0.4141723", "0.41265815", "0.41130745", "0.4104733", "0.41022947", "0.4098971", "0.4098971", "0.4086367", "0.4083692", "0.40832427", "0.40790084", "0.40695214", "0.4068457", "0.40665603", "0.40653336", "0.40649867", "0.40577415", "0.40568352", "0.40522462", "0.40448993" ]
0.54401547
1
Create a new LESS OR EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> LeSpecification<T> le( Property<T> property, Variable variable ) { return new LeSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "private Copy prepareCopyForHeaderMetaData(String variableName, String property) {\n\t\tCopy copy = new Copy();\n\t\tFromSpec from = new FromSpec();\n\t\tfrom.setType(fromTypes.VARIABLE);\n\t\tfrom.setPart(\"payload\");\n\t\tfrom.setVariableName(\"input\");\n\t\tfrom.setQueryLanguage(\"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\");\n\t\tfrom.setQuery(\"<![CDATA[tns:\" + property + \"]]>\");\n\t\tcopy.setFromSpec(from);\n\t\t\n\t\tToSpec to = new ToSpec();\n\t\tto.setType(toTypes.VARIABLE);\n\t\tto.setVariableName(variableName);\n\t\tto.setHeader(property);\n\t\tcopy.setToSpec(to);\n\t\t\n\t\treturn copy;\n\t}", "PropertyRule createPropertyRule();", "Property createProperty();", "public QueryElement addLowerThen(String property, Object value);", "void declare(String name, Supplier<T> propertySupplier);", "Less createLess();", "private MessageProperty setTemplateVar(String key, String value){\n\t\tMessageProperty property = new MessageProperty();\n\t\tproperty.setPropertyName(key);\n\t\tproperty.setPropertyValue(appendCDATA(value));\n\t\treturn property;\n\t}", "VariableExp createVariableExp();", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "Variable createVariable();", "Variable createVariable();", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "Builder addProperty(String name, String value);", "public Expression assign(String var, Expression expression) {\r\n // if this variable is val no meter if is capital or small letter.\r\n if (this.variable.equalsIgnoreCase(var)) {\r\n return expression;\r\n }\r\n return this;\r\n }", "ConditionalExpression createConditionalExpression();", "VarAssignment createVarAssignment();", "Variable(String _var) {\n this._var = _var;\n }", "public Variable(String name){\n this.name = name;\n }", "public QueryElement addGreaterEqualsThen(String property, Object value);", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "private SingleRuleBuilder or(boolean negate, String predicate, String... variables) {\n literals.add( new MLNText.Literal(!negate, predicate, variables[0], variables[1]));\n return this;\n }", "public SingleRuleBuilder or(String predicate, String... variables) { return or(false, predicate, variables); }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "@Override\n public Expression assign(String var, Expression expression) {\n return new Minus(getExpression1().assign(var, expression), getExpression2().assign(var, expression));\n }", "private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public SingleRuleBuilder orNot(String predicate, String... variables) { return or(true, predicate, variables); }", "private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }", "private void constructOwlDataPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n SWRLVariable var1 = null, var2;\n String classNm = null;\n\n var1 = initalizeVariable(name, var1);\n OWLDataProperty p = ontologyOWLDataPropertyVocabulary.get(name);\n\n classNm = constructpropertySubjectAtom(name, antecedent);\n\n var2 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(classNm)));\n antecedent.add(factory.getSWRLDataPropertyAtom(p, var2, var1));\n Set<OWLDataPropertyRangeAxiom> sgdp = domainOntology.getDataPropertyRangeAxioms(p);\n OWLDataRange r = null;\n for (OWLDataPropertyRangeAxiom a : sgdp) {\n r = a.getRange();\n }\n constructBuiltinAtom(name, operator, value, r.asOWLDatatype(), antecedent);\n\n }", "public abstract QueryElement addOrLike(String property, Object value);", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public QueryElement addGreaterThen(String property, Object value);", "public VariableIF createVariable(VariableDecl decl);", "public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }", "@Test\n\tpublic void keywordEvaluationOrder()\n\t{\n\t\tTemplate t1 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(1), y=makevar(2))?>\");\n\t\tString output1 = t1.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"1;3\", output1);\n\n\t\tTemplate t2 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(2), y=makevar(1))?>\");\n\t\tString output2 = t2.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"2;3\", output2);\n\t}", "public PropertySpecBuilder<T> name(String name)\n {\n Preconditions.checkArgument(this.name == null, \"property name already set\");\n this.shortName = name;\n this.name = prefix + name;\n\n return this;\n }", "@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }", "public abstract QueryElement addOrEquals(String property, Object value);", "public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "private boolean bindNewVariable(String name, Obj value) {\n if (name.equals(\"_\")) return true;\n \n // Bind the variable.\n return mScope.define(mIsMutable, name, value);\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "protected abstract Property createProperty(String key, Object value);", "protected AeFromPropertyBase(String aVariableName, QName aProperty)\r\n {\r\n setVariableName(aVariableName);\r\n setProperty(aProperty);\r\n }", "Object getPropertytrue();", "boolean hasPropertyLike(String name);", "ControlVariable createControlVariable();", "public String prop(String name);", "public ConditionalExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "boolean containsProperty(String name);", "private SWRLVariable initalizeVariable(String name, SWRLVariable var1) {\n\n if (literalVocabulary.containsKey(name)) {\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(name)));\n } else {\n char variable = this.generateVariable();\n literalVocabulary.put(name, String.valueOf(variable));\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + variable));\n }\n\n return var1;\n }", "public InlinedStatementConfigurator inlineIfOrForeachReferringTo(String variableName) {\n\t\tpatternBuilder.patternQuery\n\t\t\t.filterChildren((CtVariableReference varRef) -> variableName.equals(varRef.getSimpleName()))\n\t\t\t.forEach(this::byElement);\n\t\treturn this;\n\t}", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public static Node match(Parser parser) throws BuildException {\n\n Lexeme var = parser.match(LexemeType.VAR);\n Node variables = IdentifierList.match(parser);\n\n if (parser.check(LexemeType.EQUALS)) {\n Lexeme equals = parser.advance();\n return VariableDeclarationNode.createVariableDeclaration(var, variables, ExpressionList.match(parser));\n\n }\n\n return VariableDeclarationNode.createVariableDeclaration(var, variables);\n\n }", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "public IAspectVariable<V> createNewVariable(PartTarget target);", "private void constructObjectPropertyAtom(String name, Set<SWRLAtom> antecedent, String value, String operator) {\n\n SWRLVariable var1 = null, var2 = null, var3 = null;\n String classNm, classObject = null;\n OWLObjectProperty o = ontologyOWLObjectPropertylVocabulary.get(name);\n\n classNm = constructObjectSubjectAtom(name, antecedent);\n classObject = constructObjectObjectAtom(name, antecedent);\n var2 = initalizeVariable(classNm, var2);\n var3 = initalizeVariable(classObject, var3);\n antecedent.add(factory.getSWRLObjectPropertyAtom(o, var2, var3));\n\n constructBuiltinAtom(classObject, operator, value, null, antecedent);\n\n }", "default void declare(T property) {\n declare(property.getSimpleName(), () -> property);\n }", "public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {\n boolean hasPropertyAgnosticType = false;\n EventType[] types = validationContext.getStreamTypeService().getEventTypes();\n for (int i = 0; i < validationContext.getStreamTypeService().getEventTypes().length; i++) {\n if (types[i] instanceof EventTypeSPI) {\n hasPropertyAgnosticType |= ((EventTypeSPI) types[i]).getMetadata().isPropertyAgnostic();\n }\n }\n\n if (!hasPropertyAgnosticType) {\n // the variable name should not overlap with a property name\n try {\n validationContext.getStreamTypeService().resolveByPropertyName(variableName, false);\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (DuplicatePropertyException e) {\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (PropertyNotFoundException e) {\n // expected\n }\n }\n\n VariableMetaData variableMetadata = validationContext.getVariableService().getVariableMetaData(variableName);\n if (variableMetadata == null) {\n throw new ExprValidationException(\"Failed to find variable by name '\" + variableName + \"'\");\n }\n isPrimitive = variableMetadata.getEventType() == null;\n variableType = variableMetadata.getType();\n if (optSubPropName != null) {\n if (variableMetadata.getEventType() == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n eventTypeGetter = ((EventTypeSPI) variableMetadata.getEventType()).getGetterSPI(optSubPropName);\n if (eventTypeGetter == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n variableType = variableMetadata.getEventType().getPropertyType(optSubPropName);\n }\n\n readersPerCp = validationContext.getVariableService().getReadersPerCP(variableName);\n if (variableMetadata.getContextPartitionName() == null) {\n readerNonCP = readersPerCp.get(EPStatementStartMethod.DEFAULT_AGENT_INSTANCE_ID);\n }\n variableType = JavaClassHelper.getBoxedType(variableType);\n return null;\n }", "public Conditional(String tag, String value) {\r\n super(tag, value);\r\n }", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "public abstract QueryElement addLike(String property, Object value);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThanEquals(String field, long propertyValue);", "public MyAnnotator(String name, Properties props){\r\n sch = props.getProperty(\"Search.string\",\"the\"); //gets search string if specified, else defaults to \"the\"\r\n }", "QueryElement addLikeWithWildcardSetting(String property, String value);", "public VariableCreateOrUpdateProperties withValue(String value) {\n this.value = value;\n return this;\n }", "Variable getSourceVariable();", "public void setMakeVariable(String name, String value) {\n pkgBuilder.setMakeVariable(name, value);\n }", "Variable getTargetVariable();", "public Tag(Property.Name value) {\n\t}", "String getSourceVariablePart();", "public void addVarToJoiningVariables( String var ) ;", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "AliasVariable createAliasVariable();", "PropertyCallExp createPropertyCallExp();", "public static MemberExpression property(Expression expression, String name) { throw Extensions.todo(); }", "@Test\r\n public void deriveFromOrAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M|=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH|=9\", \"(long,km^2/h)\");\r\n }", "public Expression assign(String var, Expression expression) {\n return new Cos(super.getExpression().assign(var, expression));\n }", "public abstract QueryElement addEquals(String property, Object value);", "AssignmentRule createAssignmentRule();", "public static void addOWLLiteralProperty(OWLIndividual owlIndi, OWLLiteral value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(value.getLiteral(), value.getLang());\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "String getTargetVariablePart();", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "public IncrementableAssignment(Literal lit) {\n super(lit, false);\n variableOrdering.add(lit.variable());\n }", "public interface UnaryBooleanExpressionProperty extends BooleanExpressionProperty<BooleanExpression>, UnaryProperty<BooleanExpressionProperty<BooleanExpression>, BooleanExpression> {\n}" ]
[ "0.5332959", "0.52868235", "0.5242051", "0.5175755", "0.5076257", "0.50750786", "0.49893826", "0.49615896", "0.494973", "0.4873117", "0.48427448", "0.47996306", "0.47755554", "0.47644505", "0.47298717", "0.4722836", "0.4686932", "0.466317", "0.46535313", "0.46535313", "0.46344605", "0.46244913", "0.46219411", "0.46163455", "0.4593304", "0.45831695", "0.45817155", "0.4580519", "0.45775673", "0.45742053", "0.45708942", "0.45503104", "0.45288715", "0.45153624", "0.4515276", "0.45050138", "0.44996566", "0.44933745", "0.44823596", "0.44749627", "0.44594765", "0.44210646", "0.44184366", "0.44079134", "0.43915296", "0.4383993", "0.43826717", "0.43753976", "0.43580052", "0.43565872", "0.43551883", "0.43526655", "0.4345591", "0.4343262", "0.4339383", "0.43352848", "0.43350947", "0.43265665", "0.43239105", "0.43219575", "0.43106303", "0.42842618", "0.42710507", "0.4254161", "0.4253527", "0.42496824", "0.42375124", "0.42339578", "0.42321202", "0.4223962", "0.42211065", "0.42198908", "0.42149496", "0.42049342", "0.4192437", "0.41880354", "0.4187091", "0.4182428", "0.4181092", "0.4178144", "0.41752008", "0.4164211", "0.41595867", "0.41386795", "0.41381425", "0.41373426", "0.41282973", "0.41229588", "0.4121623", "0.4118229", "0.41172472", "0.41160846", "0.411175", "0.41047174", "0.4100679", "0.4098099", "0.40898964", "0.40891024", "0.40880236", "0.40774146" ]
0.5591284
0
Create a new LESSER THAN specification for a Property.
public static <T> LtSpecification<T> lt( Property<T> property, T value ) { return new LtSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "PropertyRule createPropertyRule();", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "public QueryElement addGreaterThen(String property, Object value);", "public LessThan() {\n this.toCompare = new double[2];\n this.index = 0;\n }", "TH createTH();", "public QueryElement addLowerThen(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public QueryElement addGreaterEqualsThen(String property, Object value);", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "Less createLess();", "public T addRule(final Property property, final String value) {\n addRule(StyleManager.stringifyEnum(property) + \": \" + value + \";\");\n return (T)this;\n }", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "default void declare(T property) {\n declare(property.getSimpleName(), () -> property);\n }", "Property createProperty();", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\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}", "PropertyCallExp createPropertyCallExp();", "public void test_lt_01() {\n OntModel m = ModelFactory.createOntologyModel();\n \n DatatypeProperty p = m.createDatatypeProperty(NS + \"p\");\n OntClass c = m.createClass(NS + \"A\");\n \n Individual i = m.createIndividual(NS + \"i\", c);\n i.addProperty(p, \"testData\");\n \n int count = 0;\n \n for (Iterator j = i.listPropertyValues(p); j.hasNext();) {\n //System.err.println(\"Individual i has p value: \" + j.next());\n j.next();\n count++;\n }\n \n assertEquals(\"i should have one property\", 1, count);\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThan(String field, long propertyValue);", "public void check(final Predicate<T> property);", "public final MF addColumnProperty(Predicate<? super K> predicate, Object... properties) {\n\t\tfor(Object property : properties) {\n\t\t\tcolumnDefinitions.addColumnProperty(predicate, property);\n\t\t}\n\t\treturn (MF) this;\n\t}", "Condition lessThan(QueryParameter parameter, Object x);", "@Test\n public void testTurnHeaterOnPCT() {\n settings.setSetting(Period.MORNING, DayType.WEEKDAY, 69); \n thermo.setPeriod(Period.MORNING);\n thermo.setDay(DayType.WEEKDAY);\n thermo.setCurrentTemp(63); // clause a\n thermo.setThresholdDiff(5); // clause a\n thermo.setOverride(true); // clause b\n thermo.setOverTemp(70); // clause c\n thermo.setMinLag(10); // clause d\n thermo.setTimeSinceLastRun(12); // clause d\n assertTrue (thermo.turnHeaterOn(settings)); \n }", "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "Condition lessThanOrEqualTo(QueryParameter parameter, Object x);", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "public TradingProperty createNewTradingProperty(String sessionName, int classKey)\n {\n SimpleIntegerTradingPropertyImpl newTP = new SimpleIntegerTradingPropertyImpl(\"Property\", sessionName, classKey);\n newTP.setTradingPropertyType(getTradingPropertyType());\n return newTP;\n }", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public final void mT__17() throws RecognitionException {\n try {\n int _type = T__17;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:16:7: ( 'property' )\n // InternalMyDsl.g:16:9: 'property'\n {\n match(\"property\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "void declare(String name, Supplier<T> propertySupplier);", "public final void mT__43() throws RecognitionException {\n try {\n int _type = T__43;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:43:7: ( 'isParaLenghtLessThan' )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:43:9: 'isParaLenghtLessThan'\n {\n match(\"isParaLenghtLessThan\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "LengthGreater createLengthGreater();", "public SearchBuilder<T> ascending(final String property) {\n\t\treturn orderBy(property, true);\n\t}", "public Query lessThan(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.LESSTHAN), key, value);\n return this;\n }", "Builder addProperty(String name, String value);", "private MMGoal generateGoalFromProperty(ServiceProperty effectPlus) {\n\t\tMMGoal goal = new MMGoal();\n\t\tdouble goalValue = 0;\n\t\t\n\t\tif (!effectPlus.getTreatment_effect().equals(\"\")) {\n\t\t\tString name = effectPlus.getTreatment_effect().split(\"__\")[0];\n\t\t\tfor (Gauge gauge : this.agent.getGauges()) {\n\t\t\t\tif (gauge.getName().equals(name)) {\n\t\t\t\t\tgoalValue = MMReasoningModule.GAUGE_REFILL * gauge.getMaxValue();\n\t\t\t\t\t\n\t\t\t\t\tgoal = new MMGoal();\n\t\t\t\t\t\n\t\t\t\t\tgoal.getSuccessCondition().setPropertyName(\"biggerThan\");\n\t\t\t\t\tgoal.getSuccessCondition().setPropertyParameters(new ArrayList<Param>());\n\t\t\t\t\tgoal.getSuccessCondition().getPropertyParameters()\n\t\t\t\t\t\t\t.add(new Param(gauge.getName(), \"\", \"double\", \"\", \"false\"));\n\t\t\t\t\tgoal.getSuccessCondition().getPropertyParameters()\n\t\t\t\t\t\t\t.add(new Param(\"amount\", String.valueOf(goalValue), \"double\", \"\", \"false\"));\n\t\t\t\t\tgoal.getSuccessCondition().setTreatment_precond(gauge.getName() + \"__>__amount\");\n\t\t\t\t\t\n\t\t\t\t\tgoal.setPriority(effectPlus.getAttractivity());\n\t\t\t\t\t\n\t\t\t\t\treturn goal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<PropertyLink> linkList = Model.getInstance().getAI().getWorld().getLinkList();\n\t\t\n\t\tServiceProperty premise = null;\n\t\t\n\t\tif ((premise = effectPlus.getPremise(linkList)) != null) {\n\t\t\tfor (Param parameter : premise.getPropertyParameters()) {\n\t\t\t\tif (parameter.getFixed().equals(\"false\") && !parameter.getFindValue().equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparameter.setParamValue(String.valueOf(this.agent.getMemory().getKnowledgeAboutOwner()\n\t\t\t\t\t\t\t\t.getPropertiesContainer().getProperty(parameter.getFindValue()).getValue()));\n\t\t\t\t\t} catch (Exception e) {\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\tgoal.setSuccessCondition(premise);\n\t\t\tgoal.setPriority(effectPlus.getAttractivity());\n\t\t\t\n\t\t\treturn goal;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\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 Value.Builder setThn(java.lang.Integer value) {\n validate(fields()[13], value);\n this.thn = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "public void sortElements(Comparator<TLProperty> comparator);", "private double estimateNumericalPropertyProb(TemporalElementStats stat, String property,\n Comparator comp, PropertyValue value) {\n // property not sampled or not considered\n if (!stat.getNumericalPropertyStatsEstimation().containsKey(property)) {\n // if property not excluded, return very small value\n // if excluded, it is irrelevant, return 0.5\n return isPropertyRelevant(property) ? 0.0001 : 0.5;\n }\n Double[] propertyStats = stat.getNumericalPropertyStatsEstimation().get(property);\n NormalDistribution dist = new NormalDistribution(propertyStats[0],\n Math.max(Math.sqrt(propertyStats[1]), VERY_LOW_PROB));\n double doubleValue = ((Number) value.getObject()).doubleValue();\n double occurenceProb = stat.getNumericalOccurrenceEstimation().get(property);\n if (comp == EQ) {\n return VERY_LOW_PROB * occurenceProb;\n } else if (comp == NEQ) {\n return (1. - VERY_LOW_PROB) * occurenceProb;\n } else if (comp == LTE) {\n return dist.cumulativeProbability(doubleValue) * occurenceProb;\n } else if (comp == LT) {\n return occurenceProb * (dist.cumulativeProbability(doubleValue) - VERY_LOW_PROB);\n } else if (comp == GTE) {\n return occurenceProb *\n (1. - dist.cumulativeProbability(doubleValue) + VERY_LOW_PROB);\n } else {\n //GT\n return occurenceProb * (1. - dist.cumulativeProbability(doubleValue));\n }\n }", "@Override\n\tpublic void visit(LessNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam expresiile din cei 2 fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger s2 = 0;\n\t\tInteger s1 = 0;\n\t\t/**\n\t\t * preluam rezultatele evaluarii si verificam daca primul este mai mic\n\t\t * decat la doilea ,setand corespunzator valoarea din nodul curent in\n\t\t * functie de rezultatul comparatiei\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\t\t} else {\n\t\t\ts1 = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t} else {\n\t\t\ts2 = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (s1 < s2) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\t}", "Builder addProperty(String name, Thing.Builder builder);", "public Phrase(float leading) {\n this.leading = leading;\n }", "public void check(final BiPredicate<A, B> property) {\n final TheoryRunner<Pair<A, B>, Pair<A, B>> qc = new TheoryRunner<>(\n this.state.get(),\n combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2));\n }", "@Nonnull\n public static UBL23WriterBuilder <WeightStatementType> weightStatement ()\n {\n return UBL23WriterBuilder.create (WeightStatementType.class);\n }", "public final void mT__27() throws RecognitionException {\n try {\n int _type = T__27;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:26:7: ( 'property' )\n // InternalMyDsl.g:26:9: 'property'\n {\n match(\"property\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> lessThan(EntityField field, long propertyValue);", "public Criteria andPnameLessThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@SuppressWarnings( \"unchecked\" )\n public static <T> PropertyFunction<T> property( Property<T> property )\n {\n return ( (PropertyReferenceHandler<T>) Proxy.getInvocationHandler( property ) ).property();\n }", "public static <T> OrderBy orderBy( final Property<T> property )\n {\n return orderBy( property, OrderBy.Order.ASCENDING );\n }", "String getLess();", "public static Property setPropertyAttributes(Property oneProperty,\r\n String [] propertyAtt) {\r\n int mlsAsInt = Integer.parseInt(propertyAtt[2]);\r\n int zipAsInt = Integer.parseInt(propertyAtt[7]);\r\n int bedAsInt = Integer.parseInt(propertyAtt[8]);\r\n double bathAsDouble = Double.parseDouble(propertyAtt[9]);\r\n boolean soldAsBoolean = \"Y\".equalsIgnoreCase(propertyAtt[10]);\r\n double priceAsDouble = Double.parseDouble(propertyAtt[11]);\r\n \r\n oneProperty.setMlsNum(mlsAsInt);\r\n oneProperty.setLicenseNum(propertyAtt[3]);\r\n oneProperty.setAddress(propertyAtt[4]);\r\n oneProperty.setCity(propertyAtt[5]);\r\n oneProperty.setState(propertyAtt[6]);\r\n oneProperty.setZipCode(zipAsInt);\r\n oneProperty.setNumBed(bedAsInt);\r\n oneProperty.setNumBath(bathAsDouble);\r\n oneProperty.setSold(soldAsBoolean);\r\n oneProperty.setAskingPrice(priceAsDouble);\r\n \r\n return oneProperty;\r\n }", "public final void mLESS() throws RecognitionException {\n try {\n int _type = LESS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:11:6: ( '<' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:11:8: '<'\n {\n match('<'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public Criteria andPnameLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private void createHeader(int propertyCode) {\r\n switch (propertyCode) {\r\n case 0:\r\n _header = \"\";\r\n break;\r\n case 1:\r\n _header = \"#directed\";\r\n break;\r\n case 2:\r\n _header = \"#attributed\";\r\n break;\r\n case 3:\r\n _header = \"#weighted\";\r\n break;\r\n case 4:\r\n _header = \"#directed #attributed\";\r\n break;\r\n case 5:\r\n _header = \"#directed #weighted\";\r\n break;\r\n case 6:\r\n _header = \"#directed #attributed #weighted\";\r\n break;\r\n case 7:\r\n _header = \"#attributed #weighted\";\r\n break;\r\n }\r\n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public Builder setHPPerSecond(int value) {\n bitField0_ |= 0x00000010;\n hPPerSecond_ = value;\n onChanged();\n return this;\n }", "public static MatchesSpecification matches( Property<String> property, String regexp )\n {\n return new MatchesSpecification( property( property ), regexp );\n }", "private ConfigurationHTMLPrinter doPropertyRow(final JPPFProperty<?> property) {\n println(\"<tr>\").incrementIndent();\n // property name\n doCell(deprecationStyle(property, convertForHTML(property.getName())));\n // default value\n Object value = property.getDefaultValue();\n if (AVAILABLE_PROCESSORS_NAMES.contains(property.getName())) value = \"available processors\";\n else if (\"jppf.resource.cache.dir\".equals(property.getName())) value = \"sys.property \\\"java.io.tmpdir\\\"\";\n else if (\"jppf.notification.offload.memory.threshold\".equals(property.getName())) value = \"80% of max heap size\";\n else if (value instanceof String[]) value = toString((String[]) value);\n else if (\"\".equals(value)) value = \"empty string\";\n final String val = ((value == null) ? \"null\" : convertForHTML(value.toString()));\n doCell(deprecationStyle(property, val));\n // aliases\n doCell(deprecationStyle(property, toString(property.getAliases())));\n // value type\n doCell(deprecationStyle(property, property.valueType().getSimpleName()));\n // description\n value = getPropertyDoc(property);\n doCell(value == null ? \"\" : convertDescription(value.toString()));\n return decrementIndent().println(\"</tr>\");\n }", "public StatementBuilder where(String property, Object value) {\n return where(Where.eq(property, value));\n }", "public Rule<T> when(Predicate<T> p) {\r\n\r\n\t\tthis.when = p;\r\n\r\n\t\treturn this;\r\n\r\n\t}", "public Percent(final Function parameter)\n {\n super(\"%\", parameter);\n }", "public void addElement(TLProperty element);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThanEquals(String field, long propertyValue);", "public abstract QueryElement addLike(String property, Object value);", "@Factory\n public static Matcher<QueryTreeNode> lessThan(Matcher<QueryTreeNode> leftMatcher, Matcher<QueryTreeNode> rightMatcher) {\n return relation(leftMatcher, \"<\", rightMatcher);\n }", "public final void mRULE_LESS_THAN() throws RecognitionException {\n try {\n int _type = RULE_LESS_THAN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12831:16: ( '<' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12831:18: '<'\n {\n match('<'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "public Criteria andSortLessThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public T addRule(final Property property, final Color color) {\n addRule(StyleManager.stringifyEnum(property) + \": \" + StyleManager.stringifyEnum(color) + \";\");\n return (T)this;\n }", "Object getPropertytrue();", "public Criteria andIfAnalyzeLessThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_analyze < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public SingleRuleBuilder newRule() {\n return new SingleRuleBuilder();\n }", "public final void mLESS() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = LESS;\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:437:5: ( '<' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:437: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}", "public void setThigh(double thigh) {\n this.thigh = thigh;\n }", "public Criteria andIfAnalyzeLessThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"if_analyze <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Theory(double n){\r\n\t\tthis.n= n;\r\n\t}", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "StatementRule createStatementRule();", "public static <T> OrderBy orderBy( final Property<T> property, final OrderBy.Order order )\n {\n return new OrderBy( property( property ), order );\n }", "public static Operator giveOperator(Actor self, Actor recipient, Prop prop) {\n\n\t\t// Set conditions that must be true\n\t\tArrayList<ICondition> beTrue = new ArrayList<ICondition>();\n\t\tbeTrue.add(new LivesCondition(self));\n\t\tbeTrue.add(new LivesCondition(recipient));\n\t\tbeTrue.add(new SamePlaceCondition(self, recipient));\n\t\tbeTrue.add(new BelongsToCondition(prop, self));\n\n\t\t// Set conditions that must be false\n\t\tArrayList<ICondition> beFalse = new ArrayList<ICondition>();\n\n\t\t// Set conditions that will be set true\n\t\tArrayList<ICondition> setTrue = new ArrayList<ICondition>();\n\t\tsetTrue.add(new BelongsToCondition(prop, recipient));\n\n\t\t// Set conditions that will be set false\n\t\tArrayList<ICondition> setFalse = new ArrayList<ICondition>();\n\n\t\t// Add the corresponding action to the operator\n\t\tAction action = new Action(Action.ActionType.GIVE, self, recipient, prop);\n\t\t\n\t\t// The weight for giving actions\n\t\tint weight = 5;\n\t\t\n\t\treturn new Operator(beTrue, beFalse, setTrue, setFalse, action, weight);\n\t}", "public Heading() {\n\t\tthis(MIN);\n\t}", "public Theory(double n) {\r\n this.n = n;\r\n }", "public Criteria andTaxPriceLessThanColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"tax_price < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public PropertySpecBuilder<T> validator(String regex)\n {\n return validator(Pattern.compile(regex));\n }", "TRule createTRule();", "public Criteria andSortLessThanColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andCreatePersonLessThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }" ]
[ "0.54764843", "0.52163047", "0.5153018", "0.5012718", "0.49598277", "0.49087632", "0.48458117", "0.4821788", "0.48041824", "0.47793508", "0.4740889", "0.4645616", "0.46097305", "0.46092424", "0.4550248", "0.45491824", "0.45400408", "0.44780743", "0.4455027", "0.44000158", "0.43933657", "0.43603006", "0.43389288", "0.43246704", "0.42413753", "0.42405674", "0.42404816", "0.42374042", "0.42278588", "0.42029068", "0.41888902", "0.41857803", "0.4167227", "0.41534805", "0.41471285", "0.41437227", "0.41315904", "0.41301078", "0.40997374", "0.4087367", "0.40862334", "0.40810704", "0.40666747", "0.4066426", "0.4064002", "0.40522107", "0.4025674", "0.4023876", "0.402168", "0.40138835", "0.40125436", "0.40082642", "0.40081012", "0.40038928", "0.3994203", "0.39886394", "0.3975662", "0.39572567", "0.3946631", "0.39397317", "0.39351994", "0.3924169", "0.3921306", "0.39171544", "0.3912899", "0.3902102", "0.3900397", "0.38835782", "0.38828588", "0.3881769", "0.38627928", "0.38450944", "0.38449213", "0.38366607", "0.38306725", "0.38183254", "0.38173637", "0.38145187", "0.38063663", "0.3800607", "0.38000786", "0.37997895", "0.3790962", "0.37905127", "0.37897003", "0.3784776", "0.37764102", "0.3774247", "0.37727654", "0.3770277", "0.37701744", "0.37599838", "0.3759707", "0.37588748", "0.37544382", "0.37543038", "0.3752639", "0.37517864", "0.37468362", "0.3741982" ]
0.5490058
0
Create a new LESSER THAN specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> LtSpecification<T> lt( Property<T> property, Variable variable ) { return new LtSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "default void declare(T property) {\n declare(property.getSimpleName(), () -> property);\n }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN, propertyName, value);\n }", "public QueryElement addLowerThen(String property, Object value);", "void declare(String name, Supplier<T> propertySupplier);", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "private Copy prepareCopyForHeaderMetaData(String variableName, String property) {\n\t\tCopy copy = new Copy();\n\t\tFromSpec from = new FromSpec();\n\t\tfrom.setType(fromTypes.VARIABLE);\n\t\tfrom.setPart(\"payload\");\n\t\tfrom.setVariableName(\"input\");\n\t\tfrom.setQueryLanguage(\"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\");\n\t\tfrom.setQuery(\"<![CDATA[tns:\" + property + \"]]>\");\n\t\tcopy.setFromSpec(from);\n\t\t\n\t\tToSpec to = new ToSpec();\n\t\tto.setType(toTypes.VARIABLE);\n\t\tto.setVariableName(variableName);\n\t\tto.setHeader(property);\n\t\tcopy.setToSpec(to);\n\t\t\n\t\treturn copy;\n\t}", "public QueryElement addGreaterThen(String property, Object value);", "Builder addProperty(String name, String value);", "PropertyRule createPropertyRule();", "TH createTH();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public QueryElement addGreaterEqualsThen(String property, Object value);", "private MessageProperty setTemplateVar(String key, String value){\n\t\tMessageProperty property = new MessageProperty();\n\t\tproperty.setPropertyName(key);\n\t\tproperty.setPropertyValue(appendCDATA(value));\n\t\treturn property;\n\t}", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "Condition lessThan(QueryParameter parameter, Object x);", "Property createProperty();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThan(String field, long propertyValue);", "public QueryElement addLowerEqualsThen(String property, Object value);", "Less createLess();", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "Condition lessThanOrEqualTo(QueryParameter parameter, Object x);", "public Translate<T> withVariable(String variableName, Object variableValue) {\n\t\tvariables.put(variableName, variableValue);\n\t\treturn this;\n\t}", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "public Variable(String name){\n this.name = name;\n }", "protected AeFromPropertyBase(String aVariableName, QName aProperty)\r\n {\r\n setVariableName(aVariableName);\r\n setProperty(aProperty);\r\n }", "Builder addProperty(String name, Thing.Builder builder);", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "public LessThan() {\n this.toCompare = new double[2];\n this.index = 0;\n }", "public PropertySpecBuilder<T> name(String name)\n {\n Preconditions.checkArgument(this.name == null, \"property name already set\");\n this.shortName = name;\n this.name = prefix + name;\n\n return this;\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}", "Variable(String _var) {\n this._var = _var;\n }", "public IAspectVariable<V> createNewVariable(PartTarget target);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer);", "public void addVariableToTable(String name, VoogaData value) {\n\t\tthis.getItems().add(new Property(name, value));\n\t\tproperties.put(name, value);\n\t}", "public Forecasting withWeightColumnName(String weightColumnName) {\n this.weightColumnName = weightColumnName;\n return this;\n }", "VariableExp createVariableExp();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public T addRule(final Property property, final String value) {\n addRule(StyleManager.stringifyEnum(property) + \": \" + value + \";\");\n return (T)this;\n }", "public final void mT__17() throws RecognitionException {\n try {\n int _type = T__17;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:16:7: ( 'property' )\n // InternalMyDsl.g:16:9: 'property'\n {\n match(\"property\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public TradingProperty createNewTradingProperty(String sessionName, int classKey)\n {\n SimpleIntegerTradingPropertyImpl newTP = new SimpleIntegerTradingPropertyImpl(\"Property\", sessionName, classKey);\n newTP.setTradingPropertyType(getTradingPropertyType());\n return newTP;\n }", "public void addElement(TLProperty element);", "public LinearConstraint putVariable(Object var, Double value) {\n constraints.put(var, value);\n return this;\n }", "Variable createVariable();", "Variable createVariable();", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "SchemaBuilder withProperty(String name, Object value);", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }", "@Test\n\tpublic void keywordEvaluationOrder()\n\t{\n\t\tTemplate t1 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(1), y=makevar(2))?>\");\n\t\tString output1 = t1.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"1;3\", output1);\n\n\t\tTemplate t2 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(2), y=makevar(1))?>\");\n\t\tString output2 = t2.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"2;3\", output2);\n\t}", "PropertyCallExp createPropertyCallExp();", "public Phrase(float leading) {\n this.leading = leading;\n }", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public void setVarTrPatternCount( String var, Integer count ) ;", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "private RendezVousPropagateMessage newPropHeader(String serviceName, String serviceParam, int ttl) {\r\n\r\n RendezVousPropagateMessage propHdr = new RendezVousPropagateMessage();\r\n propHdr.setTTL(ttl);\r\n propHdr.setDestSName(serviceName);\r\n propHdr.setDestSParam(serviceParam);\r\n UUID msgID = createMsgId();\r\n propHdr.setMsgId(msgID);\r\n addMsgId(msgID);\r\n // Add this peer to the path.\r\n propHdr.addVisited(group.getPeerID().toURI());\r\n return propHdr;\r\n }", "private void createHeader(int propertyCode) {\r\n switch (propertyCode) {\r\n case 0:\r\n _header = \"\";\r\n break;\r\n case 1:\r\n _header = \"#directed\";\r\n break;\r\n case 2:\r\n _header = \"#attributed\";\r\n break;\r\n case 3:\r\n _header = \"#weighted\";\r\n break;\r\n case 4:\r\n _header = \"#directed #attributed\";\r\n break;\r\n case 5:\r\n _header = \"#directed #weighted\";\r\n break;\r\n case 6:\r\n _header = \"#directed #attributed #weighted\";\r\n break;\r\n case 7:\r\n _header = \"#attributed #weighted\";\r\n break;\r\n }\r\n }", "public Expression assign(String var, Expression expression) {\r\n // if this variable is val no meter if is capital or small letter.\r\n if (this.variable.equalsIgnoreCase(var)) {\r\n return expression;\r\n }\r\n return this;\r\n }", "public Criteria andPnameLessThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Value.Builder setThn(java.lang.Integer value) {\n validate(fields()[13], value);\n this.thn = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> lessThan(EntityField field, long propertyValue);", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "protected abstract Property createProperty(String key, Object value);", "Object getPropertytrue();", "public void test_lt_01() {\n OntModel m = ModelFactory.createOntologyModel();\n \n DatatypeProperty p = m.createDatatypeProperty(NS + \"p\");\n OntClass c = m.createClass(NS + \"A\");\n \n Individual i = m.createIndividual(NS + \"i\", c);\n i.addProperty(p, \"testData\");\n \n int count = 0;\n \n for (Iterator j = i.listPropertyValues(p); j.hasNext();) {\n //System.err.println(\"Individual i has p value: \" + j.next());\n j.next();\n count++;\n }\n \n assertEquals(\"i should have one property\", 1, count);\n }", "@Override\n\tpublic void visit(LessNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam expresiile din cei 2 fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger s2 = 0;\n\t\tInteger s1 = 0;\n\t\t/**\n\t\t * preluam rezultatele evaluarii si verificam daca primul este mai mic\n\t\t * decat la doilea ,setand corespunzator valoarea din nodul curent in\n\t\t * functie de rezultatul comparatiei\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\t\t} else {\n\t\t\ts1 = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t} else {\n\t\t\ts2 = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (s1 < s2) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\t}", "public TemplateEffect(Template variable, Template value, EffectType type){\n\t\tthis(variable,value,type, 1);\n\t}", "public Tag(Property.Name value) {\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> lessThanEquals(String field, long propertyValue);", "public final void mT__43() throws RecognitionException {\n try {\n int _type = T__43;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:43:7: ( 'isParaLenghtLessThan' )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:43:9: 'isParaLenghtLessThan'\n {\n match(\"isParaLenghtLessThan\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "void setStatusProperty(String property, Double value);", "@Test\n public void testPseudoVariable() {\n String html = source.toHTML(new SEclipseStyle(), new SPseudoVariable());\n assertEquals(html, \"<pre style='color:#000000\"\n + \";background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" <span style='color:#7f0055;\"\n + \" font-weight:bold; '>\"\n + \"super</span>.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public static EqualityExpression lte(String propertyName, Object value) {\n return new EqualityExpression(Operator.LESS_THAN_OR_EQUAL, propertyName, value);\n }", "public Query lessThan(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.LESSTHAN), key, value);\n return this;\n }", "public final MF addColumnProperty(Predicate<? super K> predicate, Object... properties) {\n\t\tfor(Object property : properties) {\n\t\t\tcolumnDefinitions.addColumnProperty(predicate, property);\n\t\t}\n\t\treturn (MF) this;\n\t}", "public void check(final Predicate<T> property);", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public InlinedStatementConfigurator inlineIfOrForeachReferringTo(String variableName) {\n\t\tpatternBuilder.patternQuery\n\t\t\t.filterChildren((CtVariableReference varRef) -> variableName.equals(varRef.getSimpleName()))\n\t\t\t.forEach(this::byElement);\n\t\treturn this;\n\t}", "public Percent(final Function parameter)\n {\n super(\"%\", parameter);\n }", "public static void addOWLLiteralProperty(OWLIndividual owlIndi, OWLLiteral value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(value.getLiteral(), value.getLang());\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "public void setVariable(Name variable) {\n this.variable = variable;\n }", "private MMGoal generateGoalFromProperty(ServiceProperty effectPlus) {\n\t\tMMGoal goal = new MMGoal();\n\t\tdouble goalValue = 0;\n\t\t\n\t\tif (!effectPlus.getTreatment_effect().equals(\"\")) {\n\t\t\tString name = effectPlus.getTreatment_effect().split(\"__\")[0];\n\t\t\tfor (Gauge gauge : this.agent.getGauges()) {\n\t\t\t\tif (gauge.getName().equals(name)) {\n\t\t\t\t\tgoalValue = MMReasoningModule.GAUGE_REFILL * gauge.getMaxValue();\n\t\t\t\t\t\n\t\t\t\t\tgoal = new MMGoal();\n\t\t\t\t\t\n\t\t\t\t\tgoal.getSuccessCondition().setPropertyName(\"biggerThan\");\n\t\t\t\t\tgoal.getSuccessCondition().setPropertyParameters(new ArrayList<Param>());\n\t\t\t\t\tgoal.getSuccessCondition().getPropertyParameters()\n\t\t\t\t\t\t\t.add(new Param(gauge.getName(), \"\", \"double\", \"\", \"false\"));\n\t\t\t\t\tgoal.getSuccessCondition().getPropertyParameters()\n\t\t\t\t\t\t\t.add(new Param(\"amount\", String.valueOf(goalValue), \"double\", \"\", \"false\"));\n\t\t\t\t\tgoal.getSuccessCondition().setTreatment_precond(gauge.getName() + \"__>__amount\");\n\t\t\t\t\t\n\t\t\t\t\tgoal.setPriority(effectPlus.getAttractivity());\n\t\t\t\t\t\n\t\t\t\t\treturn goal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<PropertyLink> linkList = Model.getInstance().getAI().getWorld().getLinkList();\n\t\t\n\t\tServiceProperty premise = null;\n\t\t\n\t\tif ((premise = effectPlus.getPremise(linkList)) != null) {\n\t\t\tfor (Param parameter : premise.getPropertyParameters()) {\n\t\t\t\tif (parameter.getFixed().equals(\"false\") && !parameter.getFindValue().equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparameter.setParamValue(String.valueOf(this.agent.getMemory().getKnowledgeAboutOwner()\n\t\t\t\t\t\t\t\t.getPropertiesContainer().getProperty(parameter.getFindValue()).getValue()));\n\t\t\t\t\t} catch (Exception e) {\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\tgoal.setSuccessCondition(premise);\n\t\t\tgoal.setPriority(effectPlus.getAttractivity());\n\t\t\t\n\t\t\treturn goal;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Execute(urlPattern = \"{}/@word\")\n public JsonResponse<RoutingCheckResult> named(String first) {\n return asJson(new RoutingCheckResult(\"named()\", first, null));\n }", "public DataPrimitive withVariableName(String variableName) {\n return new DataPrimitive(\n new VariableName(variableName),\n getDataPurpose(),\n getDataValidator(),\n getPrimitiveType(),\n getAnnotations(),\n getDataObject());\n }", "void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;", "public Criteria andPnameLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public String prop(String name);", "public TemplateEffect(Template variable, Template value, EffectType type, int priority){\n\t\tsuper(variable.toString(), (value.getSlots().isEmpty())? ValueFactory.none() : \n\t\t\tValueFactory.create(value.getRawString()), type, priority);\n\t\tthis.labelTemplate = variable;\n\t\tthis.valueTemplate = value;\n\t}", "DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );", "public VariableCreateOrUpdateProperties withValue(String value) {\n this.value = value;\n return this;\n }", "public Theory(double n){\r\n\t\tthis.n= n;\r\n\t}" ]
[ "0.5548809", "0.5388195", "0.5001214", "0.4791347", "0.47435164", "0.47217482", "0.47048572", "0.4672084", "0.46631882", "0.46500415", "0.4599052", "0.44883645", "0.4485134", "0.4393736", "0.43498638", "0.4320627", "0.42927614", "0.42841572", "0.42707777", "0.42492023", "0.42475525", "0.42290872", "0.41892314", "0.4154436", "0.4148361", "0.41208518", "0.40978795", "0.4061118", "0.40601408", "0.4057716", "0.40442175", "0.4040478", "0.40267384", "0.40114704", "0.39952257", "0.39842683", "0.39789936", "0.39698493", "0.3968338", "0.39674696", "0.39548013", "0.39531046", "0.39410833", "0.3936575", "0.39320678", "0.39175478", "0.39139047", "0.39103228", "0.39062583", "0.38995543", "0.38979632", "0.38979632", "0.38948023", "0.38863617", "0.38839582", "0.38741437", "0.3873975", "0.38707528", "0.3868555", "0.3861202", "0.38454473", "0.3827093", "0.38113332", "0.37965256", "0.37930226", "0.37886783", "0.37860122", "0.37791908", "0.37741235", "0.3768174", "0.37679818", "0.37677407", "0.37604105", "0.3755406", "0.3747838", "0.37472272", "0.3737038", "0.37351045", "0.3726472", "0.37246233", "0.37175882", "0.3714443", "0.37118706", "0.37094608", "0.37093753", "0.37087202", "0.37082756", "0.37066117", "0.3700386", "0.3696623", "0.3695122", "0.3691542", "0.36913827", "0.3682282", "0.3672834", "0.36613157", "0.36561084", "0.36528915", "0.36491722", "0.36489734" ]
0.5528313
1
Create a new NOT EQUALS specification for a Property.
public static <T> NeSpecification<T> ne( Property<T> property, T value ) { return new NeSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract QueryElement addNotEquals(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public static EqualityExpression ne(String propertyName, Object value) {\n return new EqualityExpression(Operator.NOT_EQUAL, propertyName, value);\n }", "public static NotSpecification not( Specification<Composite> operand )\n {\n return new NotSpecification( operand );\n }", "public static <T> PropertyNotNullSpecification<T> isNotNull( Property<T> property )\n {\n return new PropertyNotNullSpecification<>( property( property ) );\n }", "public Query notEqual(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.NOTEQUAL), key, value);\n return this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> notEquals(String field, String propertyValue);", "public abstract QueryElement addOrNotEquals(String property, Object value);", "<T> Builder setIgnoreReadOnly(Property<T> property, T value);", "@Test\n public void testNotEquals2() throws Exception {\n String sql = \"SELECT a from db.g where a != 'value'\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.NE.name());\n verifyElementSymbol(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, \"a\");\n verifyConstant(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, \"value\");\n \n verifySql(\"SELECT a FROM db.g WHERE a <> 'value'\", fileNode);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> notEquals(EntityField field, String propertyValue);", "@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }", "public Query not() {\n builder.negateQuery();\n return this;\n }", "public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}", "public final void mNOT_EQUALS() throws RecognitionException {\n try {\n int _type = NOT_EQUALS;\n // /Users/benjamincoe/HackWars/C.g:204:12: ( '!=' )\n // /Users/benjamincoe/HackWars/C.g:204:14: '!='\n {\n match(\"!=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public SeleniumQueryObject not(String selector) {\n\t\treturn NotFunction.not(this, this.elements, selector);\n\t}", "public static SetExpression notIn(String propertyName, Object[] values) {\n return new SetExpression(Operator.NOT_IN, propertyName, values);\n }", "private void setStringPropertyUnlessEqual(StringProperty property, String newValue) {\n if (!property.getValue().equals(newValue)) property.setValue(newValue);\n }", "Not createNot();", "Not createNot();", "public static Predicate not(Predicate predicate)\n {\n return new LogicPredicate(Type.NOT, predicate);\n }", "public Units whereNot(UnitSelector.BooleanSelector selector)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!selector.isTrueFor(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void verifyNoMatching(AcProperty e)\n {\n }", "public static BinaryExpression notEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1, liftToNull, method);\n }", "public static UnaryExpression not(Expression expression, Method method) {\n return makeUnary(ExpressionType.Not, expression, null, method);\n }", "public Unary createNot(Expr expr) {\n return createNot(expr.position(), expr);\n }", "public final void mNOT_EQUAL1() throws RecognitionException {\n try {\n int _type = NOT_EQUAL1;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:9:12: ( '!=' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:9:14: '!='\n {\n match(\"!=\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static <T> OutputMatcher<T> not(OutputMatcher<T> matcher) {\n return OutputMatcherFactory.create(IsNot.not(matcher));\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public static BinaryExpression notEqual(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1);\n }", "public Value restrictToNonAttributes() {\n Value r = new Value(this);\n r.flags &= ~(PROPERTYDATA | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "private DiffProperty() {\n\t\t// No implementation\n\t}", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "@JsonProperty(PROP_NEGATE)\n public boolean getNegate() {\n return _negate;\n }", "public final EObject ruleNotEqualsOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4571:28: ( ( () (otherlv_1= '!=' | otherlv_2= '<>' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:1: ( () (otherlv_1= '!=' | otherlv_2= '<>' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:1: ( () (otherlv_1= '!=' | otherlv_2= '<>' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:2: () (otherlv_1= '!=' | otherlv_2= '<>' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4573:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getNotEqualsOperatorAccess().getNotEqualsOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4578:2: (otherlv_1= '!=' | otherlv_2= '<>' )\r\n int alt55=2;\r\n int LA55_0 = input.LA(1);\r\n\r\n if ( (LA55_0==56) ) {\r\n alt55=1;\r\n }\r\n else if ( (LA55_0==57) ) {\r\n alt55=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 55, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt55) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4578:4: otherlv_1= '!='\r\n {\r\n otherlv_1=(Token)match(input,56,FOLLOW_56_in_ruleNotEqualsOperator10066); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getNotEqualsOperatorAccess().getExclamationMarkEqualsSignKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4583:7: otherlv_2= '<>'\r\n {\r\n otherlv_2=(Token)match(input,57,FOLLOW_57_in_ruleNotEqualsOperator10084); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getNotEqualsOperatorAccess().getLessThanSignGreaterThanSignKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override public String toDot() {\r\n return \"&not; \" + predicate.toDot();\r\n }", "public static <T> PropertyNullSpecification<T> isNull( Property<T> property )\n {\n return new PropertyNullSpecification<>( property( property ) );\n }", "public static UnaryExpression not(Expression expression) {\n return makeUnary(ExpressionType.Not, expression, expression.getType());\n }", "public static <T> Predicate<T> not(Predicate<T> predicate) { return object -> !predicate.test(object); }", "public Value setNotDontDelete() {\n checkNotUnknown();\n if (isNotDontDelete())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTDELETE_ANY;\n r.flags |= ATTR_NOTDONTDELETE;\n return canonicalize(r);\n }", "public static <T> Predicate<T> not(final Predicate<T> predicate) {\n return new Predicate<T>() {\n\n @Override\n public boolean test(T t) {\n return !predicate.test(t);\n }\n\n };\n }", "static <T> Predicate<T> not(Predicate<T> predicate) {\n return predicate.negate();\n }", "public final EObject ruleNegation() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_value_1_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2475:28: ( ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:1: ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:1: ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:2: ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:2: ( (lv_operator_0_0= ruleNotOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2477:1: (lv_operator_0_0= ruleNotOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2477:1: (lv_operator_0_0= ruleNotOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2478:3: lv_operator_0_0= ruleNotOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getNegationAccess().getOperatorNotOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNotOperator_in_ruleNegation5293);\r\n lv_operator_0_0=ruleNotOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getNegationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"NotOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2494:2: ( (lv_value_1_0= ruleBooleanUnit ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2495:1: (lv_value_1_0= ruleBooleanUnit )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2495:1: (lv_value_1_0= ruleBooleanUnit )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2496:3: lv_value_1_0= ruleBooleanUnit\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getNegationAccess().getValueBooleanUnitParserRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleBooleanUnit_in_ruleNegation5314);\r\n lv_value_1_0=ruleBooleanUnit();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getNegationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"BooleanUnit\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void assertNotValue(String elementLocator, String valuePattern);", "@JSProperty(\"opposite\")\n void setOpposite(boolean value);", "public Criteria andStrNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@Test\n public void noEqualsName() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N2\", \"Pic\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(null, \"Pic\", 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "private void setStringPropertyUnlessEqual(StringProperty property, int newValue) {\n String valueAsString = Integer.toString(newValue);\n if (!property.getValue().equals(valueAsString)) property.setValue(valueAsString);\n }", "public NotExpression(BooleanExpression expression, SourceLocation source) throws \r\n\t\t\tIllegalSourceException, IllegalExpressionException {\r\n\t\tsuper(expression, source);\r\n\t}", "public Criteria andOrderSnNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_sn <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "BooleanProperty noValueWarningProperty();", "public static SetExpression notIn(String propertyName, Collection<? extends Object> values) {\n return notIn(propertyName, values.toArray());\n }", "public Criteria andAttribNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPnameNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andIdNotEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"id <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "IGLProperty clone();", "public static void invert(String pName) {\n boolean b = Boolean.parseBoolean(properties.getProperty(pName));\n setProperty(pName, Boolean.toString(!b));\n }", "public ExecutionPolicy not()\n\t{\n\t\treturn new NotRule(this);\n\t}", "public Unary createNot(Position pos, Expr expr) {\n assert (expr.type().isBoolean());\n return createUnary(pos, Unary.NOT, expr);\n }", "public static Expression referenceNotEqual(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1);\n }", "public void notEquals(String message, Object expected, Object actual)\n {\n assertNotEquals(expected, actual, message);\n }", "public Criteria andPriceNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"price <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public AbstractXmlSpecification(Properties p)\n\t\tthrows IncompleteSpecificationException {\n\n\t\tthis.properties = p == null ? new Properties() : (Properties) p.clone();\n\t\tString[] missingPropertyNames =\n\t\t\tcheckForMissingProperties(\n\t\t\t\tthis.properties,\n\t\t\t\tthis.getRequiredPropertyNames());\n\n\t\t// Postcondition\n\t\tif (missingPropertyNames.length != 0) {\n\t\t\tString msg = msgAboutStrings(\"missing properties\", missingPropertyNames); //$NON-NLS-1$\n\t\t\tthrow new IllegalArgumentException(msg);\n\t\t}\n\t}", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "public Criteria andSortNotEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andNameNotEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public ConditionItem not(ConditionItem constraint) {\n\t\treturn blockCondition(ConditionType.NOT, constraint);\n\t}", "public static <T> EqSpecification<T> eq( Property<T> property, T value )\n {\n return new EqSpecification<>( property( property ), value );\n }", "public final EObject ruleNotOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4607:28: ( ( () (otherlv_1= '!' | otherlv_2= 'not' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:1: ( () (otherlv_1= '!' | otherlv_2= 'not' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:1: ( () (otherlv_1= '!' | otherlv_2= 'not' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:2: () (otherlv_1= '!' | otherlv_2= 'not' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4609:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getNotOperatorAccess().getNotOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4614:2: (otherlv_1= '!' | otherlv_2= 'not' )\r\n int alt56=2;\r\n int LA56_0 = input.LA(1);\r\n\r\n if ( (LA56_0==58) ) {\r\n alt56=1;\r\n }\r\n else if ( (LA56_0==59) ) {\r\n alt56=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 56, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt56) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4614:4: otherlv_1= '!'\r\n {\r\n otherlv_1=(Token)match(input,58,FOLLOW_58_in_ruleNotOperator10178); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getNotOperatorAccess().getExclamationMarkKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4619:7: otherlv_2= 'not'\r\n {\r\n otherlv_2=(Token)match(input,59,FOLLOW_59_in_ruleNotOperator10196); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getNotOperatorAccess().getNotKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Test\n public void noEqualsStatus() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 2);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, null);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\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 Criteria andCreatePersonNotEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public IonModification createOpposite() {\n return new IonModification(getType(), name, molFormula, -mass, charge);\n }", "@JSProperty(\"opposite\")\n boolean getOpposite();", "public Criteria andProductIdNotEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"product_id <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public Criteria andIdNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"id <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public final void mNOT_EQUAL2() throws RecognitionException {\n try {\n int _type = NOT_EQUAL2;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:10:12: ( '<>' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:10:14: '<>'\n {\n match(\"<>\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n public HangarMessages addConstraintsAssertFalseMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_AssertFalse_MESSAGE));\n return this;\n }", "@Test\n public void noEqualsPicture() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic2\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", null, 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "public Criteria andOrderTypeNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_type <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "Equality createEquality();", "public Criteria andAttr8NotEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr8 <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andPayTypeNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"pay_type <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andVersionNotEqualToColumn(CoverCommentEntity.Column column) {\n addCriterion(new StringBuilder(\"version <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void setNotIn(boolean notIn) {\n this.notIn = notIn;\n }", "public Criteria andConsigneeNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"consignee <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static Filter not(Filter filter) {\r\n return new NotFilter(filter);\r\n }", "public static UnaryExpression isNotNull(String propertyName) {\n return new UnaryExpression(Operator.NOT_NULL, propertyName);\n }", "public Criteria andIdNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"id <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Value<?> neq(Value<?> v) {\r\n Integer cmp = compare(v);\r\n if (cmp != null) {\r\n return new ValueBoolean(cmp != 0);\r\n }\r\n\r\n return new ValueBoolean(!this.value.equals(v.value));\r\n }", "public Criteria andAttr1NotEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"attr1 <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andDeletedNotEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"deleted <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static <T> LtSpecification<T> lt( Property<T> property, T value )\n {\n return new LtSpecification<>( property( property ), value );\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public boolean isTrivial(String nameProperty) {\n return false;\n }", "@Test\n public void noEqualsAllowedDishes() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(null);\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "public Criteria andShopOrderNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"shop_order <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void addNotEqualFilter(@Nullable String fieldName, @Nullable Object value) {\n addFilter(fieldName, FilterOperator.NOT_EQUAL, value);\n }" ]
[ "0.6918125", "0.6795486", "0.66053283", "0.6583541", "0.598107", "0.5926082", "0.58342975", "0.57962865", "0.5769563", "0.5715042", "0.5702706", "0.56193805", "0.55991757", "0.55860615", "0.5556724", "0.55431217", "0.5479195", "0.5477935", "0.5430671", "0.5430671", "0.5424445", "0.5399298", "0.5395964", "0.5369931", "0.53692806", "0.5365585", "0.535676", "0.5350579", "0.534687", "0.528135", "0.52745914", "0.52250326", "0.52232206", "0.5190037", "0.51890874", "0.51855433", "0.517281", "0.51616675", "0.5146701", "0.5146662", "0.5141948", "0.5139674", "0.51323575", "0.51243114", "0.509717", "0.5081609", "0.50742215", "0.5070321", "0.5064734", "0.5063362", "0.5062738", "0.50513905", "0.5046444", "0.5044949", "0.5043516", "0.50099", "0.5008605", "0.49799296", "0.4971138", "0.4957708", "0.49499407", "0.49467236", "0.4940254", "0.4932361", "0.49311036", "0.492374", "0.4923482", "0.49209297", "0.49195474", "0.48704654", "0.48603204", "0.48538637", "0.4849398", "0.484815", "0.48459572", "0.48303738", "0.48263368", "0.4824814", "0.48226744", "0.4821684", "0.4820775", "0.48162735", "0.4810975", "0.48014796", "0.4798041", "0.47973335", "0.47885665", "0.47866908", "0.47805494", "0.47793996", "0.47782132", "0.4774038", "0.476936", "0.4769111", "0.47687867", "0.47474414", "0.47452626", "0.47451976", "0.47417292", "0.47366807" ]
0.72918415
0
Create a new NOT EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> NeSpecification<T> ne( Property<T> property, Variable variable ) { return new NeSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public static EqualityExpression ne(String propertyName, Object value) {\n return new EqualityExpression(Operator.NOT_EQUAL, propertyName, value);\n }", "public abstract QueryElement addNotEquals(String property, Object value);", "public static NotSpecification not( Specification<Composite> operand )\n {\n return new NotSpecification( operand );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> notEquals(String field, String propertyValue);", "@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> notEquals(EntityField field, String propertyValue);", "public Query notEqual(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.NOTEQUAL), key, value);\n return this;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public static SetExpression notIn(String propertyName, Object[] values) {\n return new SetExpression(Operator.NOT_IN, propertyName, values);\n }", "@Test\n public void testNotEquals2() throws Exception {\n String sql = \"SELECT a from db.g where a != 'value'\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.NE.name());\n verifyElementSymbol(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, \"a\");\n verifyConstant(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, \"value\");\n \n verifySql(\"SELECT a FROM db.g WHERE a <> 'value'\", fileNode);\n }", "public Unary createNot(Expr expr) {\n return createNot(expr.position(), expr);\n }", "Not createNot();", "Not createNot();", "public abstract QueryElement addOrNotEquals(String property, Object value);", "public SeleniumQueryObject not(String selector) {\n\t\treturn NotFunction.not(this, this.elements, selector);\n\t}", "public static <T> PropertyNotNullSpecification<T> isNotNull( Property<T> property )\n {\n return new PropertyNotNullSpecification<>( property( property ) );\n }", "public Units whereNot(UnitSelector.BooleanSelector selector)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!selector.isTrueFor(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static void invert(String pName) {\n boolean b = Boolean.parseBoolean(properties.getProperty(pName));\n setProperty(pName, Boolean.toString(!b));\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "public Expression differentiate(String var) {\n return new Neg(new Mult(new Sin(super.getExpression()), super.getExpression().differentiate(var)));\n }", "<T> Builder setIgnoreReadOnly(Property<T> property, T value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "public Unary createNot(Position pos, Expr expr) {\n assert (expr.type().isBoolean());\n return createUnary(pos, Unary.NOT, expr);\n }", "public void assertNotValue(String elementLocator, String valuePattern);", "public static RandomVariable createNegationRV(RandomVariable rv) {\n RandomVariable negationgRv = new RandomVariable(2, \"not_\"+rv.getName());\n RVValues.addNegationRV(negationgRv, rv);\n return negationgRv;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LtSpecification<T> lt( Property<T> property, Variable variable )\n {\n return new LtSpecification( property( property ), variable );\n }", "public static SetExpression notIn(String propertyName, Collection<? extends Object> values) {\n return notIn(propertyName, values.toArray());\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "public static Predicate not(Predicate predicate)\n {\n return new LogicPredicate(Type.NOT, predicate);\n }", "public final void mNOT_EQUAL1() throws RecognitionException {\n try {\n int _type = NOT_EQUAL1;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:9:12: ( '!=' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:9:14: '!='\n {\n match(\"!=\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public Criteria andPnameNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"pname <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public ConditionItem not(ConditionItem constraint) {\n\t\treturn blockCondition(ConditionType.NOT, constraint);\n\t}", "public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}", "public final void mNOT_EQUALS() throws RecognitionException {\n try {\n int _type = NOT_EQUALS;\n // /Users/benjamincoe/HackWars/C.g:204:12: ( '!=' )\n // /Users/benjamincoe/HackWars/C.g:204:14: '!='\n {\n match(\"!=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void verifyNoMatching(AcProperty e)\n {\n }", "public SingleRuleBuilder orNot(String predicate, String... variables) { return or(true, predicate, variables); }", "private void setStringPropertyUnlessEqual(StringProperty property, String newValue) {\n if (!property.getValue().equals(newValue)) property.setValue(newValue);\n }", "private Copy prepareCopyForHeaderMetaData(String variableName, String property) {\n\t\tCopy copy = new Copy();\n\t\tFromSpec from = new FromSpec();\n\t\tfrom.setType(fromTypes.VARIABLE);\n\t\tfrom.setPart(\"payload\");\n\t\tfrom.setVariableName(\"input\");\n\t\tfrom.setQueryLanguage(\"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\");\n\t\tfrom.setQuery(\"<![CDATA[tns:\" + property + \"]]>\");\n\t\tcopy.setFromSpec(from);\n\t\t\n\t\tToSpec to = new ToSpec();\n\t\tto.setType(toTypes.VARIABLE);\n\t\tto.setVariableName(variableName);\n\t\tto.setHeader(property);\n\t\tcopy.setToSpec(to);\n\t\t\n\t\treturn copy;\n\t}", "@Test\n void shouldNotRenderVariableInside() throws Exception {\n MatcherAssert.assertThat(\n new Variable(\n new SquareIndicate()\n ).render(\n \"[[#2]][[1]][[/2]][[^4]][[5]][[/4]] [[#7]][[6]][[>9]][[/7]]\",\n new MapOf<>(\n new MapEntry<>(\"1\", \"A\"),\n new MapEntry<>(\"5\", \"B\"),\n new MapEntry<>(\"6\", \"C\")\n )\n ),\n Matchers.is(\n \"[[#2]][[1]][[/2]][[^4]][[5]][[/4]] [[#7]][[6]][[>9]][[/7]]\"\n )\n );\n }", "@Override public String toDot() {\r\n return \"&not; \" + predicate.toDot();\r\n }", "public Criteria andNameNotEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"`name` <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private Proof introduceNotExists(Variable x, Proof p) {\n Expression a = ((Negate) p.lastExpr()).negative;\n Expression e = exists(x, a); //∃x.a\n Proof impossible = impossibility(a, e); //a -> ¬a -> ¬∃x.a\n Proof mpf = mpBack(swapHypotesisImpl(impossible), p); //a -> ¬∃x.a\n Proof rex = ruleExists(x, mpf); //∃x.a -> ¬∃x.a\n return faxm9Convert(atoAImpl(e), rex); //¬∃x.a\n }", "public static UnaryExpression not(Expression expression, Method method) {\n return makeUnary(ExpressionType.Not, expression, null, method);\n }", "public static BinaryExpression notEqual(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1);\n }", "public Query not() {\n builder.negateQuery();\n return this;\n }", "public NotExpression(BooleanExpression expression, SourceLocation source) throws \r\n\t\t\tIllegalSourceException, IllegalExpressionException {\r\n\t\tsuper(expression, source);\r\n\t}", "public boolean isTrivial(String nameProperty) {\n return false;\n }", "public static UnaryExpression not(Expression expression) {\n return makeUnary(ExpressionType.Not, expression, expression.getType());\n }", "@Test\n public void unnamedPropertyRuleInExistingIndex() {\n builder\n .indexRule(\"nt:base\")\n .property(\"foo\")\n // remove \"name\" property explicitly\n .getBuilderTree().removeProperty(\"name\");\n NodeState initialIndexState = builder.build();\n\n // Use initial index def to add some other property rule - this should work\n new LuceneIndexDefinitionBuilder(initialIndexState.builder())\n .indexRule(\"nt:base\")\n .property(\"bar\");\n }", "@Override\n\tpublic void visit(NotExpression arg0) {\n\t\t\n\t}", "public static UnaryExpression isNotNull(String propertyName) {\n return new UnaryExpression(Operator.NOT_NULL, propertyName);\n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public static BinaryExpression notEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1, liftToNull, method);\n }", "public Criteria andOrderSnNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"order_sn <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andCreatePersonNotEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"create_person <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public void assertNotAttribute(final String elementLocator, final String attributeName, final String textPattern);", "@Override\n public Expression differentiate(String var) {\n return new Minus(getExpression1().differentiate(var), getExpression2().differentiate(var));\n }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public static Expression referenceNotEqual(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1);\n }", "public static TextP notContaining(final String value) {\n return new TextP(Text.notContaining, value);\n }", "@Override\n public VariableNonRequirement computeVariableNonRequirement(IQTree child) {\n return VariableNonRequirement.of(substitution.getDomain());\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> doesNotContain(String field, String propertyValue);", "public final EObject ruleNegation() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_value_1_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2475:28: ( ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:1: ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:1: ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:2: ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleBooleanUnit ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2476:2: ( (lv_operator_0_0= ruleNotOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2477:1: (lv_operator_0_0= ruleNotOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2477:1: (lv_operator_0_0= ruleNotOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2478:3: lv_operator_0_0= ruleNotOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getNegationAccess().getOperatorNotOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNotOperator_in_ruleNegation5293);\r\n lv_operator_0_0=ruleNotOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getNegationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"NotOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2494:2: ( (lv_value_1_0= ruleBooleanUnit ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2495:1: (lv_value_1_0= ruleBooleanUnit )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2495:1: (lv_value_1_0= ruleBooleanUnit )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2496:3: lv_value_1_0= ruleBooleanUnit\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getNegationAccess().getValueBooleanUnitParserRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleBooleanUnit_in_ruleNegation5314);\r\n lv_value_1_0=ruleBooleanUnit();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getNegationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"BooleanUnit\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void addNotEqualFilter(@Nullable String fieldName, @Nullable Object value) {\n addFilter(fieldName, FilterOperator.NOT_EQUAL, value);\n }", "public ExecutionPolicy not()\n\t{\n\t\treturn new NotRule(this);\n\t}", "@JsonProperty(PROP_NEGATE)\n public boolean getNegate() {\n return _negate;\n }", "public void notEquals(String message, Object expected, Object actual)\n {\n assertNotEquals(expected, actual, message);\n }", "public Value makeNonPolymorphic() {\n if (var == null)\n return this;\n Value r = new Value(this);\n r.var = null;\n r.flags &= ~(PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }", "public Criteria andStrNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static <T> Predicate<T> not(final Predicate<T> predicate) {\n return new Predicate<T>() {\n\n @Override\n public boolean test(T t) {\n return !predicate.test(t);\n }\n\n };\n }", "public void setprop_no(String value) {\n setNamedWhereClauseParam(\"prop_no\", value);\n }", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "public Criteria andAttribNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public static <T> OutputMatcher<T> not(OutputMatcher<T> matcher) {\n return OutputMatcherFactory.create(IsNot.not(matcher));\n }", "public void assertNotAttribute(final String attributeLocator, final String textPattern);", "static <T> Predicate<T> not(Predicate<T> predicate) {\n return predicate.negate();\n }", "public void assertNotEval(final String expression, final String textPattern);", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "@Override\n public Expression differentiate(String var) {\n return new Minus(getA().differentiate(var), getB().differentiate(var));\n }", "public static <T> Predicate<T> not(Predicate<T> predicate) { return object -> !predicate.test(object); }", "public final EObject ruleNotOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4607:28: ( ( () (otherlv_1= '!' | otherlv_2= 'not' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:1: ( () (otherlv_1= '!' | otherlv_2= 'not' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:1: ( () (otherlv_1= '!' | otherlv_2= 'not' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:2: () (otherlv_1= '!' | otherlv_2= 'not' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4608:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4609:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getNotOperatorAccess().getNotOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4614:2: (otherlv_1= '!' | otherlv_2= 'not' )\r\n int alt56=2;\r\n int LA56_0 = input.LA(1);\r\n\r\n if ( (LA56_0==58) ) {\r\n alt56=1;\r\n }\r\n else if ( (LA56_0==59) ) {\r\n alt56=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 56, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt56) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4614:4: otherlv_1= '!'\r\n {\r\n otherlv_1=(Token)match(input,58,FOLLOW_58_in_ruleNotOperator10178); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getNotOperatorAccess().getExclamationMarkKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4619:7: otherlv_2= 'not'\r\n {\r\n otherlv_2=(Token)match(input,59,FOLLOW_59_in_ruleNotOperator10196); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getNotOperatorAccess().getNotKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override\n public ActualProperties visitDelete(DeleteNode node, List<ActualProperties> inputProperties)\n {\n return Iterables.getOnlyElement(inputProperties).translateVariable(symbol -> Optional.empty());\n }", "public void setNotIn(boolean notIn) {\n this.notIn = notIn;\n }", "private Proof subNot(Expression a, Proof nb, java.util.function.Function<Proof, Proof> ab) {\n Proof hypoAssume = hypotesisAssume(a, ab); //|- (a -> b)\n return contraTwice(hypoAssume, nb); //|- !a\n }", "@Test\n public void noEqualsName() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N2\", \"Pic\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(null, \"Pic\", 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "public final EObject ruleNotEqualsOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4571:28: ( ( () (otherlv_1= '!=' | otherlv_2= '<>' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:1: ( () (otherlv_1= '!=' | otherlv_2= '<>' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:1: ( () (otherlv_1= '!=' | otherlv_2= '<>' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:2: () (otherlv_1= '!=' | otherlv_2= '<>' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4572:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4573:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getNotEqualsOperatorAccess().getNotEqualsOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4578:2: (otherlv_1= '!=' | otherlv_2= '<>' )\r\n int alt55=2;\r\n int LA55_0 = input.LA(1);\r\n\r\n if ( (LA55_0==56) ) {\r\n alt55=1;\r\n }\r\n else if ( (LA55_0==57) ) {\r\n alt55=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 55, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt55) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4578:4: otherlv_1= '!='\r\n {\r\n otherlv_1=(Token)match(input,56,FOLLOW_56_in_ruleNotEqualsOperator10066); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getNotEqualsOperatorAccess().getExclamationMarkEqualsSignKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4583:7: otherlv_2= '<>'\r\n {\r\n otherlv_2=(Token)match(input,57,FOLLOW_57_in_ruleNotEqualsOperator10084); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getNotEqualsOperatorAccess().getLessThanSignGreaterThanSignKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void assertNotSelectedValue(final String selectLocator, final String valuePattern);", "public Criteria andCnameNotEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"cname <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "public boolean setNoDialog(boolean negated) {\n if (negated)\n value = variable.F;\n else\n value = variable.T;\n //store the name of the variable in the selectedVars list (used in model checker)\n selectedVars.add(name);\n // for each clause in clist that contains not this-term\n\n Iterator i = cnfClause.clist.iterator();\n while ( i.hasNext() ) {\n cnfClause c = ( cnfClause ) i.next();\n if ( c.hasNegTerm( !negated, ( variable )this ) ) {\n if ( c.isUnitOpen() != null )\n cnfClause.stack.push( c );\n else\n if ( c.isViolated() ) {\n cnfClause.ctStr += ((node)c.formula).toString().replace(\"_\",\"\") + \"\\n\";\n return false;\n /*grammar.dumpUserSelections();\n JOptionPane.showMessageDialog( null,\n \"model inconsistency detected -- see stderr for more information\",\n \"Error!\", JOptionPane.ERROR_MESSAGE );\n System.exit(1);*/\n }\n\n }\n }\n return true;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> doesNotContainIgnoreCase(String field, String propertyValue);", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public final void mT67() throws RecognitionException {\n try {\n int _type = T67;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:65:5: ( '!=' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:65:7: '!='\n {\n match(\"!=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "IGLProperty clone();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> notIn(String field, String... values);", "public Not(Condition condition) {\n\t\tsuper();\n\t\tif (condition == null)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Illegal 'condition' argument in Not(Condition): \"\n\t\t\t\t\t\t\t+ condition);\n\t\tcondition.follow(this);\n\t\tassert invariant() : \"Illegal state in not(Condition)\";\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> notIn(EntityField field, String... values);", "@JSProperty(\"opposite\")\n void setOpposite(boolean value);" ]
[ "0.6572069", "0.6445209", "0.62922496", "0.6233685", "0.587418", "0.56004775", "0.5578522", "0.55630165", "0.5504431", "0.5457644", "0.5445301", "0.5319895", "0.53065515", "0.53065515", "0.52266484", "0.51872265", "0.5166039", "0.51437634", "0.514259", "0.5138324", "0.51012367", "0.508879", "0.5052475", "0.5036317", "0.5034923", "0.50159097", "0.5006628", "0.500589", "0.50038856", "0.5001171", "0.49794126", "0.49704376", "0.4966047", "0.49640083", "0.49549025", "0.49276125", "0.4926163", "0.4916459", "0.4908888", "0.48980695", "0.4885349", "0.4882792", "0.48735532", "0.4871844", "0.48475042", "0.48450214", "0.4812026", "0.48061654", "0.47961813", "0.47773883", "0.4763462", "0.47575435", "0.47573644", "0.47559047", "0.47511598", "0.47328967", "0.47312728", "0.47227815", "0.47155407", "0.47140607", "0.47073427", "0.4681394", "0.4676233", "0.46761623", "0.4672338", "0.46706632", "0.4669942", "0.46669644", "0.4664436", "0.4661351", "0.46598953", "0.46530765", "0.465122", "0.4643766", "0.46389586", "0.46350458", "0.46302268", "0.46195444", "0.4609287", "0.46009043", "0.45997223", "0.45941624", "0.45916724", "0.4591271", "0.45848253", "0.4583361", "0.45726633", "0.4568312", "0.4567803", "0.456737", "0.45668507", "0.45551184", "0.4551469", "0.45437098", "0.4530415", "0.45262927", "0.45248145", "0.45212686", "0.45180848", "0.4505685" ]
0.7331027
0
Create a new REGULAR EXPRESSION specification for a Property.
public static MatchesSpecification matches( Property<String> property, String regexp ) { return new MatchesSpecification( property( property ), regexp ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public PropertySpecBuilder<T> validator(String regex)\n {\n return validator(Pattern.compile(regex));\n }", "PropertyRule createPropertyRule();", "PropertyCallExp createPropertyCallExp();", "public final ManchesterOWLSyntaxAutoComplete.propertyExpression_return propertyExpression() {\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.propertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER6 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE7 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression8 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:171:1:\n // ( IDENTIFIER | ENTITY_REFERENCE | complexPropertyExpression )\n int alt8 = 3;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt8 = 1;\n }\n break;\n case ENTITY_REFERENCE: {\n alt8 = 2;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt8 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 8, 0, input);\n throw nvae;\n }\n switch (alt8) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:172:7:\n // IDENTIFIER\n {\n IDENTIFIER6 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_propertyExpression462);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER6.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:176:9:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE7 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_propertyExpression480);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE7.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:180:7:\n // complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_propertyExpression494);\n complexPropertyExpression8 = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable()\n .match(complexPropertyExpression8 != null ? complexPropertyExpression8.node\n .getText() : null));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\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 }", "Property createProperty();", "Expression createExpression();", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "public PropertySpecBuilder<T> validator(Pattern pattern)\n {\n Preconditions.checkArgument(validationMethod == null, \"validation method already set\");\n\n validationRegex = pattern;\n\n validationMethod = (input) -> {\n Matcher m = pattern.matcher(input.toString());\n return m.find();\n };\n\n return this;\n }", "ExprRule createExprRule();", "public static Term createRegExp(Expression exp) {\r\n\t\tTerm term = Term.function(REGEX, exp);\r\n\t\treturn term;\r\n\t}", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "public static <T> GeSpecification<T> ge( Property<T> property, T value )\n {\n return new GeSpecification<>( property( property ), value );\n }", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\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 static MemberExpression property(Expression expression, PropertyInfo property) { throw Extensions.todo(); }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "RegExConstraint createRegExConstraint();", "QueryElement addLikeWithWildcardSetting(String property, String value);", "FullExpression createFullExpression();", "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}", "StringExpression createStringExpression();", "PropertyType createPropertyType();", "public BodyMatchesRegexAnalyzer(BodyRegexProperties properties) {\n super(properties);\n this.pattern = Pattern.compile(properties.getPattern());\n }", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public static MemberExpression property(Expression expression, String name) { throw Extensions.todo(); }", "public final CQLParser.propertySelection_return propertySelection() throws RecognitionException {\n CQLParser.propertySelection_return retval = new CQLParser.propertySelection_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token char_literal79=null;\n Token char_literal80=null;\n Token char_literal81=null;\n List list_rf=null;\n CQLParser.propertyDefinition_return f = null;\n\n RuleReturnScope rf = null;\n Object char_literal79_tree=null;\n Object char_literal80_tree=null;\n Object char_literal81_tree=null;\n RewriteRuleTokenStream stream_117=new RewriteRuleTokenStream(adaptor,\"token 117\");\n RewriteRuleTokenStream stream_115=new RewriteRuleTokenStream(adaptor,\"token 115\");\n RewriteRuleTokenStream stream_118=new RewriteRuleTokenStream(adaptor,\"token 118\");\n RewriteRuleSubtreeStream stream_propertyDefinition=new RewriteRuleSubtreeStream(adaptor,\"rule propertyDefinition\");\n errorMessageStack.push(\"RESULT properties definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:340:2: ( '[' f= propertyDefinition ( ',' rf+= propertyDefinition )* ']' -> ^( RESULT_PROPERTIES $f ( $rf)* ) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:340:4: '[' f= propertyDefinition ( ',' rf+= propertyDefinition )* ']'\n {\n char_literal79=(Token)match(input,117,FOLLOW_117_in_propertySelection1567); \n stream_117.add(char_literal79);\n\n pushFollow(FOLLOW_propertyDefinition_in_propertySelection1571);\n f=propertyDefinition();\n\n state._fsp--;\n\n stream_propertyDefinition.add(f.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:340:29: ( ',' rf+= propertyDefinition )*\n loop20:\n do {\n int alt20=2;\n int LA20_0 = input.LA(1);\n\n if ( (LA20_0==115) ) {\n alt20=1;\n }\n\n\n switch (alt20) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:340:30: ',' rf+= propertyDefinition\n \t {\n \t char_literal80=(Token)match(input,115,FOLLOW_115_in_propertySelection1574); \n \t stream_115.add(char_literal80);\n\n \t pushFollow(FOLLOW_propertyDefinition_in_propertySelection1578);\n \t rf=propertyDefinition();\n\n \t state._fsp--;\n\n \t stream_propertyDefinition.add(rf.getTree());\n \t if (list_rf==null) list_rf=new ArrayList();\n \t list_rf.add(rf.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop20;\n }\n } while (true);\n\n char_literal81=(Token)match(input,118,FOLLOW_118_in_propertySelection1582); \n stream_118.add(char_literal81);\n\n\n\n // AST REWRITE\n // elements: rf, f\n // token labels: \n // rule labels: f, retval\n // token list labels: \n // rule list labels: rf\n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_f=new RewriteRuleSubtreeStream(adaptor,\"rule f\",f!=null?f.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_rf=new RewriteRuleSubtreeStream(adaptor,\"token rf\",list_rf);\n root_0 = (Object)adaptor.nil();\n // 341:3: -> ^( RESULT_PROPERTIES $f ( $rf)* )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:341:6: ^( RESULT_PROPERTIES $f ( $rf)* )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(RESULT_PROPERTIES, \"RESULT_PROPERTIES\"), root_1);\n\n adaptor.addChild(root_1, stream_f.nextTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:341:29: ( $rf)*\n while ( stream_rf.hasNext() ) {\n adaptor.addChild(root_1, stream_rf.nextTree());\n\n }\n stream_rf.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "public static MemberExpression property(Expression expression, Class type, String name) { throw Extensions.todo(); }", "protected Expression buildExpression(RestrictExpression restrictor,String pathSpec){\n\t\tverifyParameters(restrictor, pathSpec);\n\n\t\tObject value = valueTranslator(restrictor.getValue());\t//For most cases we will need this value\n\t\t//Check all known operators, try to handle them\n\t\tswitch (restrictor.getOperator()){\n\t\tcase EQUAL_TO:\n\t\t\treturn ExpressionFactory.matchExp(pathSpec, value);\n\t\tcase NOT_EQUAL_TO:\n\t\t\treturn ExpressionFactory.noMatchExp(pathSpec, value);\n\t\tcase LESS_THAN:\n\t\t\treturn ExpressionFactory.lessExp(pathSpec, value);\n\t\tcase GREATER_THAN:\n\t\t\treturn ExpressionFactory.greaterExp(pathSpec, value);\n\t\tcase LESS_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.lessOrEqualExp(pathSpec, value);\n\t\tcase GREATER_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.greaterOrEqualExp(pathSpec, value);\n\t\tcase BETWEEN:\n\t\t\tif (restrictor.getValues().size()==2){\n\t\t\t\tIterator<Object> iter = restrictor.getValues().iterator();\n\t\t\t\treturn ExpressionFactory.betweenExp(pathSpec, valueTranslator(iter.next()), valueTranslator(iter.next()));\n\t\t\t}\n\t\tcase IN:\n\t\t\treturn ExpressionFactory.inExp(pathSpec, translateValues(restrictor.getValues()));\n\t\tcase LIKE:\n\t\t\treturn ExpressionFactory.likeExp(pathSpec, value);\n\t\tdefault:\n\t\t\treturn ExpressionFactory.expFalse();\n\t\t}\n\t}", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "private static Op compilePattern(PropertyFunctionRegistry registry, BasicPattern pattern, Context context)\n {\n \n List<Triple> propertyFunctionTriples = new ArrayList<>() ; // Property functions seen\n BasicPattern triples = new BasicPattern(pattern) ; // A copy of all triples (later, it is mutated)\n \n // Find the triples invoking property functions, and those not.\n findPropertyFunctions(context, pattern, registry, propertyFunctionTriples) ;\n \n if ( propertyFunctionTriples.size() == 0 )\n //No property functions.\n return new OpBGP(pattern) ;\n \n Map<Triple, PropertyFunctionInstance> pfInvocations = new HashMap<>() ; // Map triple => property function instance\n // Removes triples of list arguments. This mutates 'triples'\n findPropertyFunctionArgs(context, triples, propertyFunctionTriples, pfInvocations) ;\n \n // Now make the OpSequence structure.\n Op op = makeStages(triples, pfInvocations) ;\n return op ;\n }", "public static MemberExpression property(Expression expression, Method method) { throw Extensions.todo(); }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "Expr createExpr();", "public RegularExpression() {\n }", "NumericExpression createNumericExpression();", "public RuleRegExp(String ruleName, String regExp) {\n this.ruleName = ruleName;\n pattern = Pattern.compile(regExp);\n }", "JavaExpression createJavaExpression();", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}", "public Query regEx(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.REGEX), key, value);\n return this;\n }", "PrimitiveProperty createPrimitiveProperty();", "public static Property property(Expression expression, String name) {\n\t\treturn Property.create(expression, name);\n\t}", "public interface UnaryBooleanExpressionProperty extends BooleanExpressionProperty<BooleanExpression>, UnaryProperty<BooleanExpressionProperty<BooleanExpression>, BooleanExpression> {\n}", "public void changePropery(String property, String newValueExpr) {\n \t\n\t\tif(NAME_PROPERTY.equals(property)){\n\t\t\tchangeNameProperty(newValueExpr);\n\t\t}\n\t\tif(MOBILE_PROPERTY.equals(property)){\n\t\t\tchangeMobileProperty(newValueExpr);\n\t\t}\n\t\tif(EMAIL_PROPERTY.equals(property)){\n\t\t\tchangeEmailProperty(newValueExpr);\n\t\t}\n\t\tif(FOUNDED_PROPERTY.equals(property)){\n\t\t\tchangeFoundedProperty(newValueExpr);\n\t\t}\n\n \n\t}", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;", "public PropertiesQDoxPropertyExpander() {\n super();\n }", "public PathExpressionIF createPathExpression();", "public final ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression() {\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER9 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE10 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return p = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:190:1:\n // ( ^( INVERSE_OBJECT_PROPERTY_EXPRESSION p=\n // complexPropertyExpression ) | ^(\n // INVERSE_OBJECT_PROPERTY_EXPRESSION IDENTIFIER ) | ^(\n // INVERSE_OBJECT_PROPERTY_EXPRESSION ENTITY_REFERENCE ) )\n int alt9 = 3;\n int LA9_0 = input.LA(1);\n if (LA9_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n int LA9_1 = input.LA(2);\n if (LA9_1 == DOWN) {\n switch (input.LA(3)) {\n case IDENTIFIER: {\n alt9 = 2;\n }\n break;\n case ENTITY_REFERENCE: {\n alt9 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt9 = 1;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 9,\n 2, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 9, 1, input);\n throw nvae;\n }\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 9, 0, input);\n throw nvae;\n }\n switch (alt9) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:191:2:\n // ^( INVERSE_OBJECT_PROPERTY_EXPRESSION p=\n // complexPropertyExpression )\n {\n match(input, INVERSE_OBJECT_PROPERTY_EXPRESSION,\n FOLLOW_INVERSE_OBJECT_PROPERTY_EXPRESSION_in_complexPropertyExpression528);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n pushFollow(FOLLOW_complexPropertyExpression_in_complexPropertyExpression534);\n p = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(p.node\n .getCompletions());\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:195:4:\n // ^( INVERSE_OBJECT_PROPERTY_EXPRESSION IDENTIFIER )\n {\n match(input, INVERSE_OBJECT_PROPERTY_EXPRESSION,\n FOLLOW_INVERSE_OBJECT_PROPERTY_EXPRESSION_in_complexPropertyExpression544);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n IDENTIFIER9 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_complexPropertyExpression546);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER9.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:199:4:\n // ^( INVERSE_OBJECT_PROPERTY_EXPRESSION ENTITY_REFERENCE )\n {\n match(input, INVERSE_OBJECT_PROPERTY_EXPRESSION,\n FOLLOW_INVERSE_OBJECT_PROPERTY_EXPRESSION_in_complexPropertyExpression556);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n ENTITY_REFERENCE10 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_complexPropertyExpression558);\n if (state.failed) {\n return retval;\n }\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE10.getText()));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "public static IndexExpression property(Expression expression, PropertyInfo property, Expression[] arguments) { throw Extensions.todo(); }", "protected abstract Property createProperty(String key, Object value);", "public PatternBuilderResult build(String specification) throws PatternBuilderException {\n StringBuilder patternStringBuilder = new StringBuilder();\n Matcher captureTokenMatcher = pattern.matcher(specification);\n List<String> locations = new ArrayList<>();\n\n int charLoc = 0;\n while(captureTokenMatcher.find()) {\n String match = captureTokenMatcher.group(1);\n\n String regexReplacement = genRegex(captureTokenMatcher.end(), match, specification);\n String literalReplacement = escapeLiteralRegexChars(specification.substring(charLoc, captureTokenMatcher.start()));\n\n patternStringBuilder\n .append(literalReplacement)\n .append(regexReplacement);\n\n locations.add(match);\n\n charLoc = captureTokenMatcher.end();\n\n\n }\n\n patternStringBuilder\n .append(escapeLiteralRegexChars(specification.substring(charLoc, specification.length())));\n\n return new PatternBuilderResult(\n compilePattern(patternStringBuilder.toString()),\n ensureUniqueIndex(locations));\n\n }", "public static IndexExpression property(Expression expression, PropertyInfo property, Iterable<Expression> arguments) { throw Extensions.todo(); }", "ExprListRule createExprListRule();", "public Property() {}", "public static <T> GtSpecification<T> gt( Property<T> property, T value )\n {\n return new GtSpecification<>( property( property ), value );\n }", "ExpOperand createExpOperand();", "StringLiteralExp createStringLiteralExp();", "private String genRegex(int charLoc, String captureToken, String specification) throws PatternBuilderException {\n\n //Remove leading digits from string before retrieving capture type\n String strippedLeadingDigits = StringUtil.dropWhile(Character::isDigit,captureToken);\n\n switch (CaptureType.getType(strippedLeadingDigits)) {\n case DEFAULT:\n return genNonGreedyRegex(charLoc,specification,\n RegexPatterns.EOL_CAPTURE.getPattern(),\n RegexPatterns.NON_GREEDY.getPattern());\n case GREEDY:\n return RegexPatterns.GREEDY.getPattern();\n case WHITESPACE:\n return genWhiteSpaceRegex(\n Integer.parseInt(\n StringUtil.dropWhile(Character::isAlphabetic, strippedLeadingDigits)\n ),\n RegexPatterns.VARIABLE_WHITESPACE.getPattern(),\n RegexPatterns.ZERO_WHITESPACE.getPattern());\n\n case UNKNOWN: default:\n throw new PatternBuilderException(String.format(\"Unable to generate regex from %s\", captureToken));\n }\n }", "private FormatFilter(final Function<ImageReaderWriterSpi, String[]> property) {\n this.property = property;\n }", "public RegexPatternBuilder (String regex)\n {\n this.regex = regex;\n }", "public T addRule(final Property property, final String value) {\n addRule(StyleManager.stringifyEnum(property) + \": \" + value + \";\");\n return (T)this;\n }", "public Value makePolymorphic(ObjectProperty prop) {\n Value r = new Value();\n r.var = prop;\n r.flags |= flags & (ATTR | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR | EXTENDEDSCOPE);\n if (isMaybePresentData())\n r.flags |= PRESENT_DATA;\n if (isMaybePresentAccessor())\n r.flags |= PRESENT_ACCESSOR;\n return canonicalize(r);\n }", "XExpr createXExpr();", "RealLiteralExp createRealLiteralExp();", "A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );", "RequireExprsRule createRequireExprsRule();", "public abstract QueryElement addLike(String property, Object value);", "private IExpressionElement createExpression() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IVariant.ELEMENT_TYPE, null, null);\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 abstract QueryElement addOrLike(String property, Object value);", "PropertyReference createPropertyReference();", "@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }", "XExpression getExpression();", "interface Matcher<R extends OWLPropertyRange, F extends R, P extends OWLPropertyExpression<R, P>> {\n boolean isMatch(OWLClassExpression c, P p, R f);\n\n boolean isMatch(OWLClassExpression c, P p, R f, boolean direct);\n\n /** Perform a recursive search, adding nodes that match. If direct is true\n * only add nodes if they have no subs that match\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of leave nodes */\n NodeSet<F> getLeaves(OWLClassExpression c, P p, R start, boolean direct);\n\n /** Perform a search on the direct subs of start, adding nodes that match. If\n * direct is false then recurse into descendants of start\n * \n * @param c\n * class\n * @param p\n * property\n * @param start\n * start\n * @param direct\n * direct\n * @return set of root nodes */\n NodeSet<F> getRoots(OWLClassExpression c, P p, R start, boolean direct);\n}", "public JavaJRExpressionFactoryImpl()\n {\n super();\n }", "public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }", "public PropertySelector createChildSelector(Property property) {\n return new PropertySelector(this, property);\n }", "void generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public static IndexExpression Property(Expression expression, String name, Expression[] arguments) { throw Extensions.todo(); }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public Expression(IExpressionPart expressionPart)\r\n\t{\r\n\t\tthis.expressionPart = expressionPart;\r\n\t}", "public Property() {\n this(0, 0, 0, 0);\n }", "public final ManchesterOWLSyntaxAutoComplete.expression_return expression() {\n ManchesterOWLSyntaxAutoComplete.expression_return retval = new ManchesterOWLSyntaxAutoComplete.expression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.conjunction_return c = null;\n ManchesterOWLSyntaxAutoComplete.expression_return chainItem = null;\n ManchesterOWLSyntaxAutoComplete.conjunction_return conj = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return cpe = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:106:2:\n // ( ^( DISJUNCTION (c= conjunction )+ ) | ^( PROPERTY_CHAIN\n // (chainItem= expression )+ ) | conj= conjunction | cpe=\n // complexPropertyExpression )\n int alt4 = 4;\n switch (input.LA(1)) {\n case DISJUNCTION: {\n alt4 = 1;\n }\n break;\n case PROPERTY_CHAIN: {\n alt4 = 2;\n }\n break;\n case IDENTIFIER:\n case ENTITY_REFERENCE:\n case CONJUNCTION:\n case NEGATED_EXPRESSION:\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt4 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt4 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n switch (alt4) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:4:\n // ^( DISJUNCTION (c= conjunction )+ )\n {\n match(input, DISJUNCTION, FOLLOW_DISJUNCTION_in_expression226);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:19:\n // (c= conjunction )+\n int cnt2 = 0;\n loop2: do {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (LA2_0 >= IDENTIFIER && LA2_0 <= ENTITY_REFERENCE\n || LA2_0 == CONJUNCTION || LA2_0 == NEGATED_EXPRESSION\n || LA2_0 >= SOME_RESTRICTION && LA2_0 <= ONE_OF) {\n alt2 = 1;\n }\n switch (alt2) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:21:\n // c= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression235);\n c = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(c.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt2 >= 1) {\n break loop2;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:6:\n // ^( PROPERTY_CHAIN (chainItem= expression )+ )\n {\n match(input, PROPERTY_CHAIN, FOLLOW_PROPERTY_CHAIN_in_expression248);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:24:\n // (chainItem= expression )+\n int cnt3 = 0;\n loop3: do {\n int alt3 = 2;\n int LA3_0 = input.LA(1);\n if (LA3_0 >= IDENTIFIER && LA3_0 <= ENTITY_REFERENCE\n || LA3_0 >= DISJUNCTION && LA3_0 <= NEGATED_EXPRESSION\n || LA3_0 >= SOME_RESTRICTION && LA3_0 <= ONE_OF\n || LA3_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt3 = 1;\n }\n switch (alt3) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:25:\n // chainItem= expression\n {\n pushFollow(FOLLOW_expression_in_expression256);\n chainItem = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(chainItem.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt3 >= 1) {\n break loop3;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:114:5:\n // conj= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression276);\n conj = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(conj.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:118:5:\n // cpe= complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_expression291);\n cpe = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(cpe.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "private String getNewPropertyLine(String lineToModify, String propNameToFind, String newPropValue) {\n // Look for the property (even if its commented out) and ignore spaces before and after the property name.\n // We also don't care what the value was (doesn't matter what is after the = character).\n Matcher m = Pattern.compile(\"#? *\" + propNameToFind + \" *=.*\").matcher(lineToModify);\n if (m.matches()) {\n if (newPropValue != null) {\n lineToModify = m.replaceAll(propNameToFind + \"=\" + newPropValue);\n } else {\n lineToModify = m.replaceAll(\"#\" + propNameToFind + \"=\");\n }\n }\n return lineToModify;\n }", "public static void addOWLLiteralProperty(OWLIndividual owlIndi, OWLLiteral value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(value.getLiteral(), value.getLang());\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "ExpressionInOcl createExpressionInOcl();", "public SimplePropertyCommand(Value property, String newValue) {\n this.property = property;\n this.newValue = newValue;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "public interface PropertyDefinition {\n\n String getLocalName();\n\n FormatConverter getConverter();\n\n List<String> getValues();\n\n boolean isMultiValued();\n\n}", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "BooleanExpression createBooleanExpression();" ]
[ "0.5935453", "0.5922198", "0.5867564", "0.58294725", "0.5737262", "0.5695901", "0.5663677", "0.56270343", "0.5518026", "0.53736544", "0.5314082", "0.52916175", "0.5275117", "0.52391243", "0.52068007", "0.5177493", "0.51199454", "0.50735027", "0.5055575", "0.50360006", "0.5015016", "0.5003849", "0.4995406", "0.49794263", "0.49771792", "0.49683794", "0.49587327", "0.49411952", "0.49402553", "0.4928041", "0.49247137", "0.49238932", "0.4907476", "0.48968953", "0.4875596", "0.48747468", "0.48680913", "0.48624122", "0.4852277", "0.48463058", "0.48226425", "0.4798624", "0.47710314", "0.47448212", "0.47222805", "0.47199446", "0.47190332", "0.4718297", "0.469158", "0.46914968", "0.46863508", "0.46695656", "0.4656736", "0.4623482", "0.46218964", "0.46176258", "0.46120986", "0.46086028", "0.45927474", "0.45823503", "0.45706904", "0.45658228", "0.45544904", "0.45515123", "0.45445833", "0.4536058", "0.45324647", "0.45312652", "0.4526065", "0.45245034", "0.45217395", "0.45099166", "0.45012492", "0.45006388", "0.4494523", "0.44885567", "0.44815105", "0.4470594", "0.4465945", "0.44603094", "0.44522852", "0.4448825", "0.44473824", "0.44453636", "0.44440654", "0.44420168", "0.4438933", "0.4437915", "0.44346863", "0.44239813", "0.44128108", "0.4410019", "0.440314", "0.44016725", "0.43954194", "0.43841043", "0.43841043", "0.43841043", "0.43841043", "0.43798572" ]
0.6085054
0
Create a new REGULAR EXPRESSION specification for a Property using a named Variable.
public static MatchesSpecification matches( Property<String> property, Variable variable ) { return new MatchesSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VariableExp createVariableExp();", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "private Copy prepareCopyForHeaderMetaData(String variableName, String property) {\n\t\tCopy copy = new Copy();\n\t\tFromSpec from = new FromSpec();\n\t\tfrom.setType(fromTypes.VARIABLE);\n\t\tfrom.setPart(\"payload\");\n\t\tfrom.setVariableName(\"input\");\n\t\tfrom.setQueryLanguage(\"urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0\");\n\t\tfrom.setQuery(\"<![CDATA[tns:\" + property + \"]]>\");\n\t\tcopy.setFromSpec(from);\n\t\t\n\t\tToSpec to = new ToSpec();\n\t\tto.setType(toTypes.VARIABLE);\n\t\tto.setVariableName(variableName);\n\t\tto.setHeader(property);\n\t\tcopy.setToSpec(to);\n\t\t\n\t\treturn copy;\n\t}", "Property createProperty();", "Expression createExpression();", "public static MatchesSpecification matches( Property<String> property, String regexp )\n {\n return new MatchesSpecification( property( property ), regexp );\n }", "DynamicVariable createDynamicVariable();", "PropertyCallExp createPropertyCallExp();", "Variable createVariable();", "Variable createVariable();", "StringExpression createStringExpression();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )\n {\n return new GeSpecification( property( property ), variable );\n }", "PropertyRule createPropertyRule();", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public static MemberExpression property(Expression expression, String name) { throw Extensions.todo(); }", "void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "public PropertySpecBuilder<T> validator(String regex)\n {\n return validator(Pattern.compile(regex));\n }", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "<C, PM> VariableExp<C, PM> createVariableExp();", "Builder addProperty(String name, String value);", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "StringLiteralExp createStringLiteralExp();", "public Variable(String name){\n this.name = name;\n }", "ControlVariable createControlVariable();", "QueryElement addLikeWithWildcardSetting(String property, String value);", "public static Term createRegExp(Expression exp) {\r\n\t\tTerm term = Term.function(REGEX, exp);\r\n\t\treturn term;\r\n\t}", "public VariableIF createVariable(VariableDecl decl);", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "static String replacePropertyWithValue(final String buffer, final String propertyName, final String propertyValue) {\n if (buffer == null) {\n throw new IllegalArgumentException(\"input buffer could not be null\");\n } else if (propertyName == null) {\n throw new IllegalArgumentException(\"input property name could not be null\");\n } else if (propertyValue == null) {\n throw new IllegalArgumentException(\"input property value could not be null\");\n } else {\n String propertyToken = String.format(PROPERTY_TOKEN_FORMAT, propertyName);\n return buffer.replace(propertyToken, propertyValue);\n }\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}", "private MessageProperty setTemplateVar(String key, String value){\n\t\tMessageProperty property = new MessageProperty();\n\t\tproperty.setPropertyName(key);\n\t\tproperty.setPropertyValue(appendCDATA(value));\n\t\treturn property;\n\t}", "public IExpressionValue getUserDefinedVariable(String key);", "protected abstract Property createProperty(String key, Object value);", "ExprRule createExprRule();", "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 static MemberExpression property(Expression expression, Class type, String name) { throw Extensions.todo(); }", "private String genRegex(int charLoc, String captureToken, String specification) throws PatternBuilderException {\n\n //Remove leading digits from string before retrieving capture type\n String strippedLeadingDigits = StringUtil.dropWhile(Character::isDigit,captureToken);\n\n switch (CaptureType.getType(strippedLeadingDigits)) {\n case DEFAULT:\n return genNonGreedyRegex(charLoc,specification,\n RegexPatterns.EOL_CAPTURE.getPattern(),\n RegexPatterns.NON_GREEDY.getPattern());\n case GREEDY:\n return RegexPatterns.GREEDY.getPattern();\n case WHITESPACE:\n return genWhiteSpaceRegex(\n Integer.parseInt(\n StringUtil.dropWhile(Character::isAlphabetic, strippedLeadingDigits)\n ),\n RegexPatterns.VARIABLE_WHITESPACE.getPattern(),\n RegexPatterns.ZERO_WHITESPACE.getPattern());\n\n case UNKNOWN: default:\n throw new PatternBuilderException(String.format(\"Unable to generate regex from %s\", captureToken));\n }\n }", "RegExConstraint createRegExConstraint();", "public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {\n boolean hasPropertyAgnosticType = false;\n EventType[] types = validationContext.getStreamTypeService().getEventTypes();\n for (int i = 0; i < validationContext.getStreamTypeService().getEventTypes().length; i++) {\n if (types[i] instanceof EventTypeSPI) {\n hasPropertyAgnosticType |= ((EventTypeSPI) types[i]).getMetadata().isPropertyAgnostic();\n }\n }\n\n if (!hasPropertyAgnosticType) {\n // the variable name should not overlap with a property name\n try {\n validationContext.getStreamTypeService().resolveByPropertyName(variableName, false);\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (DuplicatePropertyException e) {\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (PropertyNotFoundException e) {\n // expected\n }\n }\n\n VariableMetaData variableMetadata = validationContext.getVariableService().getVariableMetaData(variableName);\n if (variableMetadata == null) {\n throw new ExprValidationException(\"Failed to find variable by name '\" + variableName + \"'\");\n }\n isPrimitive = variableMetadata.getEventType() == null;\n variableType = variableMetadata.getType();\n if (optSubPropName != null) {\n if (variableMetadata.getEventType() == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n eventTypeGetter = ((EventTypeSPI) variableMetadata.getEventType()).getGetterSPI(optSubPropName);\n if (eventTypeGetter == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n variableType = variableMetadata.getEventType().getPropertyType(optSubPropName);\n }\n\n readersPerCp = validationContext.getVariableService().getReadersPerCP(variableName);\n if (variableMetadata.getContextPartitionName() == null) {\n readerNonCP = readersPerCp.get(EPStatementStartMethod.DEFAULT_AGENT_INSTANCE_ID);\n }\n variableType = JavaClassHelper.getBoxedType(variableType);\n return null;\n }", "public interface VariableExpander {\n /**\n * Return the input string with any variables replaced by their\n * corresponding value. If there are no variables in the string,\n * then the input parameter is returned unaltered.\n */\n public String expand(String param);\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public static MemberExpression property(Expression expression, PropertyInfo property) { throw Extensions.todo(); }", "SchemaBuilder withProperty(String name, Object value);", "public PatternBuilderResult build(String specification) throws PatternBuilderException {\n StringBuilder patternStringBuilder = new StringBuilder();\n Matcher captureTokenMatcher = pattern.matcher(specification);\n List<String> locations = new ArrayList<>();\n\n int charLoc = 0;\n while(captureTokenMatcher.find()) {\n String match = captureTokenMatcher.group(1);\n\n String regexReplacement = genRegex(captureTokenMatcher.end(), match, specification);\n String literalReplacement = escapeLiteralRegexChars(specification.substring(charLoc, captureTokenMatcher.start()));\n\n patternStringBuilder\n .append(literalReplacement)\n .append(regexReplacement);\n\n locations.add(match);\n\n charLoc = captureTokenMatcher.end();\n\n\n }\n\n patternStringBuilder\n .append(escapeLiteralRegexChars(specification.substring(charLoc, specification.length())));\n\n return new PatternBuilderResult(\n compilePattern(patternStringBuilder.toString()),\n ensureUniqueIndex(locations));\n\n }", "public Expression substitute(String var, Expression replacement) {\n\treturn \n\t new UnaryPrimitiveApplication(operator, \n\t\t\t\t\t argument.substitute(var, \n\t\t\t\t\t\t\t replacement));\n }", "protected AeFromPropertyBase(String aVariableName, QName aProperty)\r\n {\r\n setVariableName(aVariableName);\r\n setProperty(aProperty);\r\n }", "Variable(String _var) {\n this._var = _var;\n }", "public static Property property(Expression expression, String name) {\n\t\treturn Property.create(expression, name);\n\t}", "Expr createExpr();", "public IAspectVariable<V> createNewVariable(PartTarget target);", "public RuleRegExp(String ruleName, String regExp) {\n this.ruleName = ruleName;\n pattern = Pattern.compile(regExp);\n }", "public VariableTransformationRule(Pattern originalPattern, TransformationOperation transformationOperation) {\n\t\tthis.originalPattern = originalPattern;\n\t\tthis.transformationOperation = transformationOperation;\n\t}", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "AliasVariable createAliasVariable();", "private static Op compilePattern(PropertyFunctionRegistry registry, BasicPattern pattern, Context context)\n {\n \n List<Triple> propertyFunctionTriples = new ArrayList<>() ; // Property functions seen\n BasicPattern triples = new BasicPattern(pattern) ; // A copy of all triples (later, it is mutated)\n \n // Find the triples invoking property functions, and those not.\n findPropertyFunctions(context, pattern, registry, propertyFunctionTriples) ;\n \n if ( propertyFunctionTriples.size() == 0 )\n //No property functions.\n return new OpBGP(pattern) ;\n \n Map<Triple, PropertyFunctionInstance> pfInvocations = new HashMap<>() ; // Map triple => property function instance\n // Removes triples of list arguments. This mutates 'triples'\n findPropertyFunctionArgs(context, triples, propertyFunctionTriples, pfInvocations) ;\n \n // Now make the OpSequence structure.\n Op op = makeStages(triples, pfInvocations) ;\n return op ;\n }", "JavaExpression createJavaExpression();", "PropertyReference createPropertyReference();", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public void buildPredicate(String s){\n\t\tint i = s.indexOf(\"(\");\n\t\tif(i>0){\n\t\t\tname = s.substring(0, i);\n\t\t\tStringTokenizer st = new StringTokenizer(s.substring(i),\"(),\");\n\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tVarTerm vt = new VarTerm(tok);\n\t\t\t\taddTerm(vt);\n\t\t\t}\n\t\t}\n\t}", "private String getNewPropertyLine(String lineToModify, String propNameToFind, String newPropValue) {\n // Look for the property (even if its commented out) and ignore spaces before and after the property name.\n // We also don't care what the value was (doesn't matter what is after the = character).\n Matcher m = Pattern.compile(\"#? *\" + propNameToFind + \" *=.*\").matcher(lineToModify);\n if (m.matches()) {\n if (newPropValue != null) {\n lineToModify = m.replaceAll(propNameToFind + \"=\" + newPropValue);\n } else {\n lineToModify = m.replaceAll(\"#\" + propNameToFind + \"=\");\n }\n }\n return lineToModify;\n }", "@Test\n public void testExpandBasic() {\n doBasicExpansionTestImpl(testVariableForExpansion, testPropValue);\n\n // Variable trails a prefix\n String prefix = \"prefix\";\n doBasicExpansionTestImpl(prefix + testVariableForExpansion, prefix + testPropValue);\n\n // Variable precedes a suffix\n String suffix = \"suffix\";\n doBasicExpansionTestImpl(testVariableForExpansion + suffix, testPropValue + suffix);\n\n // Variable is between prefix and suffix\n doBasicExpansionTestImpl(prefix + testVariableForExpansion + suffix, prefix + testPropValue + suffix);\n }", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variable );\n }", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void declare(String name, Supplier<T> propertySupplier);", "public final ManchesterOWLSyntaxAutoComplete.propertyExpression_return propertyExpression() {\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.propertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER6 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE7 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression8 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:171:1:\n // ( IDENTIFIER | ENTITY_REFERENCE | complexPropertyExpression )\n int alt8 = 3;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt8 = 1;\n }\n break;\n case ENTITY_REFERENCE: {\n alt8 = 2;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt8 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 8, 0, input);\n throw nvae;\n }\n switch (alt8) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:172:7:\n // IDENTIFIER\n {\n IDENTIFIER6 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_propertyExpression462);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER6.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:176:9:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE7 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_propertyExpression480);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE7.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:180:7:\n // complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_propertyExpression494);\n complexPropertyExpression8 = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable()\n .match(complexPropertyExpression8 != null ? complexPropertyExpression8.node\n .getText() : null));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }", "protected String expandProperty(String property, String[] groups) {\n String retVal = null;\n Properties props = (Properties) propertiesMap.get(groups[1]);\n\n if (props != null) {\n retVal = props.getProperty(groups[2]);\n }\n\n return retVal;\n }", "boolean containsProperty(String name);", "public Expression assign(String var, Expression expression) {\n return new Cos(super.getExpression().assign(var, expression));\n }", "public static void addOWLLiteralProperty(OWLIndividual owlIndi, OWLLiteral value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(value.getLiteral(), value.getLang());\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}", "DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );", "public void registerVariable(String variableName, Expression variableDefinition)\n {\n\tvariablesMap.put(variableName, variableDefinition);\n }", "public ArithmaticExpression add(String propertyName) {\n this.getChildren().add(new PropertyValueExpression(propertyName));\n return this;\n }", "public Expression assign(String var, Expression expression) {\r\n // if this variable is val no meter if is capital or small letter.\r\n if (this.variable.equalsIgnoreCase(var)) {\r\n return expression;\r\n }\r\n return this;\r\n }", "NumericExpression createNumericExpression();", "WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer);", "@Override public com.hp.hpl.jena.rdf.model.Property createProperty(final String nameSpace, final String localName)\n {\n final com.hp.hpl.jena.rdf.model.Property property = super.createProperty(nameSpace, localName);\n \n if (DEBUG.SEARCH && DEBUG.RDF) {\n final String propName;\n if (property instanceof com.hp.hpl.jena.rdf.model.impl.PropertyImpl)\n propName = \"PropertyImpl\";\n else\n propName = property.getClass().getName();\n Log.debug(\"createProperty \" + Util.tags(nameSpace)\n + String.format(\"+%-18s= %s@%08X[%s]\",\n Util.tags(localName), // note need extra padding for escape codes here:\n propName,\n System.identityHashCode(property),\n property.toString()));\n }\n return property;\n }", "protected static ParameterDef createRwParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_WRITE);\n }", "public void storeEval(final String expression, final String variableName);", "ReferenceProperty createReferenceProperty();", "protected static ParameterDef createParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_ONLY);\n }", "FullExpression createFullExpression();", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "public ComplexVariable(String name) {\n\t\tthis.name = name;\n\t}", "public Expression assign(String var, Expression expression) {\n Cos p = new Cos(this.getExp().assign(var, expression));\n return p;\n }", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "public DataPrimitive withVariableName(String variableName) {\n return new DataPrimitive(\n new VariableName(variableName),\n getDataPurpose(),\n getDataValidator(),\n getPrimitiveType(),\n getAnnotations(),\n getDataObject());\n }", "public PropertySpecBuilder<T> validator(Pattern pattern)\n {\n Preconditions.checkArgument(validationMethod == null, \"validation method already set\");\n\n validationRegex = pattern;\n\n validationMethod = (input) -> {\n Matcher m = pattern.matcher(input.toString());\n return m.find();\n };\n\n return this;\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 ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }", "XExpr createXExpr();", "ExpOperand createExpOperand();" ]
[ "0.58257073", "0.53972906", "0.5324605", "0.53164905", "0.5277203", "0.5190189", "0.5152909", "0.5111206", "0.50984335", "0.50829536", "0.50829536", "0.5029497", "0.49960473", "0.4991982", "0.4935953", "0.49081558", "0.48991263", "0.48860955", "0.48554602", "0.48451212", "0.48430943", "0.482881", "0.48081735", "0.47986022", "0.47943506", "0.47796634", "0.47793055", "0.47745255", "0.47520116", "0.47509143", "0.47358605", "0.47121596", "0.47108492", "0.4697981", "0.46945408", "0.46889973", "0.46853596", "0.4682313", "0.46636307", "0.46511793", "0.46496588", "0.46429226", "0.4632914", "0.46296734", "0.4627341", "0.46264172", "0.46231675", "0.46180084", "0.46068177", "0.4580164", "0.4575235", "0.45725805", "0.45719296", "0.45675197", "0.45643437", "0.45607963", "0.4560132", "0.4549862", "0.45329797", "0.45327765", "0.45272392", "0.4526433", "0.45182815", "0.45068687", "0.4505258", "0.45026603", "0.44989905", "0.4492215", "0.44887638", "0.4484931", "0.44841856", "0.44818416", "0.44787818", "0.44776997", "0.44756144", "0.44726184", "0.44675907", "0.44664353", "0.4461742", "0.44614646", "0.44460246", "0.4437505", "0.4429091", "0.4428689", "0.44185966", "0.4418104", "0.44113564", "0.44021294", "0.43878916", "0.43775958", "0.43774265", "0.43747213", "0.43693766", "0.43688297", "0.43686512", "0.43661362", "0.4358715", "0.43536404", "0.4346174", "0.43454155" ]
0.58627963
0
Null checks | Create a new NOT NULL specification for a Property.
public static <T> PropertyNotNullSpecification<T> isNotNull( Property<T> property ) { return new PropertyNotNullSpecification<>( property( property ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> PropertyNullSpecification<T> isNull( Property<T> property )\n {\n return new PropertyNullSpecification<>( property( property ) );\n }", "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }", "@Test\n\tpublic void testNewOkDefaultNullAndGetValue() {\n\t\tthis.createTestBean();\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" />\");\n\t\tAssert.assertNull(prop.getValue());\n\t}", "Property createProperty();", "PropertyRule createPropertyRule();", "@Test\n public void labelIsNotNull() {\n propertyIsNot(null, null, CodeI18N.FIELD_NOT_NULL, \"name property must not be null\");\n }", "NullValue createNullValue();", "NullValue createNullValue();", "public void testAssertPropertyReflectionEquals_null() {\r\n testObject.setStringProperty(null);\r\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\r\n }", "private Filter guardAgainstNulls(Filter filter, Expression potentialPropertyName) {\r\n if (potentialPropertyName instanceof PropertyName) {\r\n PropertyName pn = (PropertyName) potentialPropertyName;\r\n String name = pn.getPropertyName();\r\n if (isNillable(name)) {\r\n Not notNull = ff.not(ff.isNull(ff.property(name)));\r\n if (filter instanceof And) {\r\n And and = (And) filter;\r\n List<Filter> children = new ArrayList<Filter>(and.getChildren());\r\n children.add(notNull);\r\n return ff.and(children);\r\n } else {\r\n return ff.and(filter, notNull);\r\n }\r\n }\r\n }\r\n\r\n return filter;\r\n }", "public Property() {}", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public EntityPropertyBean() {}", "@Test(expected = NullPointerException.class)\n public void testGetPropertyValueSetNullPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, null, Integer.class);\n }", "@Test\n void testAssertPropertyReflectionEquals_null() {\n testObject.setStringProperty(null);\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\n }", "public DPropertyElement() {\n super(null, null);\n }", "public void setExpression(Expression nullCheck) {\n \tif (nullCheck != null && nullCheck instanceof PropertyName) {\n this.nullCheck = nullCheck;\n } else {\n throw new IllegalFilterException(\"PropertyName expression required\");\n }\n }", "public static UnaryExpression isNotNull(String propertyName) {\n return new UnaryExpression(Operator.NOT_NULL, propertyName);\n }", "public Property()\r\n {\r\n }", "public void testCtor_NullPropertiesPanel() throws Exception {\n try {\n new StereotypeListPropertyPanel(null, new ImageIcon(), new ImageIcon());\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "@Override\n public HangarMessages addConstraintsNullMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_Null_MESSAGE));\n return this;\n }", "PropertyType createPropertyType();", "public Builder setProportion(int proportionOfNull, int proportionOfEmpty, int proportionOfNotEmpty){\n if(proportionOfNull < 0 || proportionOfEmpty < 0 || proportionOfNotEmpty < 0 || proportionOfNull + proportionOfEmpty + proportionOfNotEmpty <= 0){\n throw new IllegalArgumentException(\"Proportion not in bound\");\n }\n mProportionOfNull = proportionOfNull;\n mProportionOfEmpty = proportionOfEmpty;\n mProportionOfNotEmpty = proportionOfNotEmpty;\n return this;\n }", "public void testGetObjectSpecificationWithNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'B'.\", TYPE_NUMBER, object.getType());\r\n }", "public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "ExprNull createExprNull();", "public void testAssertPropertyReflectionEquals_rightNull() {\r\n testObject.setStringProperty(null);\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "public static UnaryExpression isNull(String propertyName) {\n return new UnaryExpression(Operator.NULL, propertyName);\n }", "@Override\n public void setNull() {\n\n }", "PrimitiveProperty createPrimitiveProperty();", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public void testCtor_NullPropertiesPanel() {\n try {\n new ConcurrencyPropertyPanel(null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Override\n public HangarMessages addConstraintsNotNullMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_NotNull_MESSAGE));\n return this;\n }", "@Test\n void testAssertPropertyReflectionEquals_rightNull() {\n testObject.setStringProperty(null);\n assertFailing(() ->\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject)\n );\n }", "public void testChangePropertyHandler_null() {\n try {\n new ChangePropertyHandler(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n\n }", "public void testGetObjectSpecificationWithNotFoundNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", null);\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "public void testSetPowertype_NullClassifier() {\n instance.setPowertype(null);\n assertNull(\"null expected.\", instance.getPowertype());\n }", "@Test\r\n void B6007089_test_SemeterMustNotBeNull() {\r\n System.out.println(\"\\n=======================================\");\r\n System.out.println(\"\\nTest Time Must Not Be Null\");\r\n System.out.println(\"\\n=======================================\\n\");\r\n Section section = new Section();\r\n section.setSec(\"1\");\r\n section.setTime(null);\r\n\r\n\r\n Set<ConstraintViolation<Section>> result = validator.validate(section);\r\n assertEquals(1, result.size());\r\n\r\n ConstraintViolation<Section> v = result.iterator().next();\r\n assertEquals(\"must not be null\", v.getMessage());\r\n assertEquals(\"time\", v.getPropertyPath().toString());\r\n }", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryException {\n return null;\n }", "public void setProportion(int proportionOfNull, int proportionOfEmpty, int proportionOfNotEmpty){\n if(proportionOfNull == 0 && proportionOfEmpty == 0 && proportionOfNotEmpty == 0){\n throw new IllegalArgumentException(\"Proportion of null, empty, not empty can't be all 0\");\n } else if(proportionOfNull < 0 || proportionOfEmpty < 0 || proportionOfNotEmpty < 0){\n throw new IllegalArgumentException(\"Proportion can't be negative\");\n }\n int scaleCount = proportionOfEmpty + proportionOfNull + proportionOfNotEmpty;\n mProportionGenerateNull = 1.0f * proportionOfNull / scaleCount;\n mProportionGenerateEmpty = 1.0f * proportionOfEmpty / scaleCount;\n mProportionGenerateNotEmpty = 1.0f * proportionOfNotEmpty / scaleCount;\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "@Override\n\tProp getp1() {\n\t\treturn null;\n\t}", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "public void testAssertPropertyReflectionEquals_leftNull() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }", "@Test\n public void labelIsNotBlank() {\n propertyIsNot(\"\", null, CodeI18N.FIELD_NOT_BLANK, \"label property must not be blank\");\n }", "public PropertySpecBuilder<T> required(boolean required)\n {\n Preconditions.checkArgument(this.required == null, \"required flag already set\");\n this.required = required;\n\n return this;\n }", "public RequiredPropertyCondition(String key, PropertyResolver propertyResolver) {\n\t\tsuper();\n\t\tthis.key = key;\n\t\tthis.propertyResolver = propertyResolver;\n\t}", "public void testGetObjectSpecificationWithNonNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\",\r\n \"identifier\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertEquals(\"Identifier should be 'identifier'.\", \"identifier\", object.getIdentifier());\r\n assertEquals(\"Type should be 'java.lang.Object'.\", TYPE_OBJECT, object.getType());\r\n }", "@Override\n\tProp getProp() {\n\t\treturn null;\n\t}", "@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}", "@Override\n\tpublic IPropertySetter getPropertySetter() {\n\t\treturn null;\n\t}", "@Override\n\tpublic PropertyChangeSupport getPropertyChangeSupport() {\n\t\treturn null;\n\t}", "@Override\n public As getTypeInclusion() { return As.EXISTING_PROPERTY; }", "A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );", "Integer getMyProperty3() {return null;}", "private PropertyHolder() {\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 boolean isTrivial(String nameProperty) {\n return false;\n }", "@Test\r\n void B6007089_test_SecMustNotBeNull() {\r\n System.out.println(\"\\n=======================================\");\r\n System.out.println(\"\\nTest Sec Must Not Be Null\");\r\n System.out.println(\"\\n=======================================\\n\");\r\n Section section = new Section();\r\n section.setSec(null);\r\n section.setTime(\"Tu13:00-15:00 B1231 -- We13:00-15:00 B1125\");\r\n\r\n\r\n Set<ConstraintViolation<Section>> result = validator.validate(section);\r\n assertEquals(1, result.size());\r\n\r\n ConstraintViolation<Section> v = result.iterator().next();\r\n assertEquals(\"must not be null\", v.getMessage());\r\n assertEquals(\"sec\", v.getPropertyPath().toString());\r\n }", "public PropertyVisitor visitProperty(BeanProperty p) {\n\t\treturn null;\r\n\t}", "public void testConstructorWithMalformedTypeSpecification3() throws Exception {\r\n ConfigurationObject object = createObject(\"name\", TYPE_OBJECT);\r\n object.setPropertyValue(PROPERTY_VALUES, \"{null,null}\");\r\n root.addChild(object);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public interface CreateProperty {\n /**\n * Give the list of properties in one kingdom for CalculatePropertyAttributes.feature and IdentifyProperties.feature without assigning it to any kingdom\n * @param kingdom the kingdom\n * @return the property list\n * @throws Exception null detection\n * @author AntonioShen\n */\n List<Property> givePropList(Kingdom kingdom) throws Exception;\n\n /**\n * Assign properties to one kingdom according to the property list for CalculatePropertyAttributes.feature and IdentifyProperties.feature\n * @param list the property list for the kingdom\n * @param kingdom the kingdom\n * @return true if succeed, false if failed\n * @throws Exception null detection\n * @author AntonioShen\n */\n boolean assignPropToKingdom(List<Property> list, Kingdom kingdom) throws Exception;\n}", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "@Override\n public Validation create(Validation value) {\n return null;\n }", "public <T1 extends T> PropertySpec<T1> build()\n {\n try\n {\n check();\n }\n catch (Throwable t)\n {\n // this helps debugging when components cannot be instantiated\n logger.error(\"PropertySpecBuilder.check failed for property: \" + name, t);\n throw t;\n }\n\n return new PropertySpec<T1>()\n {\n @Override\n public Optional<String> deprecatedName()\n {\n return Optional.ofNullable(deprecatedName);\n }\n\n @Override\n public Optional<String> deprecatedShortName()\n {\n return Optional.ofNullable(deprecatedShortName);\n }\n\n @Override\n public String name()\n {\n return name;\n }\n\n @Override\n public String shortName()\n {\n return shortName;\n }\n\n @Override\n public String prefix()\n {\n return prefix;\n }\n\n @Override\n public Optional<String> alias()\n {\n return Optional.ofNullable(alias);\n }\n\n @Override\n public String describe()\n {\n return description;\n }\n\n @Override\n public Optional<String> category()\n {\n return Optional.ofNullable(category);\n }\n\n @Override\n public Optional<PropertySpec> dependsOn()\n {\n return Optional.ofNullable(dependsOn);\n }\n\n @Override\n public Optional<Value<T1>> defaultValue()\n {\n return Optional.ofNullable((Value<T1>) defaultValue);\n }\n\n @Override\n public Optional<String> defaultValueYaml()\n {\n return defaultValue().map(value -> dumperMethod != null ? dumperMethod.apply(value.value) :\n dumpYaml(value.value).replaceFirst(\"^!![^ ]* \", \"\"));\n }\n\n @Override\n public Optional<String> validationPattern()\n {\n return Optional.ofNullable(validationRegex).map(Pattern::toString);\n }\n\n @Override\n public T1 value(PropertyGroup propertyGroup)\n {\n return valueType(propertyGroup).value;\n }\n\n @Override\n public Optional<T1> optionalValue(PropertyGroup propertyGroup)\n {\n return Optional.ofNullable(valueType(propertyGroup).value);\n }\n\n private Pair<Optional<String>, Value<T1>> validatedValueType(PropertyGroup propertyGroup)\n {\n final Optional<Pair<String, Object>> foundPropNameAndValue = Stream\n .of(name, alias, deprecatedName)\n .map(propName -> Pair.of(propName, propertyGroup.get(propName)))\n .filter(pair -> pair.getRight() != null)\n .findFirst();\n\n final Optional<String> usedPropName = foundPropNameAndValue.map(Pair::getLeft);\n final Object value = foundPropNameAndValue.map(Pair::getRight).orElse(null);\n\n if (value == null)\n {\n if (defaultValue != null)\n {\n\n /* Note that we don't validate defaultValue: this is because for a PropertySpec<T>, default\n * values are specified as the type of the final value, T. Validation however is specified\n * as Function<Object, Boolean>, where the input is of whatever type was passed in: this\n * means that attempting to change the behaviour so that we validate the default value\n * would mean converting T to whatever came in (which may not be a string). */\n return Pair.of(usedPropName, (Value<T1>) defaultValue);\n }\n if (isRequired(propertyGroup))\n {\n throw new ValidationException(this, \"Missing required property\");\n }\n // No need to validate null\n return Pair.of(usedPropName, (Value<T1>) Value.empty);\n }\n\n if (valueOptions != null && (value instanceof String || value instanceof Boolean))\n {\n final String strVal = value.toString();\n\n final Optional<Value<T>> matchingOption = valueOptions.stream()\n .filter(option -> option.id.equalsIgnoreCase(strVal))\n .findFirst();\n\n if (matchingOption.isPresent())\n {\n return Pair.of(usedPropName, (Value<T1>) matchingOption.get());\n }\n\n if (valueOptionsMustMatch)\n {\n List<String> optionIds = valueOptions.stream().map(v -> v.id).collect(Collectors.toList());\n throw new ValidationException(this,\n String.format(\"Given value \\\"%s\\\" is not available in options: %s\", strVal, optionIds));\n }\n }\n\n if (valueMethod == null)\n {\n throw new ValidationException(this,\n String.format(\n \"Value method is null with value '%s' - are you passing in an invalid choice for an option spec?\",\n value));\n }\n\n //Use validation method\n if (validationMethod != null && !validationMethod.apply(value))\n {\n if (validationRegex != null)\n throw new ValidationException(this,\n String.format(\"Regexp \\\"%s\\\" failed for value: \\\"%s\\\"\", validationRegex, value));\n else\n throw new ValidationException(this,\n String.format(\"validationMethod failed for value: \\\"%s\\\"\", value));\n }\n\n return Pair.of(usedPropName, Value.of((T1) valueMethod.apply(value), category));\n }\n\n @Override\n public Value<T1> valueType(PropertyGroup propertyGroup)\n {\n return validatedValueType(propertyGroup).getRight();\n }\n\n @Override\n public boolean isRequired()\n {\n return required && defaultValue == null;\n }\n\n @Override\n public boolean isRequired(PropertyGroup propertyGroup)\n {\n return isRequired() &&\n //if the parent choice isn't selected then mark this not required\n (dependsOn == null || dependsOn.valueType(propertyGroup).category.get().equals(category));\n }\n\n @Override\n public boolean isOptionsOnly()\n {\n return valueMethod == null && valueOptions != null && valueOptionsMustMatch;\n }\n\n @Override\n public Optional<Collection<Value<T1>>> options()\n {\n return Optional.ofNullable((Collection) valueOptions);\n }\n\n @Override\n public Optional<String> validate(PropertyGroup propertyGroup) throws ValidationException\n {\n return validatedValueType(propertyGroup).getLeft();\n }\n\n @Override\n public String toString()\n {\n return \"DefaultPropertySpec(\" + this.name() + \")\";\n }\n };\n }", "protected abstract Property createProperty(String key, Object value);", "public void testConstructorWithComplexTypeWithNullSimpleParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_INT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "@Test\n void testAssertPropertyReflectionEquals_leftNull() {\n assertFailing(() ->\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject)\n );\n }", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "@Optional\n Property<String> bhkz();", "@Override\n public String getProperty(String s) {\n return null;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public AbstractXmlSpecification(Properties p)\n\t\tthrows IncompleteSpecificationException {\n\n\t\tthis.properties = p == null ? new Properties() : (Properties) p.clone();\n\t\tString[] missingPropertyNames =\n\t\t\tcheckForMissingProperties(\n\t\t\t\tthis.properties,\n\t\t\t\tthis.getRequiredPropertyNames());\n\n\t\t// Postcondition\n\t\tif (missingPropertyNames.length != 0) {\n\t\t\tString msg = msgAboutStrings(\"missing properties\", missingPropertyNames); //$NON-NLS-1$\n\t\t\tthrow new IllegalArgumentException(msg);\n\t\t}\n\t}", "public void testNullValue()\r\n {\r\n try\r\n {\r\n new IncludeDirective( IncludeDirective.REF, null, null, PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "PropertyCallExp createPropertyCallExp();", "public void testConstructorWithComplexTypeWithNullParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_OBJECT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"name\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'A'.\", TYPE_OBJECT, object.getType());\r\n\r\n Object[] params = object.getParameters();\r\n ObjectSpecification param1 = (ObjectSpecification) params[0];\r\n\r\n assertEquals(\"Object should have 1 param.\", 1, params.length);\r\n assertEquals(\"SpecType of array elements should be null.\",\r\n ObjectSpecification.NULL_SPECIFICATION, param1.getSpecType());\r\n }", "public M csmiCertifyNumNull(){if(this.get(\"csmiCertifyNumNot\")==null)this.put(\"csmiCertifyNumNot\", \"\");this.put(\"csmiCertifyNum\", null);return this;}", "public PropertiesMandatoryFieldsValidator(RuleRankProperties properties) {\n\t\tthis.properties = properties;\n\t\temptyParameter = RuleRankParametersService.getInstance().getDefaultParameter();\n\t\tvalidate();\n\t}", "public static <T> AssociationNullSpecification<T> isNull( Association<T> association )\n {\n return new AssociationNullSpecification<>( association( association ) );\n }", "public static FieldValidator isNotNull() {\n return new FieldValidator() {\n @Override\n public FieldReport validate(int fieldSequence, Object fieldValue) {\n FieldReport report = new FieldReport(fieldSequence);\n\n if (fieldValue == null)\n report.setMessage(\"The value was null while we expected anything but null\");\n\n return report;\n }\n\n @Override\n public String toString() { return \"isNotNull()\"; }\n };\n }", "public void testNullMode()\r\n {\r\n try\r\n {\r\n new IncludeDirective( null, null, \"value\", PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\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}", "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}", "boolean hasProperty0();", "public boolean validateRequirement_PropertyBasedStatementSupplier(Requirement requirement, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn requirement.PropertyBasedStatementSupplier(diagnostics, context);\n\t}", "@Override public Type make_nil(byte nil) { return make(nil,_any); }", "@Test\n\tpublic void putNullValues() throws Exception {\n\t\t{\n\t\t\tPropertyFileStore store = new PropertyFileStore(file);\n\t\t\tassertTrue(store.isEmpty());\n\n\t\t\tstore.put(\"test\", \"something\");\n\t\t\tstore.put(\"foo\", \"bar\");\n\t\t\tassertFalse(store.isEmpty());\n\n\t\t\tassertProperties(store,\n\t\t\t\t\t\"test\", \"something\",\n\t\t\t\t\t\"foo\", \"bar\"\n\t\t\t);\n\n\t\t\tstore.put(\"test\", null);\n\n\t\t\tassertProperties(store,\n\t\t\t\t\t\"foo\", \"bar\"\n\t\t\t);\n\n\t\t\tstore.sync(); //Before reloading it we must be sure all is saved.\n\t\t\t\t\t\t// Store saving is automatic, but not synchronous.\n\t\t}\n\n\t\t{\n\t\t\tPropertyFileStore store = new PropertyFileStore(file);\n\n\t\t\tassertProperties(store,\n\t\t\t\t\t\"foo\", \"bar\"\n\t\t\t);\n\t\t}\n\t}", "public boolean isPropertyMissing() {\n \t\t\t\t\t\t\t\t\treturn false;\n \t\t\t\t\t\t\t\t}", "public static PropertyMstBean createEntity(EntityManager em) {\n PropertyMstBean propertyMstBean = new PropertyMstBean()\n .name(DEFAULT_NAME)\n .modifiedBy(DEFAULT_MODIFIED_BY);\n return propertyMstBean;\n }", "public static String verifyAndFetchMandatoryProperty(String key,\r\n\t\t\tProperties prop) throws PropertyNotConfiguredException {\r\n\t\tString property;\r\n\t\t// Mandatory property should not be null.\r\n\t\tproperty = Objects.requireNonNull(fetchProperty(key, prop),\r\n\t\t\t\t\"ERROR: Must set configuration value for \" + key);\r\n\r\n\t\t// Mandatory property should not be blank.\r\n\r\n\t\tif (property.isEmpty()) {\r\n\t\t\tthrow new PropertyNotConfiguredException(\r\n\t\t\t\t\t\"ERROR: Must set configuration value for \" + key);\r\n\t\t}\r\n\t\treturn property;\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}", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "public M csrtTypeNameNull(){if(this.get(\"csrtTypeNameNot\")==null)this.put(\"csrtTypeNameNot\", \"\");this.put(\"csrtTypeName\", null);return this;}", "public void test_NullCase() throws Exception {\n\t\tinit(null) ;\n\t\t\n\t\trepo = factory.createRepository(null) ;\n\n\t\t((DelegatingRepository) repo).setDelegate(notifier);\n\t\trepo.initialize() ;\n\t\tfunctionalTest();\n\t}", "void setNilValue();", "boolean supportsNotNullable();", "public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}" ]
[ "0.6711092", "0.64215654", "0.59927607", "0.5897301", "0.57341367", "0.561568", "0.56057847", "0.56057847", "0.5604907", "0.5592232", "0.5569321", "0.54885465", "0.5480598", "0.54444396", "0.5404941", "0.54044396", "0.54035944", "0.53634024", "0.5359309", "0.5321887", "0.5317693", "0.5313342", "0.5312261", "0.53067684", "0.5246493", "0.523025", "0.52174413", "0.51778275", "0.51456916", "0.5126208", "0.51194185", "0.5102697", "0.51024026", "0.50883013", "0.5070625", "0.5068168", "0.5055646", "0.50549686", "0.504819", "0.5045868", "0.50434554", "0.5034221", "0.50258476", "0.50122815", "0.50061905", "0.4996354", "0.49961", "0.49894077", "0.4966416", "0.4963069", "0.49464396", "0.4943876", "0.4940045", "0.49382943", "0.49312994", "0.49303022", "0.49302566", "0.49222708", "0.49151903", "0.49148494", "0.4900596", "0.48957592", "0.48848978", "0.4879308", "0.48766494", "0.4873796", "0.48718482", "0.48706836", "0.48628268", "0.4856894", "0.48505142", "0.4829778", "0.48288837", "0.48253542", "0.4814855", "0.4800266", "0.47984284", "0.47903523", "0.478396", "0.47784546", "0.4776954", "0.47733778", "0.47725812", "0.47721606", "0.4763405", "0.47612122", "0.47607243", "0.47602478", "0.47586888", "0.47539127", "0.4749929", "0.4735018", "0.47328633", "0.4732358", "0.47302064", "0.47212547", "0.47181463", "0.47158614", "0.47036743", "0.47022697" ]
0.6453084
1
Create a new NULL specification for a Property.
public static <T> PropertyNullSpecification<T> isNull( Property<T> property ) { return new PropertyNullSpecification<>( property( property ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }", "public static <T> PropertyNotNullSpecification<T> isNotNull( Property<T> property )\n {\n return new PropertyNotNullSpecification<>( property( property ) );\n }", "public Property() {}", "@Test\n\tpublic void testNewOkDefaultNullAndGetValue() {\n\t\tthis.createTestBean();\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" />\");\n\t\tAssert.assertNull(prop.getValue());\n\t}", "public void testGetObjectSpecificationWithNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'B'.\", TYPE_NUMBER, object.getType());\r\n }", "public Property()\r\n {\r\n }", "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "Property createProperty();", "public Builder clearProperty() {\n\n property_ = getDefaultInstance().getProperty();\n onChanged();\n return this;\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public DPropertyElement() {\n super(null, null);\n }", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public void testAssertPropertyReflectionEquals_null() {\r\n testObject.setStringProperty(null);\r\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\r\n }", "public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}", "@Override\n\tpublic IPropertySetter getPropertySetter() {\n\t\treturn null;\n\t}", "public boolean isTrivial(String nameProperty) {\n return false;\n }", "public void testGetObjectSpecificationWithNotFoundNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", null);\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "public EntityPropertyBean() {}", "@Override\n\tProp getProp() {\n\t\treturn null;\n\t}", "@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}", "public Builder clearProperty0() {\n bitField0_ = (bitField0_ & ~0x00000004);\n property0_ = 0;\n \n return this;\n }", "private Filter guardAgainstNulls(Filter filter, Expression potentialPropertyName) {\r\n if (potentialPropertyName instanceof PropertyName) {\r\n PropertyName pn = (PropertyName) potentialPropertyName;\r\n String name = pn.getPropertyName();\r\n if (isNillable(name)) {\r\n Not notNull = ff.not(ff.isNull(ff.property(name)));\r\n if (filter instanceof And) {\r\n And and = (And) filter;\r\n List<Filter> children = new ArrayList<Filter>(and.getChildren());\r\n children.add(notNull);\r\n return ff.and(children);\r\n } else {\r\n return ff.and(filter, notNull);\r\n }\r\n }\r\n }\r\n\r\n return filter;\r\n }", "NullValue createNullValue();", "NullValue createNullValue();", "@Override\n\tpublic PropertyChangeSupport getPropertyChangeSupport() {\n\t\treturn null;\n\t}", "public Property() {\n this(0, 0, 0, 0);\n }", "public void testCtor_NullPropertiesPanel() throws Exception {\n try {\n new StereotypeListPropertyPanel(null, new ImageIcon(), new ImageIcon());\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "PrimitiveProperty createPrimitiveProperty();", "@Override\n\tProp getp1() {\n\t\treturn null;\n\t}", "@Override\n public void setNull() {\n\n }", "PropertyRule createPropertyRule();", "@Override\n public As getTypeInclusion() { return As.EXISTING_PROPERTY; }", "ExprNull createExprNull();", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "@Override public Type make_nil(byte nil) { return make(nil,_any); }", "public void testConstructorWithComplexTypeWithNullSimpleParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_INT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public void testGetObjectSpecificationWithNonNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\",\r\n \"identifier\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertEquals(\"Identifier should be 'identifier'.\", \"identifier\", object.getIdentifier());\r\n assertEquals(\"Type should be 'java.lang.Object'.\", TYPE_OBJECT, object.getType());\r\n }", "public Builder setProportion(int proportionOfNull, int proportionOfEmpty, int proportionOfNotEmpty){\n if(proportionOfNull < 0 || proportionOfEmpty < 0 || proportionOfNotEmpty < 0 || proportionOfNull + proportionOfEmpty + proportionOfNotEmpty <= 0){\n throw new IllegalArgumentException(\"Proportion not in bound\");\n }\n mProportionOfNull = proportionOfNull;\n mProportionOfEmpty = proportionOfEmpty;\n mProportionOfNotEmpty = proportionOfNotEmpty;\n return this;\n }", "public static UnaryExpression isNull(String propertyName) {\n return new UnaryExpression(Operator.NULL, propertyName);\n }", "public static <T> AssociationNullSpecification<T> isNull( Association<T> association )\n {\n return new AssociationNullSpecification<>( association( association ) );\n }", "public PropertyVisitor visitProperty(BeanProperty p) {\n\t\treturn null;\r\n\t}", "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 void testSetPowertype_NullClassifier() {\n instance.setPowertype(null);\n assertNull(\"null expected.\", instance.getPowertype());\n }", "@Override\n public String getProperty(String s) {\n return null;\n }", "@Test\n void testAssertPropertyReflectionEquals_null() {\n testObject.setStringProperty(null);\n assertPropertyReflectionEquals(\"stringProperty\", null, testObject);\n }", "public void testNoProperty() throws Exception {\n //Testing with no properties set\n bean = new ManagedBeanBean();\n bean.setManagedBeanClass(beanName);\n bean.setManagedBeanScope(\"session\");\n \n mbf = new ManagedBeanFactory(bean);\n \n assertNotNull(mbf.newInstance(getFacesContext()));\n }", "public void testConstructorWithComplexTypeWithNullParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_OBJECT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"name\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'A'.\", TYPE_OBJECT, object.getType());\r\n\r\n Object[] params = object.getParameters();\r\n ObjectSpecification param1 = (ObjectSpecification) params[0];\r\n\r\n assertEquals(\"Object should have 1 param.\", 1, params.length);\r\n assertEquals(\"SpecType of array elements should be null.\",\r\n ObjectSpecification.NULL_SPECIFICATION, param1.getSpecType());\r\n }", "PropertyType createPropertyType();", "public void dropNullValueProperties(){\n if(properties!=null){\n final Iterator<Map.Entry<String,Object>> iterator = properties.entrySet().iterator();\n for (;iterator.hasNext();) {\n final Object value = iterator.next().getValue();\n if(value == null){\n iterator.remove();\n }\n }\n }\n }", "@Test\n public void emptyElementsInPropertyFile() throws Exception {\n String output = \"\";\n\n StmtIterator msIter = propertyOutput.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n if (msStmt.getSubject().toString().equals(\"\") ||\n msStmt.getPredicate().toString().equals(\"\") ||\n msStmt.getObject().toString().equals(\"\") ||\n msStmt.getSubject().toString().equals(\"urn:\") ||\n msStmt.getPredicate().toString().equals(\"urn:\") ||\n msStmt.getObject().toString().equals(\"urn:\")\n ) {\n output += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n // Output assertion with message of results\n if (!output.equals(\"\"))\n assertTrue(\"\\nThe following triples in \" + propertyOutputFileName + \" have an empty element:\\n\" + output\n , false);\n else\n assertTrue(true);\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}", "Property clearAndAddValue(PropertyValue<?, ?> value);", "public void testConstructorWithMalformedTypeSpecification3() throws Exception {\r\n ConfigurationObject object = createObject(\"name\", TYPE_OBJECT);\r\n object.setPropertyValue(PROPERTY_VALUES, \"{null,null}\");\r\n root.addChild(object);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public AbstractXmlSpecification(Properties p)\n\t\tthrows IncompleteSpecificationException {\n\n\t\tthis.properties = p == null ? new Properties() : (Properties) p.clone();\n\t\tString[] missingPropertyNames =\n\t\t\tcheckForMissingProperties(\n\t\t\t\tthis.properties,\n\t\t\t\tthis.getRequiredPropertyNames());\n\n\t\t// Postcondition\n\t\tif (missingPropertyNames.length != 0) {\n\t\t\tString msg = msgAboutStrings(\"missing properties\", missingPropertyNames); //$NON-NLS-1$\n\t\t\tthrow new IllegalArgumentException(msg);\n\t\t}\n\t}", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryException {\n return null;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "protected AbstractXmlSpecification() {\n\t\tthis.properties = new Properties();\n\t}", "public Builder clearKeepPropertiesHistoryInHoursNull() {\n \n keepPropertiesHistoryInHoursNull_ = false;\n onChanged();\n return this;\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "private void createNonRelationalMapping(PropertyDescriptor property)\n throws Exception {\n ClassDescriptor declaringClassDescriptor = property.parent();\n JavaModel javaModel = du.getJavaModel();\n Object propertyType = getJavaType(property);\n if (javaModel.isBasic(propertyType)) {\n BasicDescriptor basic = of.createBasicDescriptor();\n basic.setFetch(FetchType.EAGER);\n property.setMapping(basic);\n return;\n } else if (declaringClassDescriptor.isEmbeddable()) {\n property.setEmbedded(of.createEmbeddedDescriptor());\n return;\n } else if (javaModel.isAssignable(\n javaModel.getJavaType(Clob.class.getName()), propertyType)) {\n LobDescriptor lob = of.createLobDescriptor();\n lob.setType(LobType.CLOB);\n lob.setFetch(FetchType.LAZY);\n property.setMapping(lob);\n } else if (javaModel.isAssignable(\n javaModel.getJavaType(Blob.class.getName()), propertyType)) {\n LobDescriptor lob = of.createLobDescriptor();\n lob.setType(LobType.BLOB);\n lob.setFetch(FetchType.LAZY);\n property.setMapping(lob);\n } else if (javaModel.isAssignable(\n javaModel.getJavaType(Serializable.class.getName()),\n propertyType)) {\n SerializedDescriptor serialized = of.createSerializedDescriptor();\n serialized.setFetch(FetchType.EAGER);\n property.setMapping(serialized);\n } else {\n // Should this be caught by verifier in an earlier step?\n throw new DeploymentException(\n i18NHelper.msg(\"EXC_NotAbleToDefaultMappingForProperty\", // NOI18N\n property.getName(),\n declaringClassDescriptor.getName()));\n }\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}", "@Test(expected = NullPointerException.class)\n public void testGetPropertyValueSetNullPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, null, Integer.class);\n }", "public Builder clearOnlyProceduresInAnyValuesNull() {\n \n onlyProceduresInAnyValuesNull_ = false;\n onChanged();\n return this;\n }", "public void setProportion(int proportionOfNull, int proportionOfEmpty, int proportionOfNotEmpty){\n if(proportionOfNull == 0 && proportionOfEmpty == 0 && proportionOfNotEmpty == 0){\n throw new IllegalArgumentException(\"Proportion of null, empty, not empty can't be all 0\");\n } else if(proportionOfNull < 0 || proportionOfEmpty < 0 || proportionOfNotEmpty < 0){\n throw new IllegalArgumentException(\"Proportion can't be negative\");\n }\n int scaleCount = proportionOfEmpty + proportionOfNull + proportionOfNotEmpty;\n mProportionGenerateNull = 1.0f * proportionOfNull / scaleCount;\n mProportionGenerateEmpty = 1.0f * proportionOfEmpty / scaleCount;\n mProportionGenerateNotEmpty = 1.0f * proportionOfNotEmpty / scaleCount;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testNewOkDefaultEmpty() {\n\t\tthis.createTestBean();\n\t\tPropertyCollection prop = this\n\t\t\t\t.createCollectionProperty(\"<property name=\\\"test\\\"\" + \" targettype=\\\"TestBean\\\"\" + \" default=\\\"\\\"/>\");\n\t\tCollection<Link> col = (Collection<Link>) prop.getValue();\n\t\tAssert.assertEquals(0, col.size());\n\t}", "public DocumentMutation setNull(String path);", "@Override\n\tpublic List<PropertyFilter> buildPropertyFilter(CcNoticereceive entity) {\n\t\treturn null;\n\t}", "private Optional() {\r\n\t\tthis.value = null;\r\n\t}", "public T caseProperty(Property object) {\r\n\t\treturn null;\r\n\t}", "public void testNullValue()\r\n {\r\n try\r\n {\r\n new IncludeDirective( IncludeDirective.REF, null, null, PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "private Document generateTestConfigForProperty(Property property, Class classImpl){\n\t\tif (property.getAssociation()!=null){\n\t\t\tSystem.err.format(\"Property %s from class %s is not a simple property, as it has an association \\n\", property.getName(), classImpl.getName());\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//for now we generate a generic test configuration for each property, which states that periodically every 30 seconds we poll the \n\t\t//property to check it\n\t\t//TODO: see how to also generate template for test implementation\n\t\tString content = RunTimeTestingTemplates.fillSelfTestTemplate(property.getName(), classImpl.getName());\n\t\tDocument testConfig = new Document(content);\n\t\treturn testConfig;\n\t}", "public M csmiCertifyNumNull(){if(this.get(\"csmiCertifyNumNot\")==null)this.put(\"csmiCertifyNumNot\", \"\");this.put(\"csmiCertifyNum\", null);return this;}", "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}", "@Test\n public void labelIsNotNull() {\n propertyIsNot(null, null, CodeI18N.FIELD_NOT_NULL, \"name property must not be null\");\n }", "public void setExpression(Expression nullCheck) {\n \tif (nullCheck != null && nullCheck instanceof PropertyName) {\n this.nullCheck = nullCheck;\n } else {\n throw new IllegalFilterException(\"PropertyName expression required\");\n }\n }", "public void verifyNoMatching(AcProperty e)\n {\n }", "@Override\n\t\tpublic Object getProperty(String key, Object defaultValue) {\n\t\t\treturn null;\n\t\t}", "public Builder clearProperty1() {\n bitField0_ = (bitField0_ & ~0x00000008);\n property1_ = 0;\n \n return this;\n }", "public void testGetObjectSpecificationWithEmptyKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"\", \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public void writeProperties(Properties prop) {\n writeProperties(prop, \"[ No description provided! ]\");\n }", "private DiffProperty() {\n\t\t// No implementation\n\t}", "public Builder clearNilValue() {\n if (typeCase_ == 1) {\n typeCase_ = 0;\n type_ = null;\n onChanged();\n }\n return this;\n }", "public void testNullMode()\r\n {\r\n try\r\n {\r\n new IncludeDirective( null, null, \"value\", PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "NULL createNULL();", "protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }", "@Override\n\tpublic IPropertyGetter getPropertyGetter() {\n\t\treturn null;\n\t}", "@Override\n public Validation create(Validation value) {\n return null;\n }", "public static UnaryExpression isNotNull(String propertyName) {\n return new UnaryExpression(Operator.NOT_NULL, propertyName);\n }", "void setNilValue();", "@Override\n public String visit(ObjectCreationExpr n, Object arg) {\n return null;\n }", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}", "public void setSpec(String spec) {\n this.spec = spec == null ? null : spec.trim();\n }", "public static UnaryExpression isEmpty(String propertyName) {\n return new UnaryExpression(Operator.EMPTY, propertyName);\n }", "public T caseProperty(Property object) {\n\t\treturn null;\n\t}", "public T caseProperty(Property object) {\n\t\treturn null;\n\t}", "public <T1 extends T> PropertySpec<T1> build()\n {\n try\n {\n check();\n }\n catch (Throwable t)\n {\n // this helps debugging when components cannot be instantiated\n logger.error(\"PropertySpecBuilder.check failed for property: \" + name, t);\n throw t;\n }\n\n return new PropertySpec<T1>()\n {\n @Override\n public Optional<String> deprecatedName()\n {\n return Optional.ofNullable(deprecatedName);\n }\n\n @Override\n public Optional<String> deprecatedShortName()\n {\n return Optional.ofNullable(deprecatedShortName);\n }\n\n @Override\n public String name()\n {\n return name;\n }\n\n @Override\n public String shortName()\n {\n return shortName;\n }\n\n @Override\n public String prefix()\n {\n return prefix;\n }\n\n @Override\n public Optional<String> alias()\n {\n return Optional.ofNullable(alias);\n }\n\n @Override\n public String describe()\n {\n return description;\n }\n\n @Override\n public Optional<String> category()\n {\n return Optional.ofNullable(category);\n }\n\n @Override\n public Optional<PropertySpec> dependsOn()\n {\n return Optional.ofNullable(dependsOn);\n }\n\n @Override\n public Optional<Value<T1>> defaultValue()\n {\n return Optional.ofNullable((Value<T1>) defaultValue);\n }\n\n @Override\n public Optional<String> defaultValueYaml()\n {\n return defaultValue().map(value -> dumperMethod != null ? dumperMethod.apply(value.value) :\n dumpYaml(value.value).replaceFirst(\"^!![^ ]* \", \"\"));\n }\n\n @Override\n public Optional<String> validationPattern()\n {\n return Optional.ofNullable(validationRegex).map(Pattern::toString);\n }\n\n @Override\n public T1 value(PropertyGroup propertyGroup)\n {\n return valueType(propertyGroup).value;\n }\n\n @Override\n public Optional<T1> optionalValue(PropertyGroup propertyGroup)\n {\n return Optional.ofNullable(valueType(propertyGroup).value);\n }\n\n private Pair<Optional<String>, Value<T1>> validatedValueType(PropertyGroup propertyGroup)\n {\n final Optional<Pair<String, Object>> foundPropNameAndValue = Stream\n .of(name, alias, deprecatedName)\n .map(propName -> Pair.of(propName, propertyGroup.get(propName)))\n .filter(pair -> pair.getRight() != null)\n .findFirst();\n\n final Optional<String> usedPropName = foundPropNameAndValue.map(Pair::getLeft);\n final Object value = foundPropNameAndValue.map(Pair::getRight).orElse(null);\n\n if (value == null)\n {\n if (defaultValue != null)\n {\n\n /* Note that we don't validate defaultValue: this is because for a PropertySpec<T>, default\n * values are specified as the type of the final value, T. Validation however is specified\n * as Function<Object, Boolean>, where the input is of whatever type was passed in: this\n * means that attempting to change the behaviour so that we validate the default value\n * would mean converting T to whatever came in (which may not be a string). */\n return Pair.of(usedPropName, (Value<T1>) defaultValue);\n }\n if (isRequired(propertyGroup))\n {\n throw new ValidationException(this, \"Missing required property\");\n }\n // No need to validate null\n return Pair.of(usedPropName, (Value<T1>) Value.empty);\n }\n\n if (valueOptions != null && (value instanceof String || value instanceof Boolean))\n {\n final String strVal = value.toString();\n\n final Optional<Value<T>> matchingOption = valueOptions.stream()\n .filter(option -> option.id.equalsIgnoreCase(strVal))\n .findFirst();\n\n if (matchingOption.isPresent())\n {\n return Pair.of(usedPropName, (Value<T1>) matchingOption.get());\n }\n\n if (valueOptionsMustMatch)\n {\n List<String> optionIds = valueOptions.stream().map(v -> v.id).collect(Collectors.toList());\n throw new ValidationException(this,\n String.format(\"Given value \\\"%s\\\" is not available in options: %s\", strVal, optionIds));\n }\n }\n\n if (valueMethod == null)\n {\n throw new ValidationException(this,\n String.format(\n \"Value method is null with value '%s' - are you passing in an invalid choice for an option spec?\",\n value));\n }\n\n //Use validation method\n if (validationMethod != null && !validationMethod.apply(value))\n {\n if (validationRegex != null)\n throw new ValidationException(this,\n String.format(\"Regexp \\\"%s\\\" failed for value: \\\"%s\\\"\", validationRegex, value));\n else\n throw new ValidationException(this,\n String.format(\"validationMethod failed for value: \\\"%s\\\"\", value));\n }\n\n return Pair.of(usedPropName, Value.of((T1) valueMethod.apply(value), category));\n }\n\n @Override\n public Value<T1> valueType(PropertyGroup propertyGroup)\n {\n return validatedValueType(propertyGroup).getRight();\n }\n\n @Override\n public boolean isRequired()\n {\n return required && defaultValue == null;\n }\n\n @Override\n public boolean isRequired(PropertyGroup propertyGroup)\n {\n return isRequired() &&\n //if the parent choice isn't selected then mark this not required\n (dependsOn == null || dependsOn.valueType(propertyGroup).category.get().equals(category));\n }\n\n @Override\n public boolean isOptionsOnly()\n {\n return valueMethod == null && valueOptions != null && valueOptionsMustMatch;\n }\n\n @Override\n public Optional<Collection<Value<T1>>> options()\n {\n return Optional.ofNullable((Collection) valueOptions);\n }\n\n @Override\n public Optional<String> validate(PropertyGroup propertyGroup) throws ValidationException\n {\n return validatedValueType(propertyGroup).getLeft();\n }\n\n @Override\n public String toString()\n {\n return \"DefaultPropertySpec(\" + this.name() + \")\";\n }\n };\n }", "@Test\n\tpublic void testCreateNullCarMake() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = null;\n\t\tString _model = \"invalid_model\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1990;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a null make car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\t}", "public void testChangePropertyHandler_null() {\n try {\n new ChangePropertyHandler(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n\n }", "public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }" ]
[ "0.6251714", "0.6232443", "0.5817417", "0.5730837", "0.5683587", "0.5622684", "0.5490262", "0.54837954", "0.5462928", "0.54282105", "0.54251754", "0.53834856", "0.5335751", "0.5329773", "0.53187084", "0.5316096", "0.5285556", "0.52848774", "0.52745366", "0.5257471", "0.52394384", "0.5219968", "0.52155256", "0.52155256", "0.5208838", "0.52018464", "0.51708204", "0.5161279", "0.5151319", "0.51420146", "0.5130194", "0.512889", "0.5112009", "0.511148", "0.5110346", "0.5105998", "0.50984484", "0.50960124", "0.5094062", "0.5094031", "0.50866115", "0.50807166", "0.5079241", "0.5052388", "0.5050103", "0.50496143", "0.50446427", "0.5025209", "0.50211567", "0.502097", "0.4998844", "0.49954784", "0.49882033", "0.49704227", "0.49602902", "0.49570373", "0.49355188", "0.49304047", "0.49282357", "0.49196693", "0.491786", "0.48948509", "0.4889969", "0.48874882", "0.4881067", "0.48618805", "0.48335442", "0.48242635", "0.48227897", "0.48173943", "0.4817231", "0.4814875", "0.4799287", "0.47916818", "0.47913477", "0.47882164", "0.47839397", "0.4782129", "0.47789752", "0.4773292", "0.4771806", "0.475832", "0.47559035", "0.47494677", "0.47388282", "0.47366947", "0.47177464", "0.47145653", "0.47104856", "0.470972", "0.47071323", "0.4705493", "0.4691454", "0.46861768", "0.4685592", "0.4685592", "0.4684342", "0.46833342", "0.46825448", "0.4674112" ]
0.6972142
0
Create a new NOT NULL specification for an Association.
public static <T> AssociationNotNullSpecification<T> isNotNull( Association<T> association ) { return new AssociationNotNullSpecification<>( association( association ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> AssociationNullSpecification<T> isNull( Association<T> association )\n {\n return new AssociationNullSpecification<>( association( association ) );\n }", "@Test\n public void testAssocOneWithNullAssoc() {\n\n Database server = DB.getDefault();\n\n final ProductConfiguration pc = new ProductConfiguration();\n pc.setName(\"PC1\");\n server.save(pc);\n\n CalculationResult r = new CalculationResult();\n final Double charge = 100.0;\n r.setCharge(charge);\n r.setProductConfiguration(pc);\n r.setGroupConfiguration(null);\n server.save(r);\n }", "Relationship createRelationship();", "@Override\n\tpublic void createAgence(Agence a) {\n\t\t\n\t}", "InvoiceSpecification createInvoiceSpecification();", "@Test(expected = NullPointerException.class)\r\n\tpublic void createWithNullAnchor() {\r\n\t\tnew WeldJoint<Body>(b1, b2, null);\r\n\t}", "public ConstraintDefinition() {\n\t\tthis(\"\");\n\t}", "ForeignKey createForeignKey();", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"\");\n String[] stringArray0 = new String[6];\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint(\"oq\", false, defaultDBTable0, stringArray0, defaultDBTable0, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n StringBuilder stringBuilder0 = SQLUtil.createConstraintSpecBuilder(dBForeignKeyConstraint0, nameSpec0);\n assertEquals(\"\", stringBuilder0.toString());\n }", "Definition createDefinition();", "public void setNilCascadeType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2011.metadata.CascadeType target = null;\r\n target = (com.microsoft.schemas.xrm._2011.metadata.CascadeType)get_store().find_element_user(CASCADETYPE$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2011.metadata.CascadeType)get_store().add_element_user(CASCADETYPE$0);\r\n }\r\n target.setNil();\r\n }\r\n }", "void setNilConstraints();", "Relation createRelation();", "public void testGetObjectSpecificationWithNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'B'.\", TYPE_NUMBER, object.getType());\r\n }", "EReference createEReference();", "Optional<CompositionSpaceToDraftAssociation> opt(UUID compositionSpaceId);", "public RelationshipElement ()\n\t{\n\t\tthis(null, null);\n\t}", "Cascade createCascade();", "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n DBSchema dBSchema0 = new DBSchema((String) null);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable((String) null, dBSchema0);\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint(\" start/stop selectivity is : \", false, defaultDBTable0, (String[]) null, defaultDBTable0, (String[]) null);\n StringBuilder stringBuilder0 = new StringBuilder();\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n StringBuilder stringBuilder1 = SQLUtil.appendConstraintName((DBConstraint) dBForeignKeyConstraint0, stringBuilder0, nameSpec0);\n SQLUtil.addOptionalCondition((String) null, stringBuilder1);\n assertEquals(\"CONSTRAINT \\\" start/stop selectivity is : \\\" or null\", stringBuilder1.toString());\n assertEquals(\"CONSTRAINT \\\" start/stop selectivity is : \\\" or null\", stringBuilder0.toString());\n }", "Constraint createConstraint();", "Constraint createConstraint();", "NullValue createNullValue();", "NullValue createNullValue();", "public Relationship() {\r\n\t}", "private Element generateEmptyOutboundElem(XmlProcessor hqmfXmlProcessor) {\n\t\tElement outboundRelElem = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\toutboundRelElem.setAttribute(TYPE_CODE, \"COMP\");\n\t\treturn outboundRelElem;\n\t}", "@Override\n\tpublic void create(ConditionalCharacteristicSpecification acs) {\n\n\t}", "public Absence() {\n this(DSL.name(\"Absence\"), null);\n }", "public void createConstraint(ConstraintConfig constraintConfig) throws ConfigurationException;", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[3];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, (String) null, false, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n StringBuilder stringBuilder0 = SQLUtil.createConstraintSpecBuilder(dBUniqueConstraint0, nameSpec0);\n StringBuilder stringBuilder1 = stringBuilder0.append('8');\n SQLUtil.addRequiredCondition(\"Unknown constraint type: \", stringBuilder1);\n assertEquals(\"8 and Unknown constraint type: \", stringBuilder1.toString());\n assertEquals(\"8 and Unknown constraint type: \", stringBuilder0.toString());\n }", "@Test\n public void shouldCreateContractWithPreconditions() {\n // Given\n final Clause precondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause precondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPreconditions(precondition1, precondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n }", "public void testInheritanceEditMetadataForMakeParentNullNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\t\t\t\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId().toString());\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), specimen);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(null);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tassertTrue(true);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertNull(savedTissueSpecimen.getParentEntity());\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(0, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public void testassociate7() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setModificationDate(new Date());\r\n address.setCreationDate(null);\r\n this.dao.associate(address, 1, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "DataCfgTableInfo createTableIfNotExists(String dataCfgOid);", "public void testGetObjectSpecificationWithNotFoundNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", null);\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "void addAssociation(Association association);", "public void testCtorWithNullTransferable() throws Exception {\n try {\n new PasteAssociationAction(null, namespace);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public void testassociate8() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setModificationDate(new Date());\r\n address.setModificationDate(null);\r\n this.dao.associate(address, 1, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "public void testGetObjectSpecificationWithNonNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\",\r\n \"identifier\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertEquals(\"Identifier should be 'identifier'.\", \"identifier\", object.getIdentifier());\r\n assertEquals(\"Type should be 'java.lang.Object'.\", TYPE_OBJECT, object.getType());\r\n }", "public void testAddPaymentTerm_NullCreationUser() throws Exception {\r\n try {\r\n PaymentTerm paymentTerm = this.getPaymentTermWithOutId();\r\n paymentTerm.setCreationUser(null);\r\n this.getManager().addPaymentTerm(paymentTerm);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"The creation user of PaymentTerm to be added should not be null\") >= 0);\r\n }\r\n }", "SchemaDefinition createSchemaDefinition();", "private Element createXmlElementForUndefined(Undefined undefined, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_UNDEFINED);\n\t\treturn element;\n\t}", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n DBSchema dBSchema0 = new DBSchema((String) null);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable((String) null, dBSchema0);\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint(\" start/stop selectivity is : \", false, defaultDBTable0, (String[]) null, defaultDBTable0, (String[]) null);\n StringBuilder stringBuilder0 = new StringBuilder();\n NameSpec nameSpec0 = NameSpec.NEVER;\n StringBuilder stringBuilder1 = SQLUtil.appendConstraintName((DBConstraint) dBForeignKeyConstraint0, stringBuilder0, nameSpec0);\n assertEquals(\"\", stringBuilder1.toString());\n }", "@Test\n public void shouldCreateEmptyContractWithoutPreconditions() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertTrue(\"The empty contract has unknown preconditions!\", contract.preconditions().length == 0);\n Assert.assertTrue(\"The empty contract has unknown postconditions!\", contract.postconditions().length == 0);\n Assert.assertEquals(\"The created contract has the wrong annotation type!\", contract.annotationType(),\n Contract.class);\n }", "public void testAddPaymentTerm_NullDescription() throws Exception {\r\n try {\r\n PaymentTerm paymentTerm = this.getPaymentTermWithOutId();\r\n paymentTerm.setDescription(null);\r\n this.getManager().addPaymentTerm(paymentTerm);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"The description of PaymentTerm to be added should not be null\") >= 0);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[3];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, (String) null, false, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n StringBuilder stringBuilder0 = SQLUtil.createConstraintSpecBuilder(dBUniqueConstraint0, nameSpec0);\n SQLUtil.appendConstraintName((DBConstraint) dBUniqueConstraint0, stringBuilder0);\n assertEquals(\"\", stringBuilder0.toString());\n }", "OrTable createOrTable();", "public void testGetObjectSpecificationWithEmptyKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"\", \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "UMLDomainConcept createUMLDomainConcept();", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.createConstraintSpecBuilder((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testCtorWithNullNamespace() throws Exception {\n try {\n new PasteAssociationAction(transferable, null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public void testConstructorWithMalformedTypeSpecification3() throws Exception {\r\n ConfigurationObject object = createObject(\"name\", TYPE_OBJECT);\r\n object.setPropertyValue(PROPERTY_VALUES, \"{null,null}\");\r\n root.addChild(object);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"SHOP_RECEIVABLE_ENTITY\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE ,\" + // 0: id\n \"\\\"PARTNER_CODE\\\" TEXT,\" + // 1: partnerCode\n \"\\\"ACCOUNT_TYPE\\\" INTEGER,\" + // 2: accountType\n \"\\\"SHOP_BANK\\\" TEXT,\" + // 3: shopBank\n \"\\\"SHOP_PROVINCE\\\" TEXT,\" + // 4: shopProvince\n \"\\\"SHOP_CITY\\\" TEXT,\" + // 5: shopCity\n \"\\\"BANK_BRANCH\\\" TEXT,\" + // 6: bankBranch\n \"\\\"ACCOUNT_NAME\\\" TEXT,\" + // 7: accountName\n \"\\\"BANK_ACCOUNT\\\" TEXT);\"); // 8: bankAccount\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAllowedRegistrationsWithNullReference() throws Exception {\n new DefaultPersonBizPolicyConsultant().setAllowedRegistrationStatusOnCreate(null);\n }", "Assignment createAssignment();", "Assignment createAssignment();", "void addAssociation(AssociationEnd association);", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.createConstraintSpecBuilder((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testCtor() throws Exception {\n PasteAssociationAction pasteAction = new PasteAssociationAction(transferable, namespace);\n\n assertEquals(\"Should return Association instance.\", association, pasteAction.getModelElement());\n }", "@Test\n public void newInstanceHasNoPrimaryKey() {\n TdPicture model = new TdPicture();\n assertFalse(model.isIdSet());\n }", "@Test\n public void constructorThrowsOnNullSelection() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n new QuerySpecificationBuilder(null, QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n });\n }", "public void testConstructorWithComplexTypeWithNullSimpleParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_INT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public void testConstructorWithNullArgument() throws Exception {\r\n try {\r\n new ConfigurationObjectSpecificationFactory(null);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "interface Blank extends AuthorizationRule.DefinitionStages.WithListenOrSendOrManage<WithCreate> {\n }", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "DomainConcept createDomainConcept();", "public void testInheritanceEditMetadataForMakeParentNullWithData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\t\t\t\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(null);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (DynamicExtensionsApplicationException e)\r\n\t\t{\r\n\t\t\tassertTrue(true);\r\n\t\t\tLogger.out.info(\"Application exception is expected to be thrown here\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public AssociationTest(String name) {\n\t\tsuper(name);\n\t}", "private void checkForAssociationConstraint()\n {\n try\n {\n String methodName = String.format(\"%sOptions\", name());\n _associationConstraint = _parent.getJavaClass().getMethod(methodName);\n }\n catch (NoSuchMethodException e)\n {\n // ignore\n }\n }", "@Override\n public boolean createDefendant(AuthContext context, Defendant defendant) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 2);\n try {\n insert(\"TblDefendants\", defendant);\n return true;\n }catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "private void createReferentialIntegrityConstraints() {\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_BOOK_FK) REFERENCES \" + IDaoBooks.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_AUTHOR_FK) REFERENCES \" + IDaoPersons.TABLE + \" (ID) ON UPDATE SET NULL\");\n\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_KIND_FK) REFERENCES \" + SimpleData.DataType.KIND.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LANGUAGE_FK) REFERENCES \" + SimpleData.DataType.LANGUAGE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LENDING_FK) REFERENCES \" + IDaoLendings.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_SAGA_FK) REFERENCES \" + SimpleData.DataType.SAGA.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_TYPE_FK) REFERENCES \" + SimpleData.DataType.TYPE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_EDITOR_FK) REFERENCES \" + IDaoEditors.TABLE + \" (ID) ON UPDATE SET NULL\");\n }", "public T caseAssocRelationshipDefinition(AssocRelationshipDefinition object) {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.createConstraintSpecBuilder((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "boolean isNilConstraints();", "@Override\n\tpublic PersonRelation createRelationshipBetween(Person person,\n\t\t\tPerson relatedPerson, int relationship) {\n\t\treturn null;\n\t}", "@Test\n public void testLoadOptionalBuilderForceCreate()\n throws ConfigurationException\n {\n CombinedConfiguration config = prepareOptionalTest(\"configuration\",\n true);\n assertEquals(\"Wrong number of configurations\", 1, config\n .getNumberOfConfigurations());\n assertTrue(\n \"Wrong optional configuration type\",\n config.getConfiguration(OPTIONAL_NAME) instanceof CombinedConfiguration);\n }", "protected abstract void defineConstraints();", "Attribute createAttribute();", "Attribute createAttribute();", "DomainElement createDomainElement();", "@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "ConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();", "public void testConstructorWithComplexTypeWithNullParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_OBJECT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"name\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'A'.\", TYPE_OBJECT, object.getType());\r\n\r\n Object[] params = object.getParameters();\r\n ObjectSpecification param1 = (ObjectSpecification) params[0];\r\n\r\n assertEquals(\"Object should have 1 param.\", 1, params.length);\r\n assertEquals(\"SpecType of array elements should be null.\",\r\n ObjectSpecification.NULL_SPECIFICATION, param1.getSpecType());\r\n }", "public static void createTable(SQLiteDatabase db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"FEATURE\\\" (\" + //\n \"\\\"ID\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: id\n \"\\\"ADVERTISEMENT_ID\\\" INTEGER,\" + // 1: advertisementId\n \"\\\"DESCRIPTION\\\" TEXT);\"); // 2: description\n }", "public static <T> PropertyNullSpecification<T> isNull( Property<T> property )\n {\n return new PropertyNullSpecification<>( property( property ) );\n }", "com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();", "public EmptyOrganizer(Node node, ModelInstance modelInstance, IProcess parentProcess)\r\n {\r\n super(node, modelInstance, parentProcess);\r\n \r\n String emptyName = getAttribute(\"name\");\r\n element = (IBasicElement) modelInstance.getElement(emptyName);\r\n element.setParentProcess(parentProcess);\r\n ((IActivity)element).setName( emptyName );\r\n String suppresed = getAttribute( ATTRIBUTE_SUPPRESED_JOIN_FAILURE );\r\n \r\n if(suppresed == null)\r\n ((IActivity)element).useActivitySupressJoinFailure();\r\n \r\n ((IActivity)element).setSuppressJoinFailure( Boolean.parseBoolean( suppresed ) );\r\n\r\n empty = (IEmpty) element;\r\n }", "GoalSpecification createGoalSpecification();", "@Test(description = \"update interface with one relationship for non existing interface\")\n public void updateOneRelationship4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestType\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel.getName(),\n \"check that only one relationship is defined\");\n }", "@Test\r\n public void testCreateWithNullDistance() {\r\n ActivityRecord record = setActivityRecord();\r\n record.setDistance(null);\r\n recordDao.create(record);\r\n assertNotNull(record.getId());\r\n }", "void create_relationship(EntityIdentifier id1, EntityIdentifier id2, String description) {\n //a relationship is defined as two entities (table, id) and a description\n\n //description is empty\n if (description.isEmpty()) {\n throw new RuntimeException(\"Description can not be empty.\");\n }\n\n LinkedList<String> attributes = new LinkedList<>();\n attributes.add(id1.toString());\n attributes.add(id2.toString());\n attributes.add(description);\n this.create_entity(\"relationship\", attributes);\n\n }", "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }", "@Override\n public Specification<PriceEntity> createDefaultSpecification(PriceFilter priceFilter) {\n\n log.debug(\"Creating spec of price entity. Filter: {}\", priceFilter);\n Specification<PriceEntity> spec = Specification.where(null);\n\n spec = spec.and((root, cq, cb) -> cb.equal(root.get(\"brandId\"), priceFilter.getBrandId()));\n spec = spec.and((root, cq, cb) -> cb.equal(root.get(\"productId\"), priceFilter.getProductId()));\n spec = spec.and((root, cq, cb) -> cb.and(\n cb.greaterThanOrEqualTo(root.get(\"endDate\"), priceFilter.getDate()),\n cb.lessThanOrEqualTo(root.get(\"startDate\"), priceFilter.getDate())));\n\n return spec;\n }", "public RelationshipElement (RelationshipElement.Impl impl, \n\t\tPersistenceClassElement declaringClass)\n\t{\n\t\tsuper(impl, declaringClass);\n\t}", "NOEMBED createNOEMBED();", "@Test(expected = ConfigurationRuntimeException.class)\n public void testConfigurationDeclarationOptionalAttributeInvalid()\n {\n factory.addProperty(\"xml.fileName\", \"test.xml\");\n DefaultConfigurationBuilder.ConfigurationDeclaration decl = new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory, factory.configurationAt(\"xml\"));\n factory.setProperty(\"xml[@optional]\", \"invalid value\");\n decl.isOptional();\n }", "@Override\n\tpublic IPolicyPricingInfo createEnquiry(ISecurityInfo securityInfo, ICarModelInfo carModelInfo,\n\t\t\tILicenseInfo licenseInfo, IPolicyProductSetInfo policyProductSetInfo, IPolicyQueryInfo policyQueryInfo,\n\t\t\tIPlatformInfo platformInfo, IContextInfo context) throws java.lang.Exception {\n\t\treturn null;\n\t}" ]
[ "0.631583", "0.54181886", "0.52480024", "0.52079856", "0.49846703", "0.4969366", "0.49524224", "0.49001944", "0.48980173", "0.47765142", "0.4764655", "0.47480324", "0.47413608", "0.47410285", "0.47266263", "0.4709077", "0.47051138", "0.469676", "0.46875235", "0.46862748", "0.46827003", "0.46698034", "0.46698034", "0.46436548", "0.46436548", "0.464188", "0.46301913", "0.46246976", "0.4614486", "0.4601573", "0.4582227", "0.4576462", "0.45747972", "0.45726165", "0.4570834", "0.45560646", "0.45542198", "0.45391586", "0.45301723", "0.45275998", "0.4521913", "0.45101562", "0.4506563", "0.45050666", "0.45002842", "0.44996116", "0.448702", "0.44744924", "0.44730622", "0.44687572", "0.4468191", "0.44617927", "0.4461345", "0.44517905", "0.44474578", "0.4444565", "0.4441718", "0.4441718", "0.44361705", "0.4436114", "0.44259316", "0.44134286", "0.44086918", "0.4397759", "0.43933088", "0.43921316", "0.43821806", "0.43753028", "0.43604952", "0.4345806", "0.43457627", "0.43444303", "0.4342994", "0.4341746", "0.43393862", "0.43378046", "0.4334917", "0.432511", "0.43239158", "0.43236503", "0.43236503", "0.43211386", "0.43175447", "0.43158132", "0.43131307", "0.43062484", "0.43054143", "0.42974415", "0.42951682", "0.42852014", "0.4282138", "0.42810053", "0.42788988", "0.4278607", "0.42743376", "0.42671233", "0.4260648", "0.42584088", "0.42564243", "0.42540783" ]
0.61556256
1
Create a new NULL specification for an Association.
public static <T> AssociationNullSpecification<T> isNull( Association<T> association ) { return new AssociationNullSpecification<>( association( association ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> AssociationNotNullSpecification<T> isNotNull( Association<T> association )\n {\n return new AssociationNotNullSpecification<>( association( association ) );\n }", "@Test\n public void testAssocOneWithNullAssoc() {\n\n Database server = DB.getDefault();\n\n final ProductConfiguration pc = new ProductConfiguration();\n pc.setName(\"PC1\");\n server.save(pc);\n\n CalculationResult r = new CalculationResult();\n final Double charge = 100.0;\n r.setCharge(charge);\n r.setProductConfiguration(pc);\n r.setGroupConfiguration(null);\n server.save(r);\n }", "public void testGetObjectSpecificationWithNullKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(null, \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public void testGetObjectSpecificationWithNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'B'.\", TYPE_NUMBER, object.getType());\r\n }", "public void testGetObjectSpecificationWithNotFoundNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", null);\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "public void setNilCascadeType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2011.metadata.CascadeType target = null;\r\n target = (com.microsoft.schemas.xrm._2011.metadata.CascadeType)get_store().find_element_user(CASCADETYPE$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2011.metadata.CascadeType)get_store().add_element_user(CASCADETYPE$0);\r\n }\r\n target.setNil();\r\n }\r\n }", "@Override\n\tpublic void createAgence(Agence a) {\n\t\t\n\t}", "@Test(expected = NullPointerException.class)\r\n\tpublic void createWithNullAnchor() {\r\n\t\tnew WeldJoint<Body>(b1, b2, null);\r\n\t}", "private Element generateEmptyOutboundElem(XmlProcessor hqmfXmlProcessor) {\n\t\tElement outboundRelElem = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\toutboundRelElem.setAttribute(TYPE_CODE, \"COMP\");\n\t\treturn outboundRelElem;\n\t}", "public void testCtorWithNullTransferable() throws Exception {\n try {\n new PasteAssociationAction(null, namespace);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public void testCtorWithNullNamespace() throws Exception {\n try {\n new PasteAssociationAction(transferable, null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }", "public void testGetObjectSpecificationWithEmptyKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"\", \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "public void testConstructorWithComplexTypeWithNullSimpleParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_INT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "void setNilConstraints();", "InvoiceSpecification createInvoiceSpecification();", "NULL createNULL();", "public void testConstructorWithComplexTypeWithNullParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_OBJECT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"name\", null);\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertNull(\"Identifier should be null.\", object.getIdentifier());\r\n assertEquals(\"Type should be 'A'.\", TYPE_OBJECT, object.getType());\r\n\r\n Object[] params = object.getParameters();\r\n ObjectSpecification param1 = (ObjectSpecification) params[0];\r\n\r\n assertEquals(\"Object should have 1 param.\", 1, params.length);\r\n assertEquals(\"SpecType of array elements should be null.\",\r\n ObjectSpecification.NULL_SPECIFICATION, param1.getSpecType());\r\n }", "public void testAddPaymentTerm_NullDescription() throws Exception {\r\n try {\r\n PaymentTerm paymentTerm = this.getPaymentTermWithOutId();\r\n paymentTerm.setDescription(null);\r\n this.getManager().addPaymentTerm(paymentTerm);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"The description of PaymentTerm to be added should not be null\") >= 0);\r\n }\r\n }", "@Test\n public void constructorThrowsOnNullSelection() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n new QuerySpecificationBuilder(null, QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n });\n }", "public void testConstructorWithNullArgument() throws Exception {\r\n try {\r\n new ConfigurationObjectSpecificationFactory(null);\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "@Test\n public void shouldCreateEmptyContract() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n }", "@Test\n public void shouldCreateEmptyContractWithoutPreconditions() {\n // Given\n Contract contract;\n\n // When\n contract = ContractFactory.emptyContract();\n\n // Then\n Assert.assertTrue(\"The empty contract has unknown preconditions!\", contract.preconditions().length == 0);\n Assert.assertTrue(\"The empty contract has unknown postconditions!\", contract.postconditions().length == 0);\n Assert.assertEquals(\"The created contract has the wrong annotation type!\", contract.annotationType(),\n Contract.class);\n }", "public void testGetObjectSpecificationWithNonNullIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n root.addChild(createObject(\"key\", TYPE_NUMBER));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification object = specificationFactory.getObjectSpecification(\"key\",\r\n \"identifier\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n object.getSpecType());\r\n assertEquals(\"Identifier should be 'identifier'.\", \"identifier\", object.getIdentifier());\r\n assertEquals(\"Type should be 'java.lang.Object'.\", TYPE_OBJECT, object.getType());\r\n }", "public void testConstructorWithNullSimpleTypeArray() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_INT, \"2\", \"{{0,1}, {2,null}}\"));\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}", "public Absence() {\n this(DSL.name(\"Absence\"), null);\n }", "public RelationshipElement ()\n\t{\n\t\tthis(null, null);\n\t}", "public void testInheritanceEditMetadataForMakeParentNullNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\t\t\t\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId().toString());\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertEquals(savedTissueSpecimen.getParentEntity(), specimen);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(null);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tassertTrue(true);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.getEntityByIdentifier(savedTissueSpecimen\r\n\t\t\t\t\t.getId());\r\n\t\t\tassertNull(savedTissueSpecimen.getParentEntity());\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(0, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public T caseAssocRelationshipDefinition(AssocRelationshipDefinition object) {\n\t\treturn null;\n\t}", "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "public Relationship() {\r\n\t}", "public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}", "public void test_sb_01() {\n OntModel model= ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM_RDFS_INF, null);\n \n Resource result= null;\n Resource nullValueForResourceType= null;\n \n result= model.createOntResource( OntResource.class, nullValueForResourceType, \"http://www.somewhere.com/models#SomeResourceName\" );\n assertNotNull( result );\n }", "public ConstraintDefinition() {\n\t\tthis(\"\");\n\t}", "NullValue createNullValue();", "NullValue createNullValue();", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"\");\n String[] stringArray0 = new String[6];\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint(\"oq\", false, defaultDBTable0, stringArray0, defaultDBTable0, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n StringBuilder stringBuilder0 = SQLUtil.createConstraintSpecBuilder(dBForeignKeyConstraint0, nameSpec0);\n assertEquals(\"\", stringBuilder0.toString());\n }", "public EmptyOrganizer(Node node, ModelInstance modelInstance, IProcess parentProcess)\r\n {\r\n super(node, modelInstance, parentProcess);\r\n \r\n String emptyName = getAttribute(\"name\");\r\n element = (IBasicElement) modelInstance.getElement(emptyName);\r\n element.setParentProcess(parentProcess);\r\n ((IActivity)element).setName( emptyName );\r\n String suppresed = getAttribute( ATTRIBUTE_SUPPRESED_JOIN_FAILURE );\r\n \r\n if(suppresed == null)\r\n ((IActivity)element).useActivitySupressJoinFailure();\r\n \r\n ((IActivity)element).setSuppressJoinFailure( Boolean.parseBoolean( suppresed ) );\r\n\r\n empty = (IEmpty) element;\r\n }", "EReference createEReference();", "@Override public Type make_nil(byte nil) { return make(nil,_any); }", "public void testConstructorWithMalformedTypeSpecification3() throws Exception {\r\n ConfigurationObject object = createObject(\"name\", TYPE_OBJECT);\r\n object.setPropertyValue(PROPERTY_VALUES, \"{null,null}\");\r\n root.addChild(object);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAllowedRegistrationsWithNullReference() throws Exception {\n new DefaultPersonBizPolicyConsultant().setAllowedRegistrationStatusOnCreate(null);\n }", "@Test\n\tpublic void testCreateNullCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = null;\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an null model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "@Test\n public void setNullApConfiguration() throws Exception {\n /* Initialize WifiApConfigStore with existing configuration. */\n WifiConfiguration expectedConfig = setupApConfig(\n \"ConfiguredAP\", /* SSID */\n \"randomKey\", /* preshared key */\n KeyMgmt.WPA_EAP, /* key management */\n 1, /* AP band (5GHz) */\n 40, /* AP channel */\n true /* Hidden SSID */);\n writeApConfigFile(expectedConfig);\n WifiApConfigStore store = new WifiApConfigStore(\n mContext, mLooper.getLooper(), mBackupManagerProxy, mFrameworkFacade,\n mApConfigFile.getPath());\n verifyApConfig(expectedConfig, store.getApConfiguration());\n\n store.setApConfiguration(null);\n verifyDefaultApConfig(store.getApConfiguration(), TEST_DEFAULT_AP_SSID);\n verify(mBackupManagerProxy).notifyDataChanged();\n }", "public void testAddPaymentTerm_NullCreationUser() throws Exception {\r\n try {\r\n PaymentTerm paymentTerm = this.getPaymentTermWithOutId();\r\n paymentTerm.setCreationUser(null);\r\n this.getManager().addPaymentTerm(paymentTerm);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"The creation user of PaymentTerm to be added should not be null\") >= 0);\r\n }\r\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "@Override\n public Specification<PriceEntity> createDefaultSpecification(PriceFilter priceFilter) {\n\n log.debug(\"Creating spec of price entity. Filter: {}\", priceFilter);\n Specification<PriceEntity> spec = Specification.where(null);\n\n spec = spec.and((root, cq, cb) -> cb.equal(root.get(\"brandId\"), priceFilter.getBrandId()));\n spec = spec.and((root, cq, cb) -> cb.equal(root.get(\"productId\"), priceFilter.getProductId()));\n spec = spec.and((root, cq, cb) -> cb.and(\n cb.greaterThanOrEqualTo(root.get(\"endDate\"), priceFilter.getDate()),\n cb.lessThanOrEqualTo(root.get(\"startDate\"), priceFilter.getDate())));\n\n return spec;\n }", "@Test\n\tpublic void testCreateNullCarMake() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = null;\n\t\tString _model = \"invalid_model\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1990;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a null make car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\t}", "protected abstract T _createEmpty(DeserializationContext ctxt);", "@Override\n\tpublic void create(ConditionalCharacteristicSpecification acs) {\n\n\t}", "public void testConstructorWithNullComplexTypeArray() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_OBJECT, \"1\", \"{object:ob1,object:ob2,null}\"));\r\n root.addChild(createObject(\"object:ob1\", TYPE_OBJECT));\r\n root.addChild(createObject(\"object:ob2\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification array = specificationFactory.getObjectSpecification(\"array1\", null);\r\n\r\n assertEquals(\"SpecType should be array.\", ObjectSpecification.ARRAY_SPECIFICATION, array\r\n .getSpecType());\r\n assertNull(\"Identifier should be null.\", array.getIdentifier());\r\n assertEquals(\"Type should be 'A'.\", TYPE_OBJECT, array.getType());\r\n assertEquals(\"Dimension should be 1.\", 1, array.getDimension());\r\n\r\n Object[] array1 = array.getParameters();\r\n\r\n assertEquals(\"array1[0] should be object:ob1.\", specificationFactory\r\n .getObjectSpecification(\"object\", \"ob1\"), array1[0]);\r\n assertEquals(\"array1[1] should be object:ob2.\", specificationFactory\r\n .getObjectSpecification(\"object\", \"ob2\"), array1[1]);\r\n assertEquals(\"array1[2] should be null.\", ObjectSpecification.NULL_SPECIFICATION,\r\n ((ObjectSpecification) array1[2]).getSpecType());\r\n }", "public void testInheritanceEditMetadataForMakeParentNullWithData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\t//step 2\t\t\t\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\t//step 3\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\t//step 4\r\n\t\t\tEntityInterface savedTissueSpecimen = entityManagerInterface\r\n\t\t\t\t\t.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 5\t\t\t\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\r\n\t\t\tentityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\t//step 6\r\n\t\t\ttissueSpecimen.setParentEntity(null);\r\n\t\t\tsavedTissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\t//step 7\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (DynamicExtensionsApplicationException e)\r\n\t\t{\r\n\t\t\tassertTrue(true);\r\n\t\t\tLogger.out.info(\"Application exception is expected to be thrown here\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.createConstraintSpecBuilder((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testNullMode()\r\n {\r\n try\r\n {\r\n new IncludeDirective( null, null, \"value\", PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.createConstraintSpecBuilder((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Override\n public void setNull() {\n\n }", "public void testNullValue()\r\n {\r\n try\r\n {\r\n new IncludeDirective( IncludeDirective.REF, null, null, PROPERTIES );\r\n fail( \"no-NPE\" );\r\n }\r\n catch( NullPointerException e )\r\n {\r\n // success\r\n }\r\n }", "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }", "public SpecificationFactoryImpl()\r\n {\r\n super();\r\n }", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "ExprNull createExprNull();", "public static <T> PropertyNullSpecification<T> isNull( Property<T> property )\n {\n return new PropertyNullSpecification<>( property( property ) );\n }", "@Test\n public void testConstructTaintFromNullTaint() {\n Taint other = null;\n Taint t = Taint.withLabel(other);\n assertTrue(t.isEmpty());\n }", "public void testConstructorWithNotFoundArrayReference() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_OBJECT, \"1\", \"{object:ob1,object:ob2,null}\"));\r\n root.addChild(createObject(\"object:ob1\", TYPE_OBJECT));\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}", "protected AbstractXmlSpecification() {\n\t\tthis.properties = new Properties();\n\t}", "@Test\n public void constructorThrowsOnNullFromType() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n new QuerySpecificationBuilder(\"*\", null);\n\n // assert\n });\n }", "public PersonBuilderName noID()\n {\n edma_value[0] = null;\n return this;\n }", "public void setNilPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().find_element_user(PRICEENTITY$0, 0);\n if (target == null)\n {\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().add_element_user(PRICEENTITY$0);\n }\n target.setNil();\n }\n }", "@Test\n public void createNewCase_withNoAddressTypeForEstab() throws Exception {\n doCreateNewCaseTest(\n \"Floating palace\", EstabType.OTHER, AddressType.SPG, CaseType.SPG, AddressLevel.U);\n }", "@Test\r\n public void testCreateWithNullDistance() {\r\n ActivityRecord record = setActivityRecord();\r\n record.setDistance(null);\r\n recordDao.create(record);\r\n assertNotNull(record.getId());\r\n }", "@Test\n public void testConstructorWithNullsInQuestion() {\n TestRoutePoliciesAnswerer answerer =\n new TestRoutePoliciesAnswerer(\n new TestRoutePoliciesQuestion(Direction.IN, ImmutableList.of(), null, null), _batfish);\n assertEquals(answerer.getNodeSpecifier(), AllNodesNodeSpecifier.INSTANCE);\n assertEquals(answerer.getPolicySpecifier(), ALL_ROUTING_POLICIES);\n }", "@Test(expectedExceptions = IllegalArgumentException.class)\n void createNullTest() {\n reservationService.create(null);\n }", "public None()\n {\n \n }", "public boolean validatePropertyBasedStatement_NoAssociations(PropertyBasedStatement propertyBasedStatement, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn propertyBasedStatement.NoAssociations(diagnostics, context);\n\t}", "private Element createXmlElementForUndefined(Undefined undefined, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_UNDEFINED);\n\t\treturn element;\n\t}", "@Test\n public void noneCompatibility() {\n Schema s1 = ProtobufData.get().getSchema(Message.ProtoMsgV1.class);\n Schema s2 = ProtobufData.get().getSchema(Message.ProtoMsgV2.class);\n\n //always true\n assertTrue(AvroSchemaCompatibility.NONE_VALIDATOR.isCompatible(s2, s1));\n }", "public M csseDescNull(){if(this.get(\"csseDescNot\")==null)this.put(\"csseDescNot\", \"\");this.put(\"csseDesc\", null);return this;}", "Relationship createRelationship();", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "public void unsetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NULLFLAVOR$28);\n }\n }", "private AgendaItemDefinition() {\r\n \tthis.id = null;\r\n \tthis.agendaId = null;\r\n \tthis.ruleId = null;\r\n \tthis.subAgendaId = null;\r\n \tthis.whenTrueId = null;\r\n \tthis.whenFalseId = null;\r\n \tthis.alwaysId = null;\r\n \t\r\n \tthis.rule = null;\r\n \tthis.subAgenda = null;\r\n \t\r\n \tthis.whenTrue = null;\r\n \tthis.whenFalse = null;\r\n \tthis.always = null;\r\n \t\r\n this.versionNumber = null;\r\n }", "public void testCtor() throws Exception {\n PasteAssociationAction pasteAction = new PasteAssociationAction(transferable, namespace);\n\n assertEquals(\"Should return Association instance.\", association, pasteAction.getModelElement());\n }", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}" ]
[ "0.5783662", "0.57773876", "0.5478119", "0.54686356", "0.5313788", "0.5256434", "0.52524114", "0.5249464", "0.52203447", "0.5068576", "0.5064841", "0.49975294", "0.4992394", "0.49472174", "0.4932326", "0.49210903", "0.49193764", "0.49138373", "0.48884928", "0.48781282", "0.4844966", "0.4834648", "0.48309138", "0.4828508", "0.48151058", "0.4812874", "0.47908664", "0.47868833", "0.47760496", "0.47671214", "0.47494066", "0.47258335", "0.46971378", "0.46931893", "0.46902037", "0.46902037", "0.46805105", "0.46785018", "0.4663462", "0.46558076", "0.46425867", "0.4641892", "0.4641678", "0.46317333", "0.46259952", "0.4614538", "0.4609111", "0.46019402", "0.4599229", "0.459908", "0.45885694", "0.45809823", "0.4574655", "0.45729893", "0.45728672", "0.45722458", "0.45700377", "0.4569472", "0.4567896", "0.45652157", "0.45614734", "0.45606104", "0.45484215", "0.4542714", "0.45260412", "0.45248237", "0.45246962", "0.45221028", "0.45187813", "0.4516185", "0.45153826", "0.45150438", "0.45059073", "0.45008436", "0.449819", "0.44961333", "0.44844222", "0.4472749", "0.44579616", "0.44578636", "0.44571283", "0.44555426", "0.44539866", "0.4452753", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286", "0.44483286" ]
0.6782722
0
Collections | Create a new CONTAINS ALL specification for a Collection Property.
public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty, Iterable<T> values ) { NullArgumentException.validateNotNull( "Values", values ); return new ContainsAllSpecification<>( property( collectionProperty ), values ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsAllSpecification<T> containsAllVariables(\n Property<? extends Collection<T>> collectionProperty,\n Iterable<Variable> variables )\n {\n NullArgumentException.validateNotNull( \"Variables\", variables );\n return new ContainsAllSpecification( property( collectionProperty ), variables );\n }", "boolean containsAll(Collection<?> c);", "@Test\n public void testContainsAll_Contains() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "Collection<? extends WrappedIndividual> getContains();", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new NotImplementedException(\"Not yet implemented\"); \n\t}", "@Override\n\t\tpublic boolean containsAll(Collection<?> c) {\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn set.containsAll(c);\r\n\t}", "@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn false;\n\t}", "public boolean containsAll(Collection<? extends Type> items);", "public boolean containsAll(Collection<?> arg0) {\n\t\treturn false;\n\t}", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n T value )\n {\n NullArgumentException.validateNotNull( \"Value\", value );\n return new ContainsSpecification<>( property( collectionProperty ), value );\n }", "QueryElement addNotEmpty(String collectionProperty);", "public boolean containsAll(Collection coll) {\n\n return elements.keySet().containsAll(coll);\n }", "@Override\n public boolean containsAll(final Collection<?> collection) {\n this.checkCollectionNotNull(collection);\n final Iterator<?> iterator = collection.iterator();\n\n while (iterator.hasNext()) {\n if (!this.contains(iterator.next())) {\n return false;\n }\n }\n\n return true;\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Test\n public void testAddAll_Collection() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(c);\n assertEquals(expResult, result);\n\n }", "@Test\n public void testContainsAll_Not_Contain_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(1, 2, 5, 8);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "@Override\r\n\tpublic boolean containsAll(Collection<?> c)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "@Override\n public boolean containsAll(Collection<?> c) {\n Object[] newArray = c.toArray();\n int check = 0;\n for (int i = 0; i < newArray.length; i++) {\n if (contains(newArray[i]))\n check++;\n }\n if(check == newArray.length) {\n return true;\n }\n return false;\n }", "public boolean containsAll(Collection<?> c) {\n\t\tfor (Object o : c)\n\t\t\tif (!contains(o))\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "@Override\n public boolean containsAll(Collection<?> c) {\n for (Object o : c) {\n if (!contains(o)) {\n return false;\n }\n }\n return true;\n }", "Collection<? extends WrappedIndividual> getHas();", "public boolean containsAll(Collection c) {\r\n Enumeration e = c.elements();\r\n while (e.hasMoreElements())\r\n if(!contains(e.nextElement()))\r\n return false;\r\n\r\n return true;\r\n }", "public boolean containsAll(Collection<?> c) {\n\t\tif(c.size() > size) return false;\r\n\t\tfor(Object e : c) {\r\n\t\t\tif(!contains(e))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean any(String collection);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "void addContains(WrappedIndividual newContains);", "boolean hasAll();", "boolean hasAll();", "QueryElement addOrNotEmpty(String collectionProperty);", "boolean hasContains();", "QueryElement addOrEmpty(String collectionProperty);", "boolean addAll(Collection<? extends E> c);", "@Test\n public void testAddAll_int_Collection() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "public<T> boolean containsAny(final Collection<T> collection, final Filter<T> filter ){\n\t\tfor(T t:query.getOrEmpty(collection)){\n\t\t\tif(filter.applicable(t)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}", "public boolean containsAll(/*@ non_null @*/ java.util.Collection<E> c) {\n java.util.Iterator<E> celems = c.iterator();\n while (celems.hasNext()) {\n E o = celems.next();\n if (!has(o)) {\n return false;\n }\n }\n return true;\n }", "Collection<? extends WrappedIndividual> getIsPartOf();", "public Collection<T> findMatching(Collection<T> all) {\r\n // no criteria means get all\r\n if (criteria == null) {\r\n return all;\r\n }\r\n int count = -1;\r\n int startAt = 0;\r\n if (this.criteria.getStartAtIndex() != null) {\r\n startAt = this.criteria.getStartAtIndex();\r\n }\r\n int maxResults = Integer.MAX_VALUE;\r\n if (this.criteria.getMaxResults() != null) {\r\n maxResults = this.criteria.getMaxResults();\r\n }\r\n List<T> selected = new ArrayList<T>();\r\n for (T obj : all) {\r\n if (matches(obj)) {\r\n count++;\r\n if (count < startAt) {\r\n continue;\r\n }\r\n selected.add(obj);\r\n if (count > maxResults) {\r\n break;\r\n }\r\n }\r\n }\r\n return selected;\r\n }", "boolean retainAll(Collection<?> c);", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tboolean res = true;\n\n\t\tif (c instanceof ConjuntoEnteros) {\n\t\t\tif (((ConjuntoEnteros) c).getInf() != getInf()\n\t\t\t\t\t|| ((ConjuntoEnteros) c).getSup() != getSup())\n\t\t\t\tthrow new IllegalArgumentException();\n\n\t\t\tConjuntoEnteros caux = new ConjuntoEnteros(inf, sup);\n\t\t\tcaux.addAll((ConjuntoEnteros) c);\n\t\t\t((ConjuntoEnteros) caux).getConjunto().andNot(this.getConjunto());\n\t\t\t// RemoveAll en c de los elementos de this\n\t\t\tres = caux.size() == 0;\n\t\t\t// Otra opcion hacer la interseccion de c y this\n\t\t} else {\n\t\t\tfor (Object i : c) {\n\t\t\t\tres = contains(i) && res;\n\t\t\t\tif (!res)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "@Test\r\n public void containsAll() throws Exception {\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(2);\r\n l.add(3);\r\n assertTrue(sInt.containsAll(l));\r\n l.add(7);\r\n assertFalse(sInt.containsAll(l));\r\n }", "public boolean containsAll(Collection<? extends T> items) {\n\n\t\tIterator<? extends T> itr = items.iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tif (!this.contains(itr.next())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void testAddAll_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(c);\n assertEquals(expResult, result);\n\n }", "@Override\n public boolean addAll(Collection<? extends Integer> clctn) {\n for(int i : clctn){\n if(!definedOn.contains(i)){\n return false;\n }\n }\n \n return super.addAll(clctn);\n }", "@Test\r\n\tpublic void testContainsAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tAssert.assertTrue(list.containsAll(sample));\r\n\t\tsample.add(new Munitions(2, 2, \"iron\"));\r\n\t\tAssert.assertFalse(list.containsAll(sample));\r\n\t}", "Collection<? extends WrappedIndividual> getHasPart();", "public<T> boolean containsOnly(final Collection<T> collection, final Filter<T> filter ){\t\t\n\t\tfor(T t:query.getOrEmpty(collection)){\n\t\t\tif(!filter.applicable(t)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean containsAll(Collection keys) {\r\n\r\n\t\treturn data.containsAll(keys);\r\n\t}", "public Query all(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.ALL), key, value);\n return this;\n }", "@Override\r\n\tpublic boolean retainAll(Collection<?> c) {\n\t\treturn set.retainAll(c);\r\n\t}", "public ListMemberConstraint( Collection existing, boolean caseSensitive )\n {\n if ( null == existing)\n {\n existing = new ArrayList();\n }\n m_caseSensitive = caseSensitive;\n m_existingElems = existing;\n }", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "public boolean addAll(Collection<? extends Type> items);", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "public final SelectImpl all() {\n selectAll = true;\n return this;\n }", "public boolean containsAny(ISelect s){\r\n return false;\r\n }", "public AllCollTypes() {\n\t\tsuper(\"ALL_COLL_TYPES\", org.jooq.util.oracle.sys.Sys.SYS);\n\t}", "public RdfPredicateObjectListCollection andHas(RdfPredicate predicate, RdfObject... objects) {\n\t\treturn andHas(Rdf.predicateObjectList(predicate, objects));\n\t}", "@Override\n\tpublic boolean addAll(Collection<? extends E> c) {\n\t\treturn false;\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public boolean addContainsAll(Collection<? extends T> arg0, double prob) {\n\t\tboolean val = false;\n\t\tfor (T t : arg0) {\n\t\t\tif (!contains(t))\n\t\t\t\tval |= add(t, prob);\n\t\t}\n\t\treturn val;\n\t}", "public final EObject ruleCollections() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_s_0_0 = null;\n\n AntlrDatatypeRuleToken lv_c_1_0 = null;\n\n EObject lv_f_2_0 = null;\n\n AntlrDatatypeRuleToken lv_g_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2013:28: ( ( ( (lv_s_0_0= ruleSelectAllCheckboxes ) ) | ( (lv_c_1_0= ruleClickOnAllButtons ) ) | ( (lv_f_2_0= ruleFillAllTextFields ) ) | ( (lv_g_3_0= ruleGoToAllLinks ) ) ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2014:1: ( ( (lv_s_0_0= ruleSelectAllCheckboxes ) ) | ( (lv_c_1_0= ruleClickOnAllButtons ) ) | ( (lv_f_2_0= ruleFillAllTextFields ) ) | ( (lv_g_3_0= ruleGoToAllLinks ) ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2014:1: ( ( (lv_s_0_0= ruleSelectAllCheckboxes ) ) | ( (lv_c_1_0= ruleClickOnAllButtons ) ) | ( (lv_f_2_0= ruleFillAllTextFields ) ) | ( (lv_g_3_0= ruleGoToAllLinks ) ) )\n int alt31=4;\n switch ( input.LA(1) ) {\n case 48:\n {\n alt31=1;\n }\n break;\n case 49:\n {\n alt31=2;\n }\n break;\n case 50:\n {\n alt31=3;\n }\n break;\n case 51:\n {\n alt31=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 31, 0, input);\n\n throw nvae;\n }\n\n switch (alt31) {\n case 1 :\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2014:2: ( (lv_s_0_0= ruleSelectAllCheckboxes ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2014:2: ( (lv_s_0_0= ruleSelectAllCheckboxes ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2015:1: (lv_s_0_0= ruleSelectAllCheckboxes )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2015:1: (lv_s_0_0= ruleSelectAllCheckboxes )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2016:3: lv_s_0_0= ruleSelectAllCheckboxes\n {\n \n \t newCompositeNode(grammarAccess.getCollectionsAccess().getSSelectAllCheckboxesParserRuleCall_0_0()); \n \t \n pushFollow(FOLLOW_ruleSelectAllCheckboxes_in_ruleCollections4076);\n lv_s_0_0=ruleSelectAllCheckboxes();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCollectionsRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"s\",\n \t\tlv_s_0_0, \n \t\t\"SelectAllCheckboxes\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2033:6: ( (lv_c_1_0= ruleClickOnAllButtons ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2033:6: ( (lv_c_1_0= ruleClickOnAllButtons ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2034:1: (lv_c_1_0= ruleClickOnAllButtons )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2034:1: (lv_c_1_0= ruleClickOnAllButtons )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2035:3: lv_c_1_0= ruleClickOnAllButtons\n {\n \n \t newCompositeNode(grammarAccess.getCollectionsAccess().getCClickOnAllButtonsParserRuleCall_1_0()); \n \t \n pushFollow(FOLLOW_ruleClickOnAllButtons_in_ruleCollections4103);\n lv_c_1_0=ruleClickOnAllButtons();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCollectionsRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"c\",\n \t\tlv_c_1_0, \n \t\t\"ClickOnAllButtons\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2052:6: ( (lv_f_2_0= ruleFillAllTextFields ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2052:6: ( (lv_f_2_0= ruleFillAllTextFields ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2053:1: (lv_f_2_0= ruleFillAllTextFields )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2053:1: (lv_f_2_0= ruleFillAllTextFields )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2054:3: lv_f_2_0= ruleFillAllTextFields\n {\n \n \t newCompositeNode(grammarAccess.getCollectionsAccess().getFFillAllTextFieldsParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleFillAllTextFields_in_ruleCollections4130);\n lv_f_2_0=ruleFillAllTextFields();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCollectionsRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"f\",\n \t\tlv_f_2_0, \n \t\t\"FillAllTextFields\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n case 4 :\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2071:6: ( (lv_g_3_0= ruleGoToAllLinks ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2071:6: ( (lv_g_3_0= ruleGoToAllLinks ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2072:1: (lv_g_3_0= ruleGoToAllLinks )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2072:1: (lv_g_3_0= ruleGoToAllLinks )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2073:3: lv_g_3_0= ruleGoToAllLinks\n {\n \n \t newCompositeNode(grammarAccess.getCollectionsAccess().getGGoToAllLinksParserRuleCall_3_0()); \n \t \n pushFollow(FOLLOW_ruleGoToAllLinks_in_ruleCollections4157);\n lv_g_3_0=ruleGoToAllLinks();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCollectionsRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"g\",\n \t\tlv_g_3_0, \n \t\t\"GoToAllLinks\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public boolean addAll(Collection added)\n {\n boolean ret = super.addAll(added);\n normalize();\n return(ret);\n }", "QueryElement addEmpty(String collectionProperty);", "@Override\n\t\tpublic boolean addAll(Collection<? extends Community> c) {\n\t\t\treturn false;\n\t\t}", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "@Test\n public void initializeByAddAll() {\n List<Integer> lst1 = new ArrayList<>();\n\n // Add all from Java 9+ List.of\n lst1.addAll(List.of(3, 1, 2));\n\n // Add all from Arrays.asList\n lst1.addAll(Arrays.asList(5, 4, 6));\n\n // Add all from Java 9+ Set.of\n lst1.addAll(Set.of(8, 7, 9));\n\n assertThat(lst1).hasSize(9);\n\n // Add all from an existing collection\n List<Integer> lst2 = new ArrayList<>();\n lst2.addAll(lst1);\n assertThat(lst2).hasSize(9);\n }", "@Test\n public void testRetainAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.retainAll(c);\n\n assertEquals(expectedResult, result);\n }", "public boolean retainAll (Collection<?> collection) {\r\n\t\tboolean result = _list.retainAll (collection);\r\n\t\tHeapSet.heapify (this);\r\n\t\treturn result;\r\n\t}", "QueryElement addLikeWithWildcardSetting(String property, String value);", "public boolean allAre(ISelect s){\r\n return true; \r\n }", "@Override\n\t\tpublic boolean retainAll(Collection<?> c) {\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic boolean retainAll(Collection<?> c) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean retainAll(Collection<?> c) {\n\t\treturn false;\r\n\t}", "public boolean isInterestedInAllItems();", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "@Override\n\tpublic boolean retainAll(Collection<?> c) {\n\t\treturn false;\n\t}", "public final AntlrDatatypeRuleToken ruleSelectAllCheckboxes() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n enterRule(); \n \n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2109:28: (kw= 'selectAllCheckBoxes' )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2111:2: kw= 'selectAllCheckBoxes'\n {\n kw=(Token)match(input,48,FOLLOW_48_in_ruleSelectAllCheckboxes4242); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getSelectAllCheckboxesAccess().getSelectAllCheckBoxesKeyword()); \n \n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override // java.util.Collection\n public final boolean addAll(Collection<? extends C0472aH> collection) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "@Test\n public void testAddAll_int_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public <T> Collection<T> initialize(Collection<T> entities);", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "public void containsAnyIn(Iterable<?> expected) {\n containsAny(\"contains any element in\", expected);\n }", "boolean removeAll(Collection<?> c);", "@Override // java.util.Collection, java.util.Set\r\n public boolean addAll(Collection<? extends E> collection) {\r\n b(this.f513d + collection.size());\r\n boolean added = false;\r\n Iterator<? extends E> it = collection.iterator();\r\n while (it.hasNext()) {\r\n added |= add(it.next());\r\n }\r\n return added;\r\n }", "public boolean retainAll(Collection arg0) {\r\n\r\n\t\treturn data.retainAll(arg0);\r\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAny(EntityField field, String... values);", "@Override\n public boolean addAll(Collection<? extends E> c) {\n boolean result = true;\n for (E current : c) {\n result &= add(current);\n }\n return result;\n }", "void addAll(Collection<Book> books);", "@Override // java.util.Collection\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean containsAll(java.util.Collection r8) {\n /*\n r7 = this;\n int[] r6 = r7.A00\n java.lang.String r0 = \"elements\"\n X.C0514bB.A02(r8, r0)\n boolean r0 = r8.isEmpty()\n r5 = 1\n if (r0 != 0) goto L_0x003d\n java.util.Iterator r4 = r8.iterator()\n L_0x0012:\n boolean r0 = r4.hasNext()\n if (r0 == 0) goto L_0x003d\n java.lang.Object r1 = r4.next()\n boolean r0 = r1 instanceof X.C0472aH\n if (r0 == 0) goto L_0x003c\n X.aH r1 = (X.C0472aH) r1\n int r3 = r1.A00\n java.lang.String r0 = \"$this$contains\"\n X.C0514bB.A02(r6, r0)\n java.lang.String r0 = \"$this$indexOf\"\n X.C0514bB.A02(r6, r0)\n int r2 = r6.length\n r1 = 0\n L_0x0030:\n if (r1 >= r2) goto L_0x003c\n r0 = r6[r1]\n if (r3 != r0) goto L_0x0039\n if (r1 < 0) goto L_0x003c\n goto L_0x0012\n L_0x0039:\n int r1 = r1 + 1\n goto L_0x0030\n L_0x003c:\n r5 = 0\n L_0x003d:\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C0473aI.containsAll(java.util.Collection):boolean\");\n }", "@Nonnull\r\n\tpublic static <T> Observable<Boolean> all(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, Boolean> predicate) {\r\n\t\treturn new Containment.All<T>(source, predicate);\r\n\t}", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }" ]
[ "0.65770596", "0.64533055", "0.6401161", "0.6255979", "0.6107307", "0.605197", "0.6045117", "0.6012444", "0.5983889", "0.5908711", "0.5889675", "0.5843345", "0.5801124", "0.5741716", "0.5737421", "0.56703216", "0.5657398", "0.55815554", "0.55697083", "0.55693126", "0.5555698", "0.55382276", "0.5535744", "0.55122775", "0.5481498", "0.5446943", "0.5413003", "0.537854", "0.5345583", "0.5340273", "0.5317331", "0.53098166", "0.53098166", "0.5290449", "0.526137", "0.52540904", "0.5246582", "0.52292085", "0.5201616", "0.518248", "0.5177964", "0.51697016", "0.51593024", "0.5125237", "0.5099718", "0.5097383", "0.5080094", "0.5073293", "0.5043087", "0.5008627", "0.50004184", "0.49918503", "0.49835142", "0.49834558", "0.49628404", "0.49618354", "0.49538848", "0.4950371", "0.49367255", "0.49337178", "0.4910791", "0.48907676", "0.4887801", "0.48803532", "0.48438832", "0.48252058", "0.4819739", "0.48106772", "0.4788532", "0.478799", "0.47865838", "0.47824273", "0.47812167", "0.4780782", "0.47787884", "0.47619507", "0.47617257", "0.47607496", "0.47563642", "0.47434035", "0.47434035", "0.4734794", "0.47281674", "0.47256532", "0.47206554", "0.4719148", "0.47127715", "0.47036573", "0.46921375", "0.46884277", "0.46817866", "0.4680837", "0.46789566", "0.46756774", "0.4668458", "0.4665728", "0.466507", "0.46547166", "0.46528408", "0.4651759" ]
0.6905596
0
Create a new CONTAINS ALL specification for a Collection Property using named Variables.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsAllSpecification<T> containsAllVariables( Property<? extends Collection<T>> collectionProperty, Iterable<Variable> variables ) { NullArgumentException.validateNotNull( "Variables", variables ); return new ContainsAllSpecification( property( collectionProperty ), variables ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty,\n Iterable<T> values )\n {\n NullArgumentException.validateNotNull( \"Values\", values );\n return new ContainsAllSpecification<>( property( collectionProperty ), values );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "boolean containsAll(Collection<?> c);", "@Test\n public void testContainsAll_Contains() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "Collection<? extends WrappedIndividual> getContains();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public boolean containsAll(Collection<?> arg0) {\n\t\treturn false;\n\t}", "public boolean containsAll(Collection<? extends Type> items);", "public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n T value )\n {\n NullArgumentException.validateNotNull( \"Value\", value );\n return new ContainsSpecification<>( property( collectionProperty ), value );\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new NotImplementedException(\"Not yet implemented\"); \n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "QueryElement addNotEmpty(String collectionProperty);", "boolean any(String collection);", "@Override\r\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn set.containsAll(c);\r\n\t}", "@Override\n\t\tpublic boolean containsAll(Collection<?> c) {\n\t\t\treturn false;\n\t\t}", "void addContains(WrappedIndividual newContains);", "public boolean containsAll(Collection coll) {\n\n return elements.keySet().containsAll(coll);\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn false;\n\t}", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "boolean hasContains();", "public Structure select(List<String> memberNames) {\n Structure result = copy();\n List<Variable> members = new ArrayList<>();\n for (String name : memberNames) {\n Variable m = findVariable(name);\n if (null != m)\n members.add(m);\n }\n result.setMemberVariables(members);\n result.isSubset = true;\n return result;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAny(EntityField field, String... values);", "public ConstraintExt(ArrayList<String> var) {\n\t\tsuper(var);\n\t\tvalTuples = new HashSet<ArrayList<Object>>();\n\t}", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "QueryElement addLikeWithWildcardSetting(String property, String value);", "CollectionParameter createCollectionParameter();", "public Collection<T> findMatching(Collection<T> all) {\r\n // no criteria means get all\r\n if (criteria == null) {\r\n return all;\r\n }\r\n int count = -1;\r\n int startAt = 0;\r\n if (this.criteria.getStartAtIndex() != null) {\r\n startAt = this.criteria.getStartAtIndex();\r\n }\r\n int maxResults = Integer.MAX_VALUE;\r\n if (this.criteria.getMaxResults() != null) {\r\n maxResults = this.criteria.getMaxResults();\r\n }\r\n List<T> selected = new ArrayList<T>();\r\n for (T obj : all) {\r\n if (matches(obj)) {\r\n count++;\r\n if (count < startAt) {\r\n continue;\r\n }\r\n selected.add(obj);\r\n if (count > maxResults) {\r\n break;\r\n }\r\n }\r\n }\r\n return selected;\r\n }", "public void setSelectClauseVarList( List<String> listVars ) ;", "public static PropertyFilter getDocumentPropertyFilter(\n Set<String> includedMetaNames) {\n Set<String> filterSet = new HashSet<String>();\n if (includedMetaNames != null) {\n filterSet.addAll(includedMetaNames);\n }\n filterSet.add(PropertyNames.ID);\n filterSet.add(PropertyNames.CLASS_DESCRIPTION);\n filterSet.add(PropertyNames.CONTENT_ELEMENTS);\n filterSet.add(PropertyNames.DATE_LAST_MODIFIED);\n filterSet.add(PropertyNames.MIME_TYPE);\n filterSet.add(PropertyNames.VERSION_SERIES);\n filterSet.add(PropertyNames.VERSION_SERIES_ID);\n filterSet.add(PropertyNames.RELEASED_VERSION);\n filterSet.add(PropertyNames.OWNER);\n filterSet.add(PropertyNames.PERMISSIONS);\n filterSet.add(PropertyNames.PERMISSION_TYPE);\n filterSet.add(PropertyNames.PERMISSION_SOURCE);\n\n StringBuilder buf = new StringBuilder();\n for (String filterName : filterSet) {\n buf.append(filterName).append(\" \");\n }\n buf.deleteCharAt(buf.length() - 1);\n\n PropertyFilter filter = new PropertyFilter();\n filter.addIncludeProperty(\n new FilterElement(null, null, null, buf.toString(), null));\n return filter;\n }", "@Test(expected=IllegalArgumentException.class)\n public void testNamedParamValueInCollectionTypeValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, \"Moo\"));\n }", "public static SearchSourceBuilder buildGetAllLidVidsRequest(Collection<String> lids)\n {\n if(lids == null || lids.isEmpty()) return null;\n \n SearchSourceBuilder src = new SearchSourceBuilder();\n src.query(QueryBuilders.termsQuery(\"lid\", lids)).fetchSource(false).size(5000);\n return src;\n }", "QueryElement addOrEmpty(String collectionProperty);", "public Query all(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.ALL), key, value);\n return this;\n }", "public ListMemberConstraint( Collection existing, boolean caseSensitive )\n {\n if ( null == existing)\n {\n existing = new ArrayList();\n }\n m_caseSensitive = caseSensitive;\n m_existingElems = existing;\n }", "public ArrayList<Predicate> generateGroundings(final Collection<Litereal> param){\n\t\tArrayList<Litereal> objects = new ArrayList<>();\n\t\tobjects.addAll(PddlProblem.consObjects);\n\t\tfor (Litereal litereal : param) {\n\t\t\tif(!PddlProblem.consObjects.contains(litereal)){\n\t\t\t\tobjects.add(litereal);\n\t\t\t}\n\t\t}\n\n\n\t\tArrayList<Predicate> result = new ArrayList<>();\n\n\t\tLitereal litereals[]= new Litereal[this.objects.size()];\n\t\tgenerate(result, objects, litereals, 0);\n\n\t\treturn result;\n\t}", "Collection<? extends WrappedIndividual> getHas();", "CollectionLiteralExp createCollectionLiteralExp();", "List<E> queryAll(String namedQuery);", "public ContainsNamedTypeChecker(Set<String> names) {\n myNames.addAll(names);\n }", "@Override\n public boolean addAll(Collection<? extends Integer> clctn) {\n for(int i : clctn){\n if(!definedOn.contains(i)){\n return false;\n }\n }\n \n return super.addAll(clctn);\n }", "public RdfPredicateObjectListCollection andHas(RdfPredicate predicate, RdfObject... objects) {\n\t\treturn andHas(Rdf.predicateObjectList(predicate, objects));\n\t}", "public boolean containsAll(Collection keys) {\r\n\r\n\t\treturn data.containsAll(keys);\r\n\t}", "@Test\n public void testAddAll_Collection() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(c);\n assertEquals(expResult, result);\n\n }", "@Test\n public void testContainsAll_Not_Contain_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(1, 2, 5, 8);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "Set<AttributeDef> getAttributeDefsWhereSubjectDoesHavePrivilege(GrouperSession grouperSession,\r\n String stemId, Scope scope, Subject subject, Privilege privilege, boolean considerAllSubject, \r\n String sqlLikeString);", "public abstract ImmutableSet<String> getExplicitlyPassedParameters();", "public boolean containsAll(Collection c) {\r\n Enumeration e = c.elements();\r\n while (e.hasMoreElements())\r\n if(!contains(e.nextElement()))\r\n return false;\r\n\r\n return true;\r\n }", "public boolean containsAll(Collection<?> c) {\n\t\tfor (Object o : c)\n\t\t\tif (!contains(o))\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "@Override\n public boolean containsAll(Collection<?> c) {\n Object[] newArray = c.toArray();\n int check = 0;\n for (int i = 0; i < newArray.length; i++) {\n if (contains(newArray[i]))\n check++;\n }\n if(check == newArray.length) {\n return true;\n }\n return false;\n }", "@Override\n public boolean containsAll(final Collection<?> collection) {\n this.checkCollectionNotNull(collection);\n final Iterator<?> iterator = collection.iterator();\n\n while (iterator.hasNext()) {\n if (!this.contains(iterator.next())) {\n return false;\n }\n }\n\n return true;\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "boolean hasAll();", "boolean hasAll();", "public static SetExpression in(String propertyName, Collection<? extends Object> values) {\n return in(propertyName, values.toArray());\n }", "QueryElement addOrNotEmpty(String collectionProperty);", "public boolean containsAny(ISelect s){\r\n return false;\r\n }", "@Override\n public boolean containsAll(Collection<?> c) {\n for (Object o : c) {\n if (!contains(o)) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "@Override\n public void collectMarkerSpecification(VariableSpecifications boundNames)\n {\n }", "public<T> boolean containsAny(final Collection<T> collection, final Filter<T> filter ){\n\t\tfor(T t:query.getOrEmpty(collection)){\n\t\t\tif(filter.applicable(t)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean containsVars(\n java.lang.String key);", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "void updateFilteredPersonList(Set<String> keywords);", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "boolean containsProperty(String name);", "public AllCollTypes() {\n\t\tsuper(\"ALL_COLL_TYPES\", org.jooq.util.oracle.sys.Sys.SYS);\n\t}", "public static PropertyDescriptionBuilder<Set<String>> setOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<Set<String>> clazz = (Class<Set<String>>)(Class<?>)Set.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseSet(Parsers::parseString));\n }", "<C> CollectionLiteralExp<C> createCollectionLiteralExp();", "private void generalizeCSACriteria(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Criterion> crit = new ArrayList<Criterion>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\tcrit = this.data.getCriteria();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Criterion cr : crit){\n\t\t\t\ttry {\n\t\t\t\t\tCriterion temp = (Criterion) BeanUtils.cloneBean(cr);\n\t\t\t\t\tc.addCrit(temp);\n\t\t\t\t} catch (IllegalAccessException | InstantiationException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void collect(){\r\n\t\tif (getValues() != null){\r\n\t\t\tfor (Variable var : getValues().getVariables()){\r\n\t\t\t\tdefSelect(var);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final AntlrDatatypeRuleToken ruleSelectAllCheckboxes() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n enterRule(); \n \n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2109:28: (kw= 'selectAllCheckBoxes' )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:2111:2: kw= 'selectAllCheckBoxes'\n {\n kw=(Token)match(input,48,FOLLOW_48_in_ruleSelectAllCheckboxes4242); \n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getSelectAllCheckboxesAccess().getSelectAllCheckBoxesKeyword()); \n \n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\r\n\tpublic boolean containsAll(Collection<?> c)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "void addImports(Set<String> allImports) {\n allImports.add(\"io.ebean.typequery.\" + propertyType);\n }", "public boolean containsAll(Collection<?> c) {\n\t\tif(c.size() > size) return false;\r\n\t\tfor(Object e : c) {\r\n\t\t\tif(!contains(e))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\r\n public void containsAll() throws Exception {\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(2);\r\n l.add(3);\r\n assertTrue(sInt.containsAll(l));\r\n l.add(7);\r\n assertFalse(sInt.containsAll(l));\r\n }", "@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}", "public boolean allAre(ISelect s){\r\n return true; \r\n }", "@Test\n public void query_ALLTag() throws AtlasBaseException {\n SearchParameters params = new SearchParameters();\n params.setClassification(ALL_CLASSIFICATION_TYPES);\n params.setQuery(\"sales\");\n\n List<AtlasEntityHeader> entityHeaders = discoveryService.searchWithParameters(params).getEntities();\n\n Assert.assertTrue(CollectionUtils.isNotEmpty(entityHeaders));\n assertEquals(entityHeaders.size(), 5);\n }", "List findByFilterText(Set<String> words, boolean justIds);", "boolean retainAll(Collection<?> c);", "AggregationBuilder buildExcludeFilteredAggregation(Set<String> excludeNames);", "@Test\n public void testAddAll_int_Collection() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "Collection<? extends WrappedIndividual> getIsPartOf();", "private void addForalls(QuantifiedVariable qvar, List<Condition> conds)\n {\n QuantifiedVariable qvar0 = transform(qvar);\n for (Condition c : conds)\n {\n Expression ce = new ForallExp(qvar0, c.exp);\n conditions.add(c.clone(ce));\n }\n }", "public static void main(String[] args) {\n HashSet<String> food = new HashSet<>();\n food.add(\"Sushi\");\n food.add(\"Sashimi\");\n food.add(\"Pizza\");\n food.add(\"Japadog\");\n food.add(\"Sushi\");\n System.out.println(food.size());\n\n HashSet<String> food2 = new HashSet<>();\n food2.add(\"Pizza\");\n food2.add(\"Pasta\");\n food2.add(\"Sushi\");\n food2.add(\"Taco\");\n food2.add(\"Burrito\");\n food2.add(\"Nachos\");\n food2.add(\"Feijoada\");\n food2.add(\"Coxinha\");\n// food.addAll(food2);\n// food.retainAll(food2); // common\n\n System.out.println(food);\n System.out.println(food.contains(\"Sushi\"));\n }", "public Collection<EqConstraint> getEqConstraints()\n {\n\t\treturn new AbstractUnmodifiableCollection<EqConstraint>() {\n\t\t\t@Override\n\t\t\tpublic int size() {\n\t\t\t\treturn $$eqHashIndex_0.size();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Iterator<EqConstraint> iterator() {\n\t\t\t\treturn lookupEq();\n\t\t\t}\n\t\t};\n\t}", "ValueDeclaration values( Predicate<? super ValueAssembly> specification );", "public boolean addContainsAll(Collection<? extends T> arg0, double prob) {\n\t\tboolean val = false;\n\t\tfor (T t : arg0) {\n\t\t\tif (!contains(t))\n\t\t\t\tval |= add(t, prob);\n\t\t}\n\t\treturn val;\n\t}", "public static void updateCompositeFromAllOption(final AbstractFilenameComposite composite) {\r\n final Iterator iterator = TagOptionSingleton.getInstance().getKeywordIterator();\r\n while (iterator.hasNext()) {\r\n composite.matchAgainstKeyword((Class) iterator.next());\r\n }\r\n }", "public Builder members(Supplier<? extends Collection> collection) {\n return members(collection.get());\n }", "public boolean containsAll(Collection<? extends T> items) {\n\n\t\tIterator<? extends T> itr = items.iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tif (!this.contains(itr.next())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "public<T> boolean containsOnly(final Collection<T> collection, final Filter<T> filter ){\t\t\n\t\tfor(T t:query.getOrEmpty(collection)){\n\t\t\tif(!filter.applicable(t)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public ArrayList<SearchResult> search(Collection<String> queries, boolean exact) {\n\t\treturn exact ? exactSearch(queries) : partialSearch(queries);\n\t}" ]
[ "0.6227403", "0.60336775", "0.5679991", "0.55310476", "0.5469369", "0.5461051", "0.54299235", "0.5157079", "0.51503915", "0.5146486", "0.50349426", "0.50080633", "0.5002354", "0.49794275", "0.49734956", "0.49481872", "0.4936442", "0.49229002", "0.49197897", "0.48735055", "0.48604408", "0.48349336", "0.48145628", "0.47812608", "0.47780973", "0.4770622", "0.4763251", "0.4749229", "0.47293192", "0.47170213", "0.46881044", "0.46842554", "0.46582952", "0.46476907", "0.45957443", "0.45907637", "0.45424232", "0.45410758", "0.45330232", "0.4523821", "0.45176047", "0.45139024", "0.4512672", "0.44968578", "0.44916725", "0.44868279", "0.448348", "0.44741386", "0.44706902", "0.44673017", "0.44653875", "0.44605717", "0.44601387", "0.44460237", "0.4443985", "0.44377524", "0.44278923", "0.44278923", "0.44107902", "0.44087768", "0.43975914", "0.43958214", "0.43955898", "0.4389427", "0.43890217", "0.43727225", "0.43681535", "0.4359437", "0.43401834", "0.43332914", "0.43194366", "0.43154138", "0.43055457", "0.43021694", "0.42977145", "0.42972782", "0.42955682", "0.4291411", "0.42792565", "0.4278595", "0.4278392", "0.42750475", "0.4269487", "0.4267477", "0.4262738", "0.42610717", "0.42595592", "0.42585042", "0.42496592", "0.42476532", "0.4247079", "0.42409906", "0.42377633", "0.4235085", "0.42294022", "0.42159384", "0.42126575", "0.42062396", "0.42046976", "0.41930252" ]
0.74368155
0
Create a new CONTAINS specification for a Collection Property.
public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty, T value ) { NullArgumentException.validateNotNull( "Value", value ); return new ContainsSpecification<>( property( collectionProperty ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "Collection<? extends WrappedIndividual> getContains();", "QueryElement addNotEmpty(String collectionProperty);", "public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty,\n Iterable<T> values )\n {\n NullArgumentException.validateNotNull( \"Values\", values );\n return new ContainsAllSpecification<>( property( collectionProperty ), values );\n }", "QueryElement addOrNotEmpty(String collectionProperty);", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "boolean hasContains();", "void addContains(WrappedIndividual newContains);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> contains(String field, String propertyValue);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsAllSpecification<T> containsAllVariables(\n Property<? extends Collection<T>> collectionProperty,\n Iterable<Variable> variables )\n {\n NullArgumentException.validateNotNull( \"Variables\", variables );\n return new ContainsAllSpecification( property( collectionProperty ), variables );\n }", "QueryElement addLikeWithWildcardSetting(String property, String value);", "@Test\n public void testContainsAll_Contains() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value );\n }", "boolean containsAll(Collection<?> c);", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> contains(EntityField field, String propertyValue);", "QueryElement addOrEmpty(String collectionProperty);", "public static SetExpression contains(String propertyName, Object value) {\n return contains(propertyName, new Object[] { value });\n }", "public abstract QueryElement addLike(String property, Object value);", "<C> CollectionLiteralExp<C> createCollectionLiteralExp();", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "CollectionLiteralExp createCollectionLiteralExp();", "<T> Collection<ProjectEntity> searchWithPropertyValue(\n Class<? extends PropertyType<T>> propertyTypeClass,\n BiFunction<ProjectEntityType, ID, ProjectEntity> entityLoader,\n Predicate<T> predicate\n );", "Collection<? extends WrappedIndividual> getHas();", "public ListMemberConstraint( Collection existing, boolean caseSensitive )\n {\n if ( null == existing)\n {\n existing = new ArrayList();\n }\n m_caseSensitive = caseSensitive;\n m_existingElems = existing;\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new NotImplementedException(\"Not yet implemented\"); \n\t}", "CollectionParameter createCollectionParameter();", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "Collection<? extends WrappedIndividual> getIsPartOf();", "@Override\r\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn set.containsAll(c);\r\n\t}", "@Ignore\r\n @Test\r\n public void testContainsCollection() {\r\n System.out.println(\"containsCollection\");\r\n NumberCollection nc = null;\r\n NumberCollection instance = new NumberCollection();\r\n boolean expResult = false;\r\n boolean result = instance.containsCollection(nc);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public boolean contains(String searchVal) {\n return collection.contains(searchVal);\n }", "public ComplexType searchEdmComplexType(String embeddableTypeName);", "@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "Collection<? extends WrappedIndividual> getHasPart();", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }", "public<T> boolean containsOnly(final Collection<T> collection, final Filter<T> filter ){\t\t\n\t\tfor(T t:query.getOrEmpty(collection)){\n\t\t\tif(!filter.applicable(t)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean contains(SimpleFeature feature);", "public boolean contains(CParamImpl param);", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "List<Cloth> findByNameContaining(String name);", "boolean contains();", "@JsonCreator\n public WithinPredicate(@JsonProperty(\"geometry\") String geometry) {\n Objects.requireNonNull(geometry, \"<geometry> may not be null\");\n try {\n // test if it is a valid WKT\n SearchTypeValidator.validate(OccurrenceSearchParameter.GEOMETRY, geometry);\n } catch (IllegalArgumentException e) {\n // Log invalid strings, but continue - the geometry parser has changed over time, and some once-valid strings\n // are no longer considered valid. See https://github.com/gbif/gbif-api/issues/48.\n LOG.warn(\"Invalid geometry string {}: {}\", geometry, e.getMessage());\n }\n this.geometry = geometry;\n }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "@Override\n\t\tpublic boolean containsAll(Collection<?> c) {\n\t\t\treturn false;\n\t\t}", "public FilterStartsWithNameCommand(CollectionManager col)\n {\n collectionManager = col;\n }", "boolean any(String collection);", "Builder addIsPartOf(String value);", "@Test\n public void testBoundsAsCompositesWithSingleEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3) AND (clustering_1) < (4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n Restriction multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, false, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, EOC.START);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) => (2, 3) AND (clustering_1, clustering_2) <= (4, 5)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, true, value2, value3);\n multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, true, value4, value5);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, value5, EOC.END);\n }", "boolean containsProperty(String name);", "<T> boolean containsValue(Property<T> property);", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public ComplexType searchEdmComplexType(FullQualifiedName type);", "QueryElement addEmpty(String collectionProperty);", "boolean hasCollectionName();", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn false;\n\t}", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "public static PropertyFilter getDocumentPropertyFilter(\n Set<String> includedMetaNames) {\n Set<String> filterSet = new HashSet<String>();\n if (includedMetaNames != null) {\n filterSet.addAll(includedMetaNames);\n }\n filterSet.add(PropertyNames.ID);\n filterSet.add(PropertyNames.CLASS_DESCRIPTION);\n filterSet.add(PropertyNames.CONTENT_ELEMENTS);\n filterSet.add(PropertyNames.DATE_LAST_MODIFIED);\n filterSet.add(PropertyNames.MIME_TYPE);\n filterSet.add(PropertyNames.VERSION_SERIES);\n filterSet.add(PropertyNames.VERSION_SERIES_ID);\n filterSet.add(PropertyNames.RELEASED_VERSION);\n filterSet.add(PropertyNames.OWNER);\n filterSet.add(PropertyNames.PERMISSIONS);\n filterSet.add(PropertyNames.PERMISSION_TYPE);\n filterSet.add(PropertyNames.PERMISSION_SOURCE);\n\n StringBuilder buf = new StringBuilder();\n for (String filterName : filterSet) {\n buf.append(filterName).append(\" \");\n }\n buf.deleteCharAt(buf.length() - 1);\n\n PropertyFilter filter = new PropertyFilter();\n filter.addIncludeProperty(\n new FilterElement(null, null, null, buf.toString(), null));\n return filter;\n }", "public boolean containsAll(Collection<? extends Type> items);", "@Test\n public void testBoundsAsCompositesWithEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n Restriction eq = newSingleEq(cfMetaData, 0, value3);\n\n Restriction slice = newSingleSlice(cfMetaData, 1, Bound.START, false, value1);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.END, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.END, false, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, false, value1);\n Restriction slice2 = newSingleSlice(cfMetaData, 1, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value2, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, true, value1);\n slice2 = newSingleSlice(cfMetaData, 1, Bound.END, true, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value2, EOC.END);\n }", "public static boolean isEntityCollection(final ObjectStreamField property) {\r\n\t\t\treturn Collection.class.isAssignableFrom(property.getType());\r\n\t\t}", "public static <T> Spec<T> intersect(Collection<? extends Spec<T>> specs) {\n if (specs.size() == 0) {\n return satisfyAll();\n }\n return doIntersect(specs);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsIgnoreCase(String field, String propertyValue);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "public abstract QueryElement addOrLike(String property, Object value);", "public<T> boolean containsAny(final Collection<T> collection, final Filter<T> filter ){\n\t\tfor(T t:query.getOrEmpty(collection)){\n\t\t\tif(filter.applicable(t)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "boolean getContainEntities();", "public CollectionFacadeSet(java.util.Collection<java.lang.String> collection) {\n this.collection = collection;\n for (String str : collection) {\n if (contains(str) || str == null) {\n continue;\n }\n add(str);\n }\n }", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "@Test\n public void testContains_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(4);\n assertEquals(expResult, result);\n }", "@Test\n public void testContains_Contain_Overflow_Boundary() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(6);\n assertEquals(expResult, result);\n }", "protected abstract NativeSQLStatement createNativeContainsStatement(Geometry geom);", "@Test\n public void testWithinIndex() {\n\n db.command(new OCommandSQL(\"create class Polygon extends v\")).execute();\n db.command(new OCommandSQL(\"create property Polygon.geometry EMBEDDED OPolygon\")).execute();\n\n db.command(\n new OCommandSQL(\n \"insert into Polygon set geometry = ST_GeomFromText('POLYGON((0 0, 10 0, 10 5, 0 5, 0 0))')\"))\n .execute();\n\n db.command(\n new OCommandSQL(\"create index Polygon.g on Polygon (geometry) SPATIAL engine lucene\"))\n .execute();\n\n List<ODocument> execute =\n db.query(\n new OSQLSynchQuery<ODocument>(\n \"SELECT from Polygon where ST_DWithin(geometry, ST_GeomFromText('POLYGON((12 0, 14 0, 14 6, 12 6, 12 0))'), 2.0) = true\"));\n\n Assert.assertEquals(1, execute.size());\n\n OResultSet resultSet =\n db.query(\n \"SELECT from Polygon where ST_DWithin(geometry, ST_GeomFromText('POLYGON((12 0, 14 0, 14 6, 12 6, 12 0))'), 2.0) = true\");\n\n // Assert.assertEquals(1, resultSet.estimateSize());\n\n resultSet.stream().forEach(r -> System.out.println(\"r = \" + r));\n resultSet.close();\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "@Test\r\n public void testContains() {\r\n System.out.println(\"contains\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = true;\r\n boolean result = instance.contains(o);\r\n assertEquals(expResult, result);\r\n \r\n }", "boolean hasKey(String collection, String hkey);", "public interface IWithCollection<T> {\n\n /**\n * Checks, if passed key exists within collection.\n *\n * @param key given key\n * @return true means, key was found, false otherwise\n */\n boolean contains(String key);\n\n /**\n * Removes all known entries.\n */\n void clear();\n\n /**\n * Return entry with key, if key exists.\n *\n * @param key passed key\n * @return entry with passed key, if found, null otherwise\n */\n T get(String key);\n}", "Collection<? extends Noun> getIsEquivalent();", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.CONTAINS)\n default boolean contains(IData other) {\n \n return notSupportedOperator(OperatorType.CONTAINS);\n }", "public boolean containsAll(Collection<?> arg0) {\n\t\treturn false;\n\t}", "List<TypePatientPropertyCondition> search(String query);", "public Builder members(Supplier<? extends Collection> collection) {\n return members(collection.get());\n }", "public GoodsSkuCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Collection<EqConstraint> getEqConstraints()\n {\n\t\treturn new AbstractUnmodifiableCollection<EqConstraint>() {\n\t\t\t@Override\n\t\t\tpublic int size() {\n\t\t\t\treturn $$eqHashIndex_0.size();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Iterator<EqConstraint> iterator() {\n\t\t\t\treturn lookupEq();\n\t\t\t}\n\t\t};\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsIgnoreCase(EntityField field, String propertyValue);", "public abstract boolean ContainsContactObjects();", "@Test\n public void testContainsAll_Not_Contain_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(1, 2, 5, 8);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Override\r\n\tpublic boolean containsAll(Collection<?> c)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "public RdfPredicateObjectListCollection andHas(RdfPredicate predicate, RdfObject... objects) {\n\t\treturn andHas(Rdf.predicateObjectList(predicate, objects));\n\t}" ]
[ "0.66248226", "0.61239177", "0.5774637", "0.55826485", "0.53767025", "0.5323207", "0.52945393", "0.52654904", "0.5232054", "0.52257323", "0.5186738", "0.51760185", "0.51182365", "0.5076971", "0.5052154", "0.5032201", "0.5014627", "0.5012117", "0.50108", "0.49368477", "0.48722446", "0.48653167", "0.486489", "0.48369202", "0.48195615", "0.4784508", "0.4775782", "0.47708794", "0.47573498", "0.4756508", "0.475019", "0.47315428", "0.47305328", "0.47304115", "0.47126958", "0.4702649", "0.46934086", "0.46916553", "0.46662155", "0.4652561", "0.46321172", "0.46240357", "0.46232313", "0.46206394", "0.46076426", "0.46001476", "0.4593875", "0.4591667", "0.4590714", "0.45746732", "0.45705235", "0.45654058", "0.45524222", "0.45511782", "0.455055", "0.45445454", "0.45384082", "0.45341703", "0.45295426", "0.45249036", "0.45099157", "0.44874728", "0.44871375", "0.44846678", "0.44771278", "0.44736928", "0.44653338", "0.44606858", "0.44592872", "0.4453752", "0.44507283", "0.4444463", "0.44404718", "0.4415481", "0.44138432", "0.43554062", "0.4351495", "0.434856", "0.43458575", "0.4345803", "0.43441597", "0.4337524", "0.43341488", "0.4318282", "0.42979807", "0.42972827", "0.42950192", "0.42932177", "0.42925063", "0.42858976", "0.4282755", "0.42773", "0.42619237", "0.4261362", "0.42597762", "0.42563882", "0.42537847", "0.4233445", "0.42299956", "0.42268088" ]
0.68201387
0
Create a new CONTAINS specification for a Collection Property using named Variables.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty, Variable variable ) { NullArgumentException.validateNotNull( "Variable", variable ); return new ContainsSpecification( property( collectionProperty ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsAllSpecification<T> containsAllVariables(\n Property<? extends Collection<T>> collectionProperty,\n Iterable<Variable> variables )\n {\n NullArgumentException.validateNotNull( \"Variables\", variables );\n return new ContainsAllSpecification( property( collectionProperty ), variables );\n }", "public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n T value )\n {\n NullArgumentException.validateNotNull( \"Value\", value );\n return new ContainsSpecification<>( property( collectionProperty ), value );\n }", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "Collection<? extends WrappedIndividual> getContains();", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> contains(String field, String propertyValue);", "public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty,\n Iterable<T> values )\n {\n NullArgumentException.validateNotNull( \"Values\", values );\n return new ContainsAllSpecification<>( property( collectionProperty ), values );\n }", "void addContains(WrappedIndividual newContains);", "boolean hasContains();", "QueryElement addNotEmpty(String collectionProperty);", "QueryElement addLikeWithWildcardSetting(String property, String value);", "boolean containsProperty(String name);", "public static SetExpression contains(String propertyName, Object value) {\n return contains(propertyName, new Object[] { value });\n }", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "@Test(expected=IllegalArgumentException.class)\n public void testNamedParamValueInCollectionTypeValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, \"Moo\"));\n }", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "CollectionParameter createCollectionParameter();", "List<Cloth> findByNameContaining(String name);", "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "boolean contains(String name);", "public static boolean eqContainsVariable(EquationSystem sys,Equation equation, Variable contained) {\n\t\tfor(Variable v: sys.getContainsTable().get(equation.getLeft())) {\n\t\t\tif (v.equals(contained))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public ConstraintExt(ArrayList<String> var) {\n\t\tsuper(var);\n\t\tvalTuples = new HashSet<ArrayList<Object>>();\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> contains(EntityField field, String propertyValue);", "public static PropertyFilter getDocumentPropertyFilter(\n Set<String> includedMetaNames) {\n Set<String> filterSet = new HashSet<String>();\n if (includedMetaNames != null) {\n filterSet.addAll(includedMetaNames);\n }\n filterSet.add(PropertyNames.ID);\n filterSet.add(PropertyNames.CLASS_DESCRIPTION);\n filterSet.add(PropertyNames.CONTENT_ELEMENTS);\n filterSet.add(PropertyNames.DATE_LAST_MODIFIED);\n filterSet.add(PropertyNames.MIME_TYPE);\n filterSet.add(PropertyNames.VERSION_SERIES);\n filterSet.add(PropertyNames.VERSION_SERIES_ID);\n filterSet.add(PropertyNames.RELEASED_VERSION);\n filterSet.add(PropertyNames.OWNER);\n filterSet.add(PropertyNames.PERMISSIONS);\n filterSet.add(PropertyNames.PERMISSION_TYPE);\n filterSet.add(PropertyNames.PERMISSION_SOURCE);\n\n StringBuilder buf = new StringBuilder();\n for (String filterName : filterSet) {\n buf.append(filterName).append(\" \");\n }\n buf.deleteCharAt(buf.length() - 1);\n\n PropertyFilter filter = new PropertyFilter();\n filter.addIncludeProperty(\n new FilterElement(null, null, null, buf.toString(), null));\n return filter;\n }", "CollectionLiteralExp createCollectionLiteralExp();", "public static SetExpression in(String propertyName, Collection<? extends Object> values) {\n return in(propertyName, values.toArray());\n }", "public boolean contains(CParamImpl param);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "public abstract QueryElement addLike(String property, Object value);", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "<C> CollectionLiteralExp<C> createCollectionLiteralExp();", "QueryElement addOrNotEmpty(String collectionProperty);", "boolean containsVars(\n java.lang.String key);", "List<Item> findByNameContainingIgnoreCase(String name);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "boolean contains(SimpleFeature feature);", "boolean containsAll(Collection<?> c);", "@Test\n public void testContainsAll_Contains() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public ComplexType searchEdmComplexType(String embeddableTypeName);", "public ListMemberConstraint( Collection existing, boolean caseSensitive )\n {\n if ( null == existing)\n {\n existing = new ArrayList();\n }\n m_caseSensitive = caseSensitive;\n m_existingElems = existing;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsIgnoreCase(String field, String propertyValue);", "@In String search();", "public void setSelectClauseVarList( List<String> listVars ) ;", "boolean any(String collection);", "public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }", "public Structure select(List<String> memberNames) {\n Structure result = copy();\n List<Variable> members = new ArrayList<>();\n for (String name : memberNames) {\n Variable m = findVariable(name);\n if (null != m)\n members.add(m);\n }\n result.setMemberVariables(members);\n result.isSubset = true;\n return result;\n }", "public ContainsNamedTypeChecker(Set<String> names) {\n myNames.addAll(names);\n }", "Builder addIsPartOf(String value);", "public boolean contains(String searchVal) {\n return collection.contains(searchVal);\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "void search( RealLocalizable reference );", "List<TypePatientPropertyCondition> search(String query);", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "private boolean contains(String searchedVariable){\r\n\t\treturn scopeVariables.containsKey(searchedVariable);\r\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAny(EntityField field, String... values);", "public ElementCollection where(String fieldName, Object value) {\n ElementCollection newCollection = new ElementCollection();\n try {\n Field field = Element.class.getDeclaredField(fieldName);\n field.setAccessible(true);\n for (Element element : this){\n if (element.getClass().getDeclaredField(fieldName).equals(fieldName) && field.getGenericType().equals(value)){\n newCollection.add(element);\n return newCollection;\n }\n }\n }catch (NoSuchFieldException e){\n e.getMessage();\n e.printStackTrace();\n }\n return null;\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "public FilterStartsWithNameCommand(CollectionManager col)\n {\n collectionManager = col;\n }", "public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc,\n String name )\n {\n return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name );\n }", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "public static PropertyDescriptionBuilder<Set<String>> setOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<Set<String>> clazz = (Class<Set<String>>)(Class<?>)Set.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseSet(Parsers::parseString));\n }", "List<Employee> findByNameContaining(String keyword, Sort sort);", "boolean contains();", "boolean hasCollectionName();", "ServiceDeclaration services( Predicate<? super ServiceAssembly> specification );", "QueryElement addOrEmpty(String collectionProperty);", "@Override\n public void collectMarkerSpecification(VariableSpecifications boundNames)\n {\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "<T> Collection<ProjectEntity> searchWithPropertyValue(\n Class<? extends PropertyType<T>> propertyTypeClass,\n BiFunction<ProjectEntityType, ID, ProjectEntity> entityLoader,\n Predicate<T> predicate\n );", "ValueDeclaration values( Predicate<? super ValueAssembly> specification );", "@Override\n\tpublic Set<Person> getfindByNameContaining(String name) {\n\t\treturn null;\n\t}", "public void buildPredicate(String s){\n\t\tint i = s.indexOf(\"(\");\n\t\tif(i>0){\n\t\t\tname = s.substring(0, i);\n\t\t\tStringTokenizer st = new StringTokenizer(s.substring(i),\"(),\");\n\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tVarTerm vt = new VarTerm(tok);\n\t\t\t\taddTerm(vt);\n\t\t\t}\n\t\t}\n\t}", "List<PilotContainer> Search(String cas, String word);", "List<Student> findByNameContainingIgnoringCase(String name);", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "public boolean containsByReference(ParameterReference ref);", "public abstract ParameterVector searchVector();", "public ComplexType searchEdmComplexType(FullQualifiedName type);", "@Query(value = \"SELECT u FROM Car u WHERE u.brandName IN :names\")\n\tList<Car> findByBrand(@Param(\"names\") Collection<String> brandName);", "public List<Product> findByNameIs(String name);", "@Test\n public void testNamedParamWithImmediateValue() {\n List<Long> ids = Arrays.asList(10L, 5L);\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1, ids);\n\n validate(\" from Person hobj1 where hobj1.id in (:np1)\", ids);\n }", "void propertyViolated (Search search);", "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\t\tString containsClause = \"PrimaryTag='\" + \n\t\t\t tag + \"'\";\n\t\t\t \n\t\t\tcontainsList.add(containsClause);\n\t\t\t\n\t\t}\n\t\t\n\t\tString retVal = StringUtils.join(containsList, \" or \");\n\n\t\treturn retVal;\n\t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3) AND (clustering_1) < (4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n Restriction multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, false, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, EOC.START);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) => (2, 3) AND (clustering_1, clustering_2) <= (4, 5)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, true, value2, value3);\n multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, true, value4, value5);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, value5, EOC.END);\n }", "Condition in(QueryParameter parameter, Object... values);", "private static Restriction newMultiEq(CFMetaData cfMetaData, int firstIndex, ByteBuffer... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, firstIndex + i));\n }\n return new MultiColumnRestriction.EQ(columnDefinitions, toMultiItemTerminal(values));\n }", "Collection<? extends WrappedIndividual> getHas();", "private Object findByNameProperty(String key, Collection collection) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {\n for (Object candidate : collection) {\n Object candidateName = getProperty(candidate, \"name\");\n if (candidateName != null && key.equals(candidateName.toString())) {\n return candidate;\n }\n }\n return null;\n }", "SpecialNamesConditionNameReference createSpecialNamesConditionNameReference();", "public Collection<EqConstraint> getEqConstraints()\n {\n\t\treturn new AbstractUnmodifiableCollection<EqConstraint>() {\n\t\t\t@Override\n\t\t\tpublic int size() {\n\t\t\t\treturn $$eqHashIndex_0.size();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Iterator<EqConstraint> iterator() {\n\t\t\t\treturn lookupEq();\n\t\t\t}\n\t\t};\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsIgnoreCase(EntityField field, String propertyValue);", "public List<T> searchByPropertyCriteria(List<CriterionEntry> namedCriterionList, List<OrderEntry> orderList, int firstResult, int maxResults){\n Criteria criteria = getSession().createCriteria(persistentClass);\n\n Criteria childCriteria = null;\n\n HashMap<String, Criteria> map = new HashMap<String,Criteria>();\n\n if ( namedCriterionList != null ){\n for (CriterionEntry namedCriteria : namedCriterionList) {\n if (namedCriteria.getPropertyName() == null) {\n criteria.add(namedCriteria.getCriterion());\n } else {\n childCriteria = map.get(namedCriteria.getPropertyName());\n\n if (childCriteria == null) {\n childCriteria = criteria.createCriteria(namedCriteria.getPropertyName());\n map.put(namedCriteria.getPropertyName(), childCriteria);\n }\n\n childCriteria.add(namedCriteria.getCriterion());\n }\n }\n }\n\n if ( orderList != null ){\n for (OrderEntry order : orderList) {\n\n if (order.getPropertyName() == null) {\n criteria.addOrder(order.getOrder());\n } else {\n childCriteria = map.get(order.getPropertyName());\n\n if (childCriteria == null) {\n childCriteria = criteria.createCriteria(order.getPropertyName());\n map.put(order.getPropertyName(), childCriteria);\n }\n\n childCriteria.addOrder(order.getOrder());\n }\n }\n }\n\n if ( firstResult >= 0 && maxResults > 0 ){\n criteria.setFirstResult(firstResult);\n criteria.setMaxResults(maxResults);\n }\n\n return criteria.list();\n }", "public abstract boolean contains(LambdaTerm P);", "@Test(expected=IllegalArgumentException.class)\n public void testNamedParamCollectionNotAllowedForSingleValuesValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).eq().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Collections.singletonList(10D));\n }", "public HashSet<T> searchObjectsContainingString(String inputString, boolean asPrefix, boolean asExactWord,\n\t\t\tfinal List<String> columns) {\n\t\tresult = new HashSet<T>();\n\t\tthis.columns = columns;\n\t\tif (asExactWord)\n\t\t\tasPrefix = true;\n\t\tif (inputString == null || inputString.isEmpty()) {\n\t\t\tif (asExactWord)\n\t\t\t\tshowDataWithFullWordsInCurrentNode(root.get(\"\"));\n\t\t\telse {\n\t\t\t\tfor (Node<T> node : root.values()) {\n\t\t\t\t\tshowAllSubsequestNodesData(node, asPrefix);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\tif (!isCaseSensitive)\n\t\t\tinputString = inputString.toLowerCase();\n\t\tchar[] charArray = inputString.toCharArray();\n\n\t\tNode<T> currentNode = root.get(charArray[0]);\n\n\t\tif (currentNode == null || !getSubsequentNodesForWordSearch(charArray, 1, currentNode, asPrefix, asExactWord)) {\n\t\t\t System.out.println(\"word not found\");\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.63469934", "0.5711025", "0.5607802", "0.5496528", "0.5376578", "0.51973784", "0.507807", "0.5055222", "0.50466925", "0.50393796", "0.5008002", "0.49854693", "0.49673176", "0.4940191", "0.4904481", "0.4871729", "0.48213765", "0.47981134", "0.47788483", "0.47772032", "0.4757574", "0.47229227", "0.47215003", "0.47051662", "0.47017342", "0.46865815", "0.46420273", "0.46263048", "0.4597885", "0.45961675", "0.45949185", "0.458498", "0.4580475", "0.4579926", "0.45726216", "0.45584196", "0.45505056", "0.45418552", "0.45389712", "0.45252836", "0.45167398", "0.4516002", "0.45125163", "0.45101434", "0.45041257", "0.4466305", "0.44593206", "0.44516438", "0.4450206", "0.44219226", "0.44213185", "0.4410014", "0.44092968", "0.44017017", "0.43994287", "0.43971974", "0.43933296", "0.43922985", "0.4391579", "0.43706316", "0.43614072", "0.43598774", "0.43513355", "0.43446064", "0.4339213", "0.43376094", "0.43299007", "0.4326065", "0.43253386", "0.43252686", "0.43087775", "0.43018097", "0.42943308", "0.42934707", "0.42827833", "0.42770556", "0.42738464", "0.42618203", "0.42596424", "0.4257516", "0.4243485", "0.42411116", "0.4224095", "0.42145902", "0.421147", "0.42095414", "0.4207002", "0.4205156", "0.4203371", "0.41951156", "0.41925862", "0.4189819", "0.41795433", "0.4173251", "0.41662958", "0.41628155", "0.41475916", "0.41398996", "0.41377014", "0.41275248" ]
0.66771835
0
Create a new CONTAINS specification for a ManyAssociation.
public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value ) { return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<? extends WrappedIndividual> getContains();", "void addContains(WrappedIndividual newContains);", "boolean getContainEntities();", "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value );\n }", "Collection<? extends WrappedIndividual> getHas();", "Collection<? extends WrappedIndividual> getIsPartOf();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "boolean hasContains();", "boolean isMany();", "Collection<? extends WrappedIndividual> getHasPart();", "void addIsPartOf(WrappedIndividual newIsPartOf);", "public ComplexType searchEdmComplexType(String embeddableTypeName);", "@Test\n public void testBoundsAsCompositesWithMultiInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction in = newMultiIN(cfMetaData, 0, asList(value1, value2), asList(value2, value3));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n assertComposite(bounds.get(1), value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n assertComposite(bounds.get(1), value2, value3, EOC.END);\n }", "public boolean containsRelations();", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "public static <K extends ComponentAnnotation> ArrayListMultimap<K, EntityMention> getContainedEntityMentionOrCreateNewForAll(\n JCas aJCas, Collection<K> annos, HashMultimap<Word, EntityMention> word2EntityMentions,\n String componentId) {\n ArrayListMultimap<K, EntityMention> resultMap = ArrayListMultimap.create();\n for (K anno : annos) {\n resultMap.putAll(anno,\n getContainedEntityMentionOrCreateNew(aJCas, anno, word2EntityMentions, componentId));\n }\n return resultMap;\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "@Test\n public void testContainsAll_Contains() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Override\n public ContainsPiiEntitiesResult containsPiiEntities(ContainsPiiEntitiesRequest request) {\n request = beforeClientExecution(request);\n return executeContainsPiiEntities(request);\n }", "void addHas(WrappedIndividual newHas);", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(multipleTagSet));\n return newPredicate;\n }", "public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n T value )\n {\n NullArgumentException.validateNotNull( \"Value\", value );\n return new ContainsSpecification<>( property( collectionProperty ), value );\n }", "public abstract boolean ContainsContactObjects();", "@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "boolean isOneToMany();", "public boolean contains(Interest i);", "boolean containsAssociation(AssociationEnd association);", "boolean hasSharedCriterion();", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "void addHasPart(WrappedIndividual newHasPart);", "Collection<? extends Noun> getIsEquivalent();", "EntityDeclaration entities( Predicate<? super EntityAssembly> specification );", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "boolean contains(SimpleFeature feature);", "public ComplexType searchEdmComplexType(FullQualifiedName type);", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "@Generated\n @Selector(\"includesSubentities\")\n public native boolean includesSubentities();", "@ZenCodeType.Operator(ZenCodeType.OperatorType.CONTAINS)\n default boolean contains(IData other) {\n \n return notSupportedOperator(OperatorType.CONTAINS);\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "@SuppressWarnings( \"unchecked\" )\n public static <T> ManyAssociationFunction<T> manyAssociation( ManyAssociation<T> association )\n {\n return ( (ManyAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).manyAssociation();\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "@Override\n\tpublic boolean contains(Object entity) {\n\t\treturn false;\n\t}", "public interface Occupant extends Person {\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#contains\n */\n \n /**\n * Gets all property values for the contains property.<p>\n * \n * @returns a collection of values for the contains property.\n */\n Collection<? extends WrappedIndividual> getContains();\n\n /**\n * Checks if the class has a contains property value.<p>\n * \n * @return true if there is a contains property value.\n */\n boolean hasContains();\n\n /**\n * Adds a contains property value.<p>\n * \n * @param newContains the contains property value to be added\n */\n void addContains(WrappedIndividual newContains);\n\n /**\n * Removes a contains property value.<p>\n * \n * @param oldContains the contains property value to be removed.\n */\n void removeContains(WrappedIndividual oldContains);\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#has\n */\n \n /**\n * Gets all property values for the has property.<p>\n * \n * @returns a collection of values for the has property.\n */\n Collection<? extends WrappedIndividual> getHas();\n\n /**\n * Checks if the class has a has property value.<p>\n * \n * @return true if there is a has property value.\n */\n boolean hasHas();\n\n /**\n * Adds a has property value.<p>\n * \n * @param newHas the has property value to be added\n */\n void addHas(WrappedIndividual newHas);\n\n /**\n * Removes a has property value.<p>\n * \n * @param oldHas the has property value to be removed.\n */\n void removeHas(WrappedIndividual oldHas);\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAge\n */\n \n /**\n * Gets all property values for the hasAge property.<p>\n * \n * @returns a collection of values for the hasAge property.\n */\n Collection<? extends Integer> getHasAge();\n\n /**\n * Checks if the class has a hasAge property value.<p>\n * \n * @return true if there is a hasAge property value.\n */\n boolean hasHasAge();\n\n /**\n * Adds a hasAge property value.<p>\n * \n * @param newHasAge the hasAge property value to be added\n */\n void addHasAge(Integer newHasAge);\n\n /**\n * Removes a hasAge property value.<p>\n * \n * @param oldHasAge the hasAge property value to be removed.\n */\n void removeHasAge(Integer oldHasAge);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcohol\n */\n \n /**\n * Gets all property values for the hasAlcohol property.<p>\n * \n * @returns a collection of values for the hasAlcohol property.\n */\n Collection<? extends Object> getHasAlcohol();\n\n /**\n * Checks if the class has a hasAlcohol property value.<p>\n * \n * @return true if there is a hasAlcohol property value.\n */\n boolean hasHasAlcohol();\n\n /**\n * Adds a hasAlcohol property value.<p>\n * \n * @param newHasAlcohol the hasAlcohol property value to be added\n */\n void addHasAlcohol(Object newHasAlcohol);\n\n /**\n * Removes a hasAlcohol property value.<p>\n * \n * @param oldHasAlcohol the hasAlcohol property value to be removed.\n */\n void removeHasAlcohol(Object oldHasAlcohol);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholBloodContent\n */\n \n /**\n * Gets all property values for the hasAlcoholBloodContent property.<p>\n * \n * @returns a collection of values for the hasAlcoholBloodContent property.\n */\n Collection<? extends Object> getHasAlcoholBloodContent();\n\n /**\n * Checks if the class has a hasAlcoholBloodContent property value.<p>\n * \n * @return true if there is a hasAlcoholBloodContent property value.\n */\n boolean hasHasAlcoholBloodContent();\n\n /**\n * Adds a hasAlcoholBloodContent property value.<p>\n * \n * @param newHasAlcoholBloodContent the hasAlcoholBloodContent property value to be added\n */\n void addHasAlcoholBloodContent(Object newHasAlcoholBloodContent);\n\n /**\n * Removes a hasAlcoholBloodContent property value.<p>\n * \n * @param oldHasAlcoholBloodContent the hasAlcoholBloodContent property value to be removed.\n */\n void removeHasAlcoholBloodContent(Object oldHasAlcoholBloodContent);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholResult\n */\n \n /**\n * Gets all property values for the hasAlcoholResult property.<p>\n * \n * @returns a collection of values for the hasAlcoholResult property.\n */\n Collection<? extends Object> getHasAlcoholResult();\n\n /**\n * Checks if the class has a hasAlcoholResult property value.<p>\n * \n * @return true if there is a hasAlcoholResult property value.\n */\n boolean hasHasAlcoholResult();\n\n /**\n * Adds a hasAlcoholResult property value.<p>\n * \n * @param newHasAlcoholResult the hasAlcoholResult property value to be added\n */\n void addHasAlcoholResult(Object newHasAlcoholResult);\n\n /**\n * Removes a hasAlcoholResult property value.<p>\n * \n * @param oldHasAlcoholResult the hasAlcoholResult property value to be removed.\n */\n void removeHasAlcoholResult(Object oldHasAlcoholResult);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholSpecimanType\n */\n \n /**\n * Gets all property values for the hasAlcoholSpecimanType property.<p>\n * \n * @returns a collection of values for the hasAlcoholSpecimanType property.\n */\n Collection<? extends Integer> getHasAlcoholSpecimanType();\n\n /**\n * Checks if the class has a hasAlcoholSpecimanType property value.<p>\n * \n * @return true if there is a hasAlcoholSpecimanType property value.\n */\n boolean hasHasAlcoholSpecimanType();\n\n /**\n * Adds a hasAlcoholSpecimanType property value.<p>\n * \n * @param newHasAlcoholSpecimanType the hasAlcoholSpecimanType property value to be added\n */\n void addHasAlcoholSpecimanType(Integer newHasAlcoholSpecimanType);\n\n /**\n * Removes a hasAlcoholSpecimanType property value.<p>\n * \n * @param oldHasAlcoholSpecimanType the hasAlcoholSpecimanType property value to be removed.\n */\n void removeHasAlcoholSpecimanType(Integer oldHasAlcoholSpecimanType);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasDeployedAirbag\n */\n \n /**\n * Gets all property values for the hasDeployedAirbag property.<p>\n * \n * @returns a collection of values for the hasDeployedAirbag property.\n */\n Collection<? extends Integer> getHasDeployedAirbag();\n\n /**\n * Checks if the class has a hasDeployedAirbag property value.<p>\n * \n * @return true if there is a hasDeployedAirbag property value.\n */\n boolean hasHasDeployedAirbag();\n\n /**\n * Adds a hasDeployedAirbag property value.<p>\n * \n * @param newHasDeployedAirbag the hasDeployedAirbag property value to be added\n */\n void addHasDeployedAirbag(Integer newHasDeployedAirbag);\n\n /**\n * Removes a hasDeployedAirbag property value.<p>\n * \n * @param oldHasDeployedAirbag the hasDeployedAirbag property value to be removed.\n */\n void removeHasDeployedAirbag(Integer oldHasDeployedAirbag);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasGender\n */\n \n /**\n * Gets all property values for the hasGender property.<p>\n * \n * @returns a collection of values for the hasGender property.\n */\n Collection<? extends Integer> getHasGender();\n\n /**\n * Checks if the class has a hasGender property value.<p>\n * \n * @return true if there is a hasGender property value.\n */\n boolean hasHasGender();\n\n /**\n * Adds a hasGender property value.<p>\n * \n * @param newHasGender the hasGender property value to be added\n */\n void addHasGender(Integer newHasGender);\n\n /**\n * Removes a hasGender property value.<p>\n * \n * @param oldHasGender the hasGender property value to be removed.\n */\n void removeHasGender(Integer oldHasGender);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasHelmet\n */\n \n /**\n * Gets all property values for the hasHelmet property.<p>\n * \n * @returns a collection of values for the hasHelmet property.\n */\n Collection<? extends Integer> getHasHelmet();\n\n /**\n * Checks if the class has a hasHelmet property value.<p>\n * \n * @return true if there is a hasHelmet property value.\n */\n boolean hasHasHelmet();\n\n /**\n * Adds a hasHelmet property value.<p>\n * \n * @param newHasHelmet the hasHelmet property value to be added\n */\n void addHasHelmet(Integer newHasHelmet);\n\n /**\n * Removes a hasHelmet property value.<p>\n * \n * @param oldHasHelmet the hasHelmet property value to be removed.\n */\n void removeHasHelmet(Integer oldHasHelmet);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasInjury\n */\n \n /**\n * Gets all property values for the hasInjury property.<p>\n * \n * @returns a collection of values for the hasInjury property.\n */\n Collection<? extends Integer> getHasInjury();\n\n /**\n * Checks if the class has a hasInjury property value.<p>\n * \n * @return true if there is a hasInjury property value.\n */\n boolean hasHasInjury();\n\n /**\n * Adds a hasInjury property value.<p>\n * \n * @param newHasInjury the hasInjury property value to be added\n */\n void addHasInjury(Integer newHasInjury);\n\n /**\n * Removes a hasInjury property value.<p>\n * \n * @param oldHasInjury the hasInjury property value to be removed.\n */\n void removeHasInjury(Integer oldHasInjury);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasInjurySeverity\n */\n \n /**\n * Gets all property values for the hasInjurySeverity property.<p>\n * \n * @returns a collection of values for the hasInjurySeverity property.\n */\n Collection<? extends Integer> getHasInjurySeverity();\n\n /**\n * Checks if the class has a hasInjurySeverity property value.<p>\n * \n * @return true if there is a hasInjurySeverity property value.\n */\n boolean hasHasInjurySeverity();\n\n /**\n * Adds a hasInjurySeverity property value.<p>\n * \n * @param newHasInjurySeverity the hasInjurySeverity property value to be added\n */\n void addHasInjurySeverity(Integer newHasInjurySeverity);\n\n /**\n * Removes a hasInjurySeverity property value.<p>\n * \n * @param oldHasInjurySeverity the hasInjurySeverity property value to be removed.\n */\n void removeHasInjurySeverity(Integer oldHasInjurySeverity);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasRestraintType\n */\n \n /**\n * Gets all property values for the hasRestraintType property.<p>\n * \n * @returns a collection of values for the hasRestraintType property.\n */\n Collection<? extends Integer> getHasRestraintType();\n\n /**\n * Checks if the class has a hasRestraintType property value.<p>\n * \n * @return true if there is a hasRestraintType property value.\n */\n boolean hasHasRestraintType();\n\n /**\n * Adds a hasRestraintType property value.<p>\n * \n * @param newHasRestraintType the hasRestraintType property value to be added\n */\n void addHasRestraintType(Integer newHasRestraintType);\n\n /**\n * Removes a hasRestraintType property value.<p>\n * \n * @param oldHasRestraintType the hasRestraintType property value to be removed.\n */\n void removeHasRestraintType(Integer oldHasRestraintType);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#isPersonType\n */\n \n /**\n * Gets all property values for the isPersonType property.<p>\n * \n * @returns a collection of values for the isPersonType property.\n */\n Collection<? extends Integer> getIsPersonType();\n\n /**\n * Checks if the class has a isPersonType property value.<p>\n * \n * @return true if there is a isPersonType property value.\n */\n boolean hasIsPersonType();\n\n /**\n * Adds a isPersonType property value.<p>\n * \n * @param newIsPersonType the isPersonType property value to be added\n */\n void addIsPersonType(Integer newIsPersonType);\n\n /**\n * Removes a isPersonType property value.<p>\n * \n * @param oldIsPersonType the isPersonType property value to be removed.\n */\n void removeIsPersonType(Integer oldIsPersonType);\n\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public RdfPredicateObjectListCollection andHas(RdfPredicate predicate, RdfObject... objects) {\n\t\treturn andHas(Rdf.predicateObjectList(predicate, objects));\n\t}", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "@Test\n public void testSqlExistsWithForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n }", "public void executeOneToManyAssociationsCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT *\n // FROM Supplier s\n Criteria criteria = session.createCriteria(Supplier.class);\n\n // INNER JOIN Product p\n // ON s.id = p.supplier_id\n // WHERE p.price > 25;\n criteria.createCriteria(\"products\").add(Restrictions.gt(\"price\", new Double(25.0)));\n\n displaySupplierList(criteria.list());\n transaction.commit();\n }", "public boolean containsAny(ISelect s){\r\n return false;\r\n }", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty,\n Iterable<T> values )\n {\n NullArgumentException.validateNotNull( \"Values\", values );\n return new ContainsAllSpecification<>( property( collectionProperty ), values );\n }", "public intersection(){}", "protected abstract NativeSQLStatement createNativeContainsStatement(Geometry geom);", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "QueryElement addNotEmpty(String collectionProperty);", "@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "private Filter setEnevelopeFilter(GeneralEnvelope envelopeSubset,\n StructuredGridCoverage2DReader reader) throws IOException {\n Filter envelopeFilter = null;\n if (envelopeSubset != null) {\n Polygon polygon = JTS.toGeometry(new ReferencedEnvelope(envelopeSubset));\n GeometryDescriptor geom = reader.getGranules(coverageName, true).getSchema().getGeometryDescriptor();\n PropertyName geometryProperty = FF.property(geom.getLocalName());\n Geometry nativeCRSPolygon;\n try {\n nativeCRSPolygon = JTS.transform(polygon, CRS.findMathTransform(DefaultGeographicCRS.WGS84,\n reader.getCoordinateReferenceSystem()));\n Literal polygonLiteral = FF.literal(nativeCRSPolygon);\n // TODO: Check that geom operation. Should I do intersection or containment check?\n envelopeFilter = FF.intersects(geometryProperty, polygonLiteral);\n// envelopeFilter = FF.within(geometryProperty, polygonLiteral);\n } catch (Exception e) {\n throw new IOException(e);\n }\n }\n return envelopeFilter;\n }", "@Test\n public void testWithinIndex() {\n\n db.command(new OCommandSQL(\"create class Polygon extends v\")).execute();\n db.command(new OCommandSQL(\"create property Polygon.geometry EMBEDDED OPolygon\")).execute();\n\n db.command(\n new OCommandSQL(\n \"insert into Polygon set geometry = ST_GeomFromText('POLYGON((0 0, 10 0, 10 5, 0 5, 0 0))')\"))\n .execute();\n\n db.command(\n new OCommandSQL(\"create index Polygon.g on Polygon (geometry) SPATIAL engine lucene\"))\n .execute();\n\n List<ODocument> execute =\n db.query(\n new OSQLSynchQuery<ODocument>(\n \"SELECT from Polygon where ST_DWithin(geometry, ST_GeomFromText('POLYGON((12 0, 14 0, 14 6, 12 6, 12 0))'), 2.0) = true\"));\n\n Assert.assertEquals(1, execute.size());\n\n OResultSet resultSet =\n db.query(\n \"SELECT from Polygon where ST_DWithin(geometry, ST_GeomFromText('POLYGON((12 0, 14 0, 14 6, 12 6, 12 0))'), 2.0) = true\");\n\n // Assert.assertEquals(1, resultSet.estimateSize());\n\n resultSet.stream().forEach(r -> System.out.println(\"r = \" + r));\n resultSet.close();\n }", "public void test_containsII() {\n\tfinal int COUNT = 60000000;\n\t\n\tRectangle r = new Rectangle(1, 2, 3, 4);\n\n\tPerformanceMeter meter = createMeter(\"contains\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\tr.contains(2, 3);\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\tr.contains(9, 12);\t// does not contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n}", "@Test\n public void testEmbeddingAnnotatorWithFilterAnnotation() throws Exception {\n final JCas jCas = JCasFactory.createJCas(\"de.julielab.jcore.types.jcore-morpho-syntax-types\", \"de.julielab.jcore.types.jcore-semantics-biology-types\");\n String sentence1 = \"Dysregulated inflammation leads to morbidity and mortality in neonates.\";\n String sentence2 = \"97 healthy subjects were enrolled in the present study.\";\n jCas.setDocumentText(sentence1 + \" \" + sentence2);\n new Sentence(jCas, 0, sentence1.length()).addToIndexes();\n new Sentence(jCas, sentence1.length() + 1, sentence1.length() + 1 + sentence2.length()).addToIndexes();\n addTokens(jCas);\n new Gene(jCas, 13, 25).addToIndexes();\n // This annotation spans two tokens\n new Gene(jCas, 75, 91).addToIndexes();\n\n final String embeddingPath = \"flair:src/test/resources/gene_small_best_lm.pt\";\n final AnalysisEngine engine = AnalysisEngineFactory.createEngine(\"de.julielab.jcore.ae.fte.desc.jcore-flair-token-embedding-ae\",\n FlairTokenEmbeddingAnnotator.PARAM_EMBEDDING_PATH, embeddingPath,\n FlairTokenEmbeddingAnnotator.PARAM_COMPUTATION_FILTER, \"de.julielab.jcore.types.Gene\");\n\n engine.process(jCas);\n\n final Collection<Token> tokens = JCasUtil.select(jCas, Token.class);\n assertThat(tokens).hasSize(20);\n for (Token t : tokens) {\n if (t.getBegin() == 13 || t.getBegin() == 75 || t.getBegin() == 83) {\n assertThat(t.getEmbeddingVectors()).isNotNull().hasSize(1);\n assertThat(t.getEmbeddingVectors(0).getVector()).hasSize(1024);\n assertThat(t.getEmbeddingVectors(0).getSource()).isEqualTo(embeddingPath);\n } else {\n assertThat(t.getEmbeddingVectors()).isNull();\n }\n }\n engine.collectionProcessComplete();\n }", "public interface HadithSanad extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://purl.org/dc/terms/hasPart\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasPart property.<p>\r\n * \r\n * @returns a collection of values for the hasPart property.\r\n */\r\n Collection<? extends WrappedIndividual> getHasPart();\r\n\r\n /**\r\n * Checks if the class has a hasPart property value.<p>\r\n * \r\n * @return true if there is a hasPart property value.\r\n */\r\n boolean hasHasPart();\r\n\r\n /**\r\n * Adds a hasPart property value.<p>\r\n * \r\n * @param newHasPart the hasPart property value to be added\r\n */\r\n void addHasPart(WrappedIndividual newHasPart);\r\n\r\n /**\r\n * Removes a hasPart property value.<p>\r\n * \r\n * @param oldHasPart the hasPart property value to be removed.\r\n */\r\n void removeHasPart(WrappedIndividual oldHasPart);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://purl.org/dc/terms/isPartOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isPartOf property.<p>\r\n * \r\n * @returns a collection of values for the isPartOf property.\r\n */\r\n Collection<? extends WrappedIndividual> getIsPartOf();\r\n\r\n /**\r\n * Checks if the class has a isPartOf property value.<p>\r\n * \r\n * @return true if there is a isPartOf property value.\r\n */\r\n boolean hasIsPartOf();\r\n\r\n /**\r\n * Adds a isPartOf property value.<p>\r\n * \r\n * @param newIsPartOf the isPartOf property value to be added\r\n */\r\n void addIsPartOf(WrappedIndividual newIsPartOf);\r\n\r\n /**\r\n * Removes a isPartOf property value.<p>\r\n * \r\n * @param oldIsPartOf the isPartOf property value to be removed.\r\n */\r\n void removeIsPartOf(WrappedIndividual oldIsPartOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://quranontology.com/Resource/MentionedIn\r\n */\r\n \r\n /**\r\n * Gets all property values for the MentionedIn property.<p>\r\n * \r\n * @returns a collection of values for the MentionedIn property.\r\n */\r\n Collection<? extends Hadith> getMentionedIn();\r\n\r\n /**\r\n * Checks if the class has a MentionedIn property value.<p>\r\n * \r\n * @return true if there is a MentionedIn property value.\r\n */\r\n boolean hasMentionedIn();\r\n\r\n /**\r\n * Adds a MentionedIn property value.<p>\r\n * \r\n * @param newMentionedIn the MentionedIn property value to be added\r\n */\r\n void addMentionedIn(Hadith newMentionedIn);\r\n\r\n /**\r\n * Removes a MentionedIn property value.<p>\r\n * \r\n * @param oldMentionedIn the MentionedIn property value to be removed.\r\n */\r\n void removeMentionedIn(Hadith oldMentionedIn);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#collectionName\r\n */\r\n \r\n /**\r\n * Gets all property values for the collectionName property.<p>\r\n * \r\n * @returns a collection of values for the collectionName property.\r\n */\r\n Collection<? extends Object> getCollectionName();\r\n\r\n /**\r\n * Checks if the class has a collectionName property value.<p>\r\n * \r\n * @return true if there is a collectionName property value.\r\n */\r\n boolean hasCollectionName();\r\n\r\n /**\r\n * Adds a collectionName property value.<p>\r\n * \r\n * @param newCollectionName the collectionName property value to be added\r\n */\r\n void addCollectionName(Object newCollectionName);\r\n\r\n /**\r\n * Removes a collectionName property value.<p>\r\n * \r\n * @param oldCollectionName the collectionName property value to be removed.\r\n */\r\n void removeCollectionName(Object oldCollectionName);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#deprecatedBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the deprecatedBookNo property.<p>\r\n * \r\n * @returns a collection of values for the deprecatedBookNo property.\r\n */\r\n Collection<? extends Object> getDeprecatedBookNo();\r\n\r\n /**\r\n * Checks if the class has a deprecatedBookNo property value.<p>\r\n * \r\n * @return true if there is a deprecatedBookNo property value.\r\n */\r\n boolean hasDeprecatedBookNo();\r\n\r\n /**\r\n * Adds a deprecatedBookNo property value.<p>\r\n * \r\n * @param newDeprecatedBookNo the deprecatedBookNo property value to be added\r\n */\r\n void addDeprecatedBookNo(Object newDeprecatedBookNo);\r\n\r\n /**\r\n * Removes a deprecatedBookNo property value.<p>\r\n * \r\n * @param oldDeprecatedBookNo the deprecatedBookNo property value to be removed.\r\n */\r\n void removeDeprecatedBookNo(Object oldDeprecatedBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#deprecatedHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the deprecatedHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the deprecatedHadithNo property.\r\n */\r\n Collection<? extends Object> getDeprecatedHadithNo();\r\n\r\n /**\r\n * Checks if the class has a deprecatedHadithNo property value.<p>\r\n * \r\n * @return true if there is a deprecatedHadithNo property value.\r\n */\r\n boolean hasDeprecatedHadithNo();\r\n\r\n /**\r\n * Adds a deprecatedHadithNo property value.<p>\r\n * \r\n * @param newDeprecatedHadithNo the deprecatedHadithNo property value to be added\r\n */\r\n void addDeprecatedHadithNo(Object newDeprecatedHadithNo);\r\n\r\n /**\r\n * Removes a deprecatedHadithNo property value.<p>\r\n * \r\n * @param oldDeprecatedHadithNo the deprecatedHadithNo property value to be removed.\r\n */\r\n void removeDeprecatedHadithNo(Object oldDeprecatedHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#endingHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the endingHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the endingHadithNo property.\r\n */\r\n Collection<? extends Object> getEndingHadithNo();\r\n\r\n /**\r\n * Checks if the class has a endingHadithNo property value.<p>\r\n * \r\n * @return true if there is a endingHadithNo property value.\r\n */\r\n boolean hasEndingHadithNo();\r\n\r\n /**\r\n * Adds a endingHadithNo property value.<p>\r\n * \r\n * @param newEndingHadithNo the endingHadithNo property value to be added\r\n */\r\n void addEndingHadithNo(Object newEndingHadithNo);\r\n\r\n /**\r\n * Removes a endingHadithNo property value.<p>\r\n * \r\n * @param oldEndingHadithNo the endingHadithNo property value to be removed.\r\n */\r\n void removeEndingHadithNo(Object oldEndingHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#fullHadith\r\n */\r\n \r\n /**\r\n * Gets all property values for the fullHadith property.<p>\r\n * \r\n * @returns a collection of values for the fullHadith property.\r\n */\r\n Collection<? extends Object> getFullHadith();\r\n\r\n /**\r\n * Checks if the class has a fullHadith property value.<p>\r\n * \r\n * @return true if there is a fullHadith property value.\r\n */\r\n boolean hasFullHadith();\r\n\r\n /**\r\n * Adds a fullHadith property value.<p>\r\n * \r\n * @param newFullHadith the fullHadith property value to be added\r\n */\r\n void addFullHadith(Object newFullHadith);\r\n\r\n /**\r\n * Removes a fullHadith property value.<p>\r\n * \r\n * @param oldFullHadith the fullHadith property value to be removed.\r\n */\r\n void removeFullHadith(Object oldFullHadith);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithBookNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithBookNo property.\r\n */\r\n Collection<? extends Object> getHadithBookNo();\r\n\r\n /**\r\n * Checks if the class has a hadithBookNo property value.<p>\r\n * \r\n * @return true if there is a hadithBookNo property value.\r\n */\r\n boolean hasHadithBookNo();\r\n\r\n /**\r\n * Adds a hadithBookNo property value.<p>\r\n * \r\n * @param newHadithBookNo the hadithBookNo property value to be added\r\n */\r\n void addHadithBookNo(Object newHadithBookNo);\r\n\r\n /**\r\n * Removes a hadithBookNo property value.<p>\r\n * \r\n * @param oldHadithBookNo the hadithBookNo property value to be removed.\r\n */\r\n void removeHadithBookNo(Object oldHadithBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithBookUrl\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithBookUrl property.<p>\r\n * \r\n * @returns a collection of values for the hadithBookUrl property.\r\n */\r\n Collection<? extends Object> getHadithBookUrl();\r\n\r\n /**\r\n * Checks if the class has a hadithBookUrl property value.<p>\r\n * \r\n * @return true if there is a hadithBookUrl property value.\r\n */\r\n boolean hasHadithBookUrl();\r\n\r\n /**\r\n * Adds a hadithBookUrl property value.<p>\r\n * \r\n * @param newHadithBookUrl the hadithBookUrl property value to be added\r\n */\r\n void addHadithBookUrl(Object newHadithBookUrl);\r\n\r\n /**\r\n * Removes a hadithBookUrl property value.<p>\r\n * \r\n * @param oldHadithBookUrl the hadithBookUrl property value to be removed.\r\n */\r\n void removeHadithBookUrl(Object oldHadithBookUrl);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithChapterIntro\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithChapterIntro property.<p>\r\n * \r\n * @returns a collection of values for the hadithChapterIntro property.\r\n */\r\n Collection<? extends Object> getHadithChapterIntro();\r\n\r\n /**\r\n * Checks if the class has a hadithChapterIntro property value.<p>\r\n * \r\n * @return true if there is a hadithChapterIntro property value.\r\n */\r\n boolean hasHadithChapterIntro();\r\n\r\n /**\r\n * Adds a hadithChapterIntro property value.<p>\r\n * \r\n * @param newHadithChapterIntro the hadithChapterIntro property value to be added\r\n */\r\n void addHadithChapterIntro(Object newHadithChapterIntro);\r\n\r\n /**\r\n * Removes a hadithChapterIntro property value.<p>\r\n * \r\n * @param oldHadithChapterIntro the hadithChapterIntro property value to be removed.\r\n */\r\n void removeHadithChapterIntro(Object oldHadithChapterIntro);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithChapterNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithChapterNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithChapterNo property.\r\n */\r\n Collection<? extends Object> getHadithChapterNo();\r\n\r\n /**\r\n * Checks if the class has a hadithChapterNo property value.<p>\r\n * \r\n * @return true if there is a hadithChapterNo property value.\r\n */\r\n boolean hasHadithChapterNo();\r\n\r\n /**\r\n * Adds a hadithChapterNo property value.<p>\r\n * \r\n * @param newHadithChapterNo the hadithChapterNo property value to be added\r\n */\r\n void addHadithChapterNo(Object newHadithChapterNo);\r\n\r\n /**\r\n * Removes a hadithChapterNo property value.<p>\r\n * \r\n * @param oldHadithChapterNo the hadithChapterNo property value to be removed.\r\n */\r\n void removeHadithChapterNo(Object oldHadithChapterNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithNo property.\r\n */\r\n Collection<? extends Object> getHadithNo();\r\n\r\n /**\r\n * Checks if the class has a hadithNo property value.<p>\r\n * \r\n * @return true if there is a hadithNo property value.\r\n */\r\n boolean hasHadithNo();\r\n\r\n /**\r\n * Adds a hadithNo property value.<p>\r\n * \r\n * @param newHadithNo the hadithNo property value to be added\r\n */\r\n void addHadithNo(Object newHadithNo);\r\n\r\n /**\r\n * Removes a hadithNo property value.<p>\r\n * \r\n * @param oldHadithNo the hadithNo property value to be removed.\r\n */\r\n void removeHadithNo(Object oldHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithReferenceNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithReferenceNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithReferenceNo property.\r\n */\r\n Collection<? extends Object> getHadithReferenceNo();\r\n\r\n /**\r\n * Checks if the class has a hadithReferenceNo property value.<p>\r\n * \r\n * @return true if there is a hadithReferenceNo property value.\r\n */\r\n boolean hasHadithReferenceNo();\r\n\r\n /**\r\n * Adds a hadithReferenceNo property value.<p>\r\n * \r\n * @param newHadithReferenceNo the hadithReferenceNo property value to be added\r\n */\r\n void addHadithReferenceNo(Object newHadithReferenceNo);\r\n\r\n /**\r\n * Removes a hadithReferenceNo property value.<p>\r\n * \r\n * @param oldHadithReferenceNo the hadithReferenceNo property value to be removed.\r\n */\r\n void removeHadithReferenceNo(Object oldHadithReferenceNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithText\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithText property.<p>\r\n * \r\n * @returns a collection of values for the hadithText property.\r\n */\r\n Collection<? extends Object> getHadithText();\r\n\r\n /**\r\n * Checks if the class has a hadithText property value.<p>\r\n * \r\n * @return true if there is a hadithText property value.\r\n */\r\n boolean hasHadithText();\r\n\r\n /**\r\n * Adds a hadithText property value.<p>\r\n * \r\n * @param newHadithText the hadithText property value to be added\r\n */\r\n void addHadithText(Object newHadithText);\r\n\r\n /**\r\n * Removes a hadithText property value.<p>\r\n * \r\n * @param oldHadithText the hadithText property value to be removed.\r\n */\r\n void removeHadithText(Object oldHadithText);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithUrl\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithUrl property.<p>\r\n * \r\n * @returns a collection of values for the hadithUrl property.\r\n */\r\n Collection<? extends Object> getHadithUrl();\r\n\r\n /**\r\n * Checks if the class has a hadithUrl property value.<p>\r\n * \r\n * @return true if there is a hadithUrl property value.\r\n */\r\n boolean hasHadithUrl();\r\n\r\n /**\r\n * Adds a hadithUrl property value.<p>\r\n * \r\n * @param newHadithUrl the hadithUrl property value to be added\r\n */\r\n void addHadithUrl(Object newHadithUrl);\r\n\r\n /**\r\n * Removes a hadithUrl property value.<p>\r\n * \r\n * @param oldHadithUrl the hadithUrl property value to be removed.\r\n */\r\n void removeHadithUrl(Object oldHadithUrl);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithVolumeNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithVolumeNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithVolumeNo property.\r\n */\r\n Collection<? extends Object> getHadithVolumeNo();\r\n\r\n /**\r\n * Checks if the class has a hadithVolumeNo property value.<p>\r\n * \r\n * @return true if there is a hadithVolumeNo property value.\r\n */\r\n boolean hasHadithVolumeNo();\r\n\r\n /**\r\n * Adds a hadithVolumeNo property value.<p>\r\n * \r\n * @param newHadithVolumeNo the hadithVolumeNo property value to be added\r\n */\r\n void addHadithVolumeNo(Object newHadithVolumeNo);\r\n\r\n /**\r\n * Removes a hadithVolumeNo property value.<p>\r\n * \r\n * @param oldHadithVolumeNo the hadithVolumeNo property value to be removed.\r\n */\r\n void removeHadithVolumeNo(Object oldHadithVolumeNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#inBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the inBookNo property.<p>\r\n * \r\n * @returns a collection of values for the inBookNo property.\r\n */\r\n Collection<? extends Object> getInBookNo();\r\n\r\n /**\r\n * Checks if the class has a inBookNo property value.<p>\r\n * \r\n * @return true if there is a inBookNo property value.\r\n */\r\n boolean hasInBookNo();\r\n\r\n /**\r\n * Adds a inBookNo property value.<p>\r\n * \r\n * @param newInBookNo the inBookNo property value to be added\r\n */\r\n void addInBookNo(Object newInBookNo);\r\n\r\n /**\r\n * Removes a inBookNo property value.<p>\r\n * \r\n * @param oldInBookNo the inBookNo property value to be removed.\r\n */\r\n void removeInBookNo(Object oldInBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#narratorChain\r\n */\r\n \r\n /**\r\n * Gets all property values for the narratorChain property.<p>\r\n * \r\n * @returns a collection of values for the narratorChain property.\r\n */\r\n Collection<? extends Object> getNarratorChain();\r\n\r\n /**\r\n * Checks if the class has a narratorChain property value.<p>\r\n * \r\n * @return true if there is a narratorChain property value.\r\n */\r\n boolean hasNarratorChain();\r\n\r\n /**\r\n * Adds a narratorChain property value.<p>\r\n * \r\n * @param newNarratorChain the narratorChain property value to be added\r\n */\r\n void addNarratorChain(Object newNarratorChain);\r\n\r\n /**\r\n * Removes a narratorChain property value.<p>\r\n * \r\n * @param oldNarratorChain the narratorChain property value to be removed.\r\n */\r\n void removeNarratorChain(Object oldNarratorChain);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#sameAs\r\n */\r\n \r\n /**\r\n * Gets all property values for the sameAs property.<p>\r\n * \r\n * @returns a collection of values for the sameAs property.\r\n */\r\n Collection<? extends Object> getSameAs();\r\n\r\n /**\r\n * Checks if the class has a sameAs property value.<p>\r\n * \r\n * @return true if there is a sameAs property value.\r\n */\r\n boolean hasSameAs();\r\n\r\n /**\r\n * Adds a sameAs property value.<p>\r\n * \r\n * @param newSameAs the sameAs property value to be added\r\n */\r\n void addSameAs(Object newSameAs);\r\n\r\n /**\r\n * Removes a sameAs property value.<p>\r\n * \r\n * @param oldSameAs the sameAs property value to be removed.\r\n */\r\n void removeSameAs(Object oldSameAs);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#startingHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the startingHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the startingHadithNo property.\r\n */\r\n Collection<? extends Object> getStartingHadithNo();\r\n\r\n /**\r\n * Checks if the class has a startingHadithNo property value.<p>\r\n * \r\n * @return true if there is a startingHadithNo property value.\r\n */\r\n boolean hasStartingHadithNo();\r\n\r\n /**\r\n * Adds a startingHadithNo property value.<p>\r\n * \r\n * @param newStartingHadithNo the startingHadithNo property value to be added\r\n */\r\n void addStartingHadithNo(Object newStartingHadithNo);\r\n\r\n /**\r\n * Removes a startingHadithNo property value.<p>\r\n * \r\n * @param oldStartingHadithNo the startingHadithNo property value to be removed.\r\n */\r\n void removeStartingHadithNo(Object oldStartingHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property https://www.w3.org/2000/01/rdf-schema#label\r\n */\r\n \r\n /**\r\n * Gets all property values for the label property.<p>\r\n * \r\n * @returns a collection of values for the label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a label property value.<p>\r\n * \r\n * @return true if there is a label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a label property value.<p>\r\n * \r\n * @param newLabel the label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a label property value.<p>\r\n * \r\n * @param oldLabel the label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@Test\n\tpublic void testExistingProductsSearchTyped() {\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tDataLoader dl = new DataLoader(emf);\n\t\t\tList<Product> products = dl.loadProducts(null);\n\t\t\tdl.loadStock(products);\n\t\t\t// Search for mutiple Stocks.\n\t\t\tTypedQuery<Stock> query = em.createNamedQuery(\"Stock.getAllStocks\", Stock.class);\n\t\t\tList<Stock> result = query.getResultList();\n\n\t\t\tassertTrue(\n\t\t\t\t\t\"Search for mutiple existing stocks: Multiple stocks not added\",\n\t\t\t\t\tresult.size() > 2);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc,\n String name )\n {\n return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name );\n }", "public ContainsBuilder(DataBaseConnection dataBaseConnection) {\n super(dataBaseConnection);\n selectBuilder = new SelectBuilder(dataBaseConnection);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> contains(String field, String propertyValue);", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "@Test\n public void testQueryJoinSecondaryType() throws Exception {\n assumeFalse(\"not implemented\", supportsJoins());\n\n DocumentModel doc = coreSession.getDocument(new PathRef(\"/testfolder1/testfile1\"));\n doc.addFacet(\"CustomFacetWithMySchema2\");\n doc.setPropertyValue(\"my2:string\", \"foo\");\n coreSession.saveDocument(doc);\n coreSession.save();\n nextTransaction();\n waitForIndexing();\n\n String statement = \"SELECT *\" //\n + \" FROM cmis:document D\" //\n + \" JOIN facet:CustomFacetWithMySchema2 F\" //\n + \" ON D.cmis:objectId = F.cmis:objectId\" //\n + \" WHERE D.cmis:name = 'testfile1_Title'\" //\n + \" AND F.my2:string = 'foo'\";\n ObjectList res = query(statement);\n assertEquals(1, res.getNumItems().intValue());\n\n statement = \"SELECT *\" //\n + \" FROM cmis:document D\" //\n + \" JOIN facet:CustomFacetWithMySchema2 F\" //\n + \" ON D.cmis:objectId = F.cmis:objectId\" //\n + \" WHERE F.my2:string = 'notfoo'\";\n res = query(statement);\n assertEquals(0, res.getNumItems().intValue());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIntersection();", "boolean contains();", "boolean containsAll(Collection<?> c);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }", "void removeContains(WrappedIndividual oldContains);", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "@Generated\n @Selector(\"setIncludesSubentities:\")\n public native void setIncludesSubentities(boolean value);", "public void containsAnyIn(Iterable<?> expected) {\n containsAny(\"contains any element in\", expected);\n }", "protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAny(EntityField field, String... values);", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> contains(EntityField field, String propertyValue);", "public RelationBuilderContainsTest() {\n builder = new BiMap<Integer, Integer>();\n builder.put(zero, one);\n }", "InvoiceSpecification createInvoiceSpecification();", "@Test\n\tpublic void testGeneratedCriteriaBuilder() {\n\t\tList<Long> idsList = new ArrayList<>();\n\t\tidsList.add(22L);\n\t\tidsList.add(24L);\n\t\tidsList.add(26L);\n\n\t\tList<Long> idsExcludeList = new ArrayList<>();\n\t\tidsExcludeList.add(17L);\n\t\tidsExcludeList.add(18L);\n\n\t\tClientFormMetadataExample.Criteria criteria = new ClientFormMetadataExample.Criteria()\n\t\t\t\t.andIdEqualTo(1L)\n\t\t\t\t.andIdEqualTo(2L)\n\t\t\t\t.andIdEqualTo(4L)\n\t\t\t\t.andIdNotEqualTo(3L)\n\t\t\t\t.andIdGreaterThan(8L)\n\t\t\t\t.andIdLessThan(11L)\n\t\t\t\t.andIdGreaterThanOrEqualTo(15L)\n\t\t\t\t.andIdLessThanOrEqualTo(20L)\n\t\t\t\t.andIdIn(idsList)\n\t\t\t\t.andIdNotIn(idsExcludeList)\n\t\t\t\t.andIdBetween(50L, 53L)\n\t\t\t\t.andCreatedAtIsNotNull();\n\n\t\tassertEquals(12, criteria.getAllCriteria().size());\n\t}", "private void addFromAssociation(final String elementName, final String collectionRole)\n \t\t\tthrows QueryException {\n \t\t//q.addCollection(collectionName, collectionRole);\n \t\tQueryableCollection persister = getCollectionPersister( collectionRole );\n \t\tType collectionElementType = persister.getElementType();\n \t\tif ( !collectionElementType.isEntityType() ) {\n \t\t\tthrow new QueryException( \"collection of values in filter: \" + elementName );\n \t\t}\n \n \t\tString[] keyColumnNames = persister.getKeyColumnNames();\n \t\t//if (keyColumnNames.length!=1) throw new QueryException(\"composite-key collection in filter: \" + collectionRole);\n \n \t\tString collectionName;\n \t\tJoinSequence join = new JoinSequence( getFactory() );\n \t\tcollectionName = persister.isOneToMany() ?\n \t\t\t\telementName :\n \t\t\t\tcreateNameForCollection( collectionRole );\n \t\tjoin.setRoot( persister, collectionName );\n \t\tif ( !persister.isOneToMany() ) {\n \t\t\t//many-to-many\n \t\t\taddCollection( collectionName, collectionRole );\n \t\t\ttry {\n \t\t\t\tjoin.addJoin( ( AssociationType ) persister.getElementType(),\n \t\t\t\t\t\telementName,\n \t\t\t\t\t\tJoinType.INNER_JOIN,\n \t\t\t\t\t\tpersister.getElementColumnNames(collectionName) );\n \t\t\t}\n \t\t\tcatch ( MappingException me ) {\n \t\t\t\tthrow new QueryException( me );\n \t\t\t}\n \t\t}\n \t\tjoin.addCondition( collectionName, keyColumnNames, \" = ?\" );\n \t\t//if ( persister.hasWhere() ) join.addCondition( persister.getSQLWhereString(collectionName) );\n \t\tEntityType elemType = ( EntityType ) collectionElementType;\n \t\taddFrom( elementName, elemType.getAssociatedEntityName(), join );\n \n \t}", "void addIsEquivalent(Noun newIsEquivalent);", "Builder addIsPartOf(CreativeWork value);", "public interface In extends Clause {}", "private static Restriction newMultiEq(CFMetaData cfMetaData, int firstIndex, ByteBuffer... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, firstIndex + i));\n }\n return new MultiColumnRestriction.EQ(columnDefinitions, toMultiItemTerminal(values));\n }", "@Override\n\tpublic boolean containsAll(Collection<?> c) {\n\t\tthrow new NotImplementedException(\"Not yet implemented\"); \n\t}", "@Test\r\n public void testContains() {\r\n System.out.println(\"contains\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = true;\r\n boolean result = instance.contains(o);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n public void testContainsAll_Not_Contain_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(1, 2, 5, 8);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Test\n public void testSqlExistsMultiValuedNoForeignRestriction() {\n Query<Garage> garagesQuery = not(\n existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME\n )\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 1 result\", 1, results.size());\n assertTrue(\"results should contain garage6\", results.contains(garage6));\n }", "static boolean multiset_contains(Map m, Object o) {\n if (m == null) return false;\n for (Iterator i = m.values().iterator(); i.hasNext(); ) {\n Object p = i.next();\n if (p == o) return true;\n if (p instanceof Collection)\n if (((Collection) p).contains(o)) return true;\n }\n return false;\n }", "@Test\n public void testContains_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(4);\n assertEquals(expResult, result);\n }", "@JsonCreator\n public WithinPredicate(@JsonProperty(\"geometry\") String geometry) {\n Objects.requireNonNull(geometry, \"<geometry> may not be null\");\n try {\n // test if it is a valid WKT\n SearchTypeValidator.validate(OccurrenceSearchParameter.GEOMETRY, geometry);\n } catch (IllegalArgumentException e) {\n // Log invalid strings, but continue - the geometry parser has changed over time, and some once-valid strings\n // are no longer considered valid. See https://github.com/gbif/gbif-api/issues/48.\n LOG.warn(\"Invalid geometry string {}: {}\", geometry, e.getMessage());\n }\n this.geometry = geometry;\n }", "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\t\tString containsClause = \"PrimaryTag='\" + \n\t\t\t tag + \"'\";\n\t\t\t \n\t\t\tcontainsList.add(containsClause);\n\t\t\t\n\t\t}\n\t\t\n\t\tString retVal = StringUtils.join(containsList, \" or \");\n\n\t\treturn retVal;\n\t}" ]
[ "0.579054", "0.55690926", "0.5225168", "0.51303047", "0.50014395", "0.4965549", "0.49268493", "0.49109337", "0.4798509", "0.47877347", "0.4758534", "0.47367534", "0.46636754", "0.46154281", "0.4611518", "0.46113947", "0.46109477", "0.4594508", "0.45931488", "0.45915145", "0.4588909", "0.45816717", "0.45059064", "0.4440286", "0.44336522", "0.44214916", "0.44204593", "0.44131422", "0.44112954", "0.4400545", "0.43985102", "0.43621656", "0.43542492", "0.4348837", "0.43486837", "0.43462315", "0.4331117", "0.43306035", "0.43266866", "0.43205905", "0.43204734", "0.43141276", "0.43002945", "0.42923096", "0.429161", "0.42897284", "0.42832014", "0.42802438", "0.42733064", "0.42722806", "0.42555404", "0.42536432", "0.42526162", "0.4241717", "0.4230231", "0.42296475", "0.42159224", "0.4210125", "0.4195621", "0.4194409", "0.4184793", "0.41808036", "0.41708344", "0.4162978", "0.4159841", "0.41575247", "0.4155321", "0.41470972", "0.41418922", "0.41387737", "0.41356233", "0.41337872", "0.41213086", "0.41147506", "0.410361", "0.40865725", "0.40832874", "0.40831715", "0.40796053", "0.4078881", "0.40765476", "0.4073873", "0.40643296", "0.40633014", "0.40541604", "0.40534803", "0.4044662", "0.40427914", "0.4029084", "0.4026113", "0.40233883", "0.4022824", "0.40104768", "0.40037203", "0.4002486", "0.40008488", "0.40006635", "0.40000317", "0.39961898", "0.39950967" ]
0.6896884
0
Create a new CONTAINS specification for a NamedAssociation.
public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value ) { return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc,\n String name )\n {\n return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name );\n }", "void addContains(WrappedIndividual newContains);", "public ComplexType searchEdmComplexType(String embeddableTypeName);", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "Collection<? extends WrappedIndividual> getContains();", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "protected abstract NativeSQLStatement createNativeContainsStatement(Geometry geom);", "List<Cloth> findByNameContaining(String name);", "@JsonCreator\n public WithinPredicate(@JsonProperty(\"geometry\") String geometry) {\n Objects.requireNonNull(geometry, \"<geometry> may not be null\");\n try {\n // test if it is a valid WKT\n SearchTypeValidator.validate(OccurrenceSearchParameter.GEOMETRY, geometry);\n } catch (IllegalArgumentException e) {\n // Log invalid strings, but continue - the geometry parser has changed over time, and some once-valid strings\n // are no longer considered valid. See https://github.com/gbif/gbif-api/issues/48.\n LOG.warn(\"Invalid geometry string {}: {}\", geometry, e.getMessage());\n }\n this.geometry = geometry;\n }", "public ComplexType searchEdmComplexType(FullQualifiedName type);", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> contains(String field, String propertyValue);", "boolean contains(SimpleFeature feature);", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "public ContainsBuilder(DataBaseConnection dataBaseConnection) {\n super(dataBaseConnection);\n selectBuilder = new SelectBuilder(dataBaseConnection);\n }", "public MagicSearch createMagicSearch();", "@Override\n\tpublic Set<Person> getfindByNameContaining(String name) {\n\t\treturn null;\n\t}", "void addIsPartOf(WrappedIndividual newIsPartOf);", "public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "boolean hasContains();", "public void addCriterion(String name)\n {\n _savedSearchDef.addSearchFieldDef(name, null, null, null, \n false /* isMultiSelect*/, \n true /* isRemovable*/, \n new boolean[]{false, false});\n _conjunctionCriterion = new DemoConjunctionCriterion(_savedSearchDef);\n }", "boolean contains(String name);", "void searchConstraintHit (Search search);", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "boolean containsStudentWith(String name);", "void addIsEquivalent(Noun newIsEquivalent);", "public interface HadithSanad extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://purl.org/dc/terms/hasPart\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasPart property.<p>\r\n * \r\n * @returns a collection of values for the hasPart property.\r\n */\r\n Collection<? extends WrappedIndividual> getHasPart();\r\n\r\n /**\r\n * Checks if the class has a hasPart property value.<p>\r\n * \r\n * @return true if there is a hasPart property value.\r\n */\r\n boolean hasHasPart();\r\n\r\n /**\r\n * Adds a hasPart property value.<p>\r\n * \r\n * @param newHasPart the hasPart property value to be added\r\n */\r\n void addHasPart(WrappedIndividual newHasPart);\r\n\r\n /**\r\n * Removes a hasPart property value.<p>\r\n * \r\n * @param oldHasPart the hasPart property value to be removed.\r\n */\r\n void removeHasPart(WrappedIndividual oldHasPart);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://purl.org/dc/terms/isPartOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isPartOf property.<p>\r\n * \r\n * @returns a collection of values for the isPartOf property.\r\n */\r\n Collection<? extends WrappedIndividual> getIsPartOf();\r\n\r\n /**\r\n * Checks if the class has a isPartOf property value.<p>\r\n * \r\n * @return true if there is a isPartOf property value.\r\n */\r\n boolean hasIsPartOf();\r\n\r\n /**\r\n * Adds a isPartOf property value.<p>\r\n * \r\n * @param newIsPartOf the isPartOf property value to be added\r\n */\r\n void addIsPartOf(WrappedIndividual newIsPartOf);\r\n\r\n /**\r\n * Removes a isPartOf property value.<p>\r\n * \r\n * @param oldIsPartOf the isPartOf property value to be removed.\r\n */\r\n void removeIsPartOf(WrappedIndividual oldIsPartOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://quranontology.com/Resource/MentionedIn\r\n */\r\n \r\n /**\r\n * Gets all property values for the MentionedIn property.<p>\r\n * \r\n * @returns a collection of values for the MentionedIn property.\r\n */\r\n Collection<? extends Hadith> getMentionedIn();\r\n\r\n /**\r\n * Checks if the class has a MentionedIn property value.<p>\r\n * \r\n * @return true if there is a MentionedIn property value.\r\n */\r\n boolean hasMentionedIn();\r\n\r\n /**\r\n * Adds a MentionedIn property value.<p>\r\n * \r\n * @param newMentionedIn the MentionedIn property value to be added\r\n */\r\n void addMentionedIn(Hadith newMentionedIn);\r\n\r\n /**\r\n * Removes a MentionedIn property value.<p>\r\n * \r\n * @param oldMentionedIn the MentionedIn property value to be removed.\r\n */\r\n void removeMentionedIn(Hadith oldMentionedIn);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#collectionName\r\n */\r\n \r\n /**\r\n * Gets all property values for the collectionName property.<p>\r\n * \r\n * @returns a collection of values for the collectionName property.\r\n */\r\n Collection<? extends Object> getCollectionName();\r\n\r\n /**\r\n * Checks if the class has a collectionName property value.<p>\r\n * \r\n * @return true if there is a collectionName property value.\r\n */\r\n boolean hasCollectionName();\r\n\r\n /**\r\n * Adds a collectionName property value.<p>\r\n * \r\n * @param newCollectionName the collectionName property value to be added\r\n */\r\n void addCollectionName(Object newCollectionName);\r\n\r\n /**\r\n * Removes a collectionName property value.<p>\r\n * \r\n * @param oldCollectionName the collectionName property value to be removed.\r\n */\r\n void removeCollectionName(Object oldCollectionName);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#deprecatedBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the deprecatedBookNo property.<p>\r\n * \r\n * @returns a collection of values for the deprecatedBookNo property.\r\n */\r\n Collection<? extends Object> getDeprecatedBookNo();\r\n\r\n /**\r\n * Checks if the class has a deprecatedBookNo property value.<p>\r\n * \r\n * @return true if there is a deprecatedBookNo property value.\r\n */\r\n boolean hasDeprecatedBookNo();\r\n\r\n /**\r\n * Adds a deprecatedBookNo property value.<p>\r\n * \r\n * @param newDeprecatedBookNo the deprecatedBookNo property value to be added\r\n */\r\n void addDeprecatedBookNo(Object newDeprecatedBookNo);\r\n\r\n /**\r\n * Removes a deprecatedBookNo property value.<p>\r\n * \r\n * @param oldDeprecatedBookNo the deprecatedBookNo property value to be removed.\r\n */\r\n void removeDeprecatedBookNo(Object oldDeprecatedBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#deprecatedHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the deprecatedHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the deprecatedHadithNo property.\r\n */\r\n Collection<? extends Object> getDeprecatedHadithNo();\r\n\r\n /**\r\n * Checks if the class has a deprecatedHadithNo property value.<p>\r\n * \r\n * @return true if there is a deprecatedHadithNo property value.\r\n */\r\n boolean hasDeprecatedHadithNo();\r\n\r\n /**\r\n * Adds a deprecatedHadithNo property value.<p>\r\n * \r\n * @param newDeprecatedHadithNo the deprecatedHadithNo property value to be added\r\n */\r\n void addDeprecatedHadithNo(Object newDeprecatedHadithNo);\r\n\r\n /**\r\n * Removes a deprecatedHadithNo property value.<p>\r\n * \r\n * @param oldDeprecatedHadithNo the deprecatedHadithNo property value to be removed.\r\n */\r\n void removeDeprecatedHadithNo(Object oldDeprecatedHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#endingHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the endingHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the endingHadithNo property.\r\n */\r\n Collection<? extends Object> getEndingHadithNo();\r\n\r\n /**\r\n * Checks if the class has a endingHadithNo property value.<p>\r\n * \r\n * @return true if there is a endingHadithNo property value.\r\n */\r\n boolean hasEndingHadithNo();\r\n\r\n /**\r\n * Adds a endingHadithNo property value.<p>\r\n * \r\n * @param newEndingHadithNo the endingHadithNo property value to be added\r\n */\r\n void addEndingHadithNo(Object newEndingHadithNo);\r\n\r\n /**\r\n * Removes a endingHadithNo property value.<p>\r\n * \r\n * @param oldEndingHadithNo the endingHadithNo property value to be removed.\r\n */\r\n void removeEndingHadithNo(Object oldEndingHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#fullHadith\r\n */\r\n \r\n /**\r\n * Gets all property values for the fullHadith property.<p>\r\n * \r\n * @returns a collection of values for the fullHadith property.\r\n */\r\n Collection<? extends Object> getFullHadith();\r\n\r\n /**\r\n * Checks if the class has a fullHadith property value.<p>\r\n * \r\n * @return true if there is a fullHadith property value.\r\n */\r\n boolean hasFullHadith();\r\n\r\n /**\r\n * Adds a fullHadith property value.<p>\r\n * \r\n * @param newFullHadith the fullHadith property value to be added\r\n */\r\n void addFullHadith(Object newFullHadith);\r\n\r\n /**\r\n * Removes a fullHadith property value.<p>\r\n * \r\n * @param oldFullHadith the fullHadith property value to be removed.\r\n */\r\n void removeFullHadith(Object oldFullHadith);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithBookNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithBookNo property.\r\n */\r\n Collection<? extends Object> getHadithBookNo();\r\n\r\n /**\r\n * Checks if the class has a hadithBookNo property value.<p>\r\n * \r\n * @return true if there is a hadithBookNo property value.\r\n */\r\n boolean hasHadithBookNo();\r\n\r\n /**\r\n * Adds a hadithBookNo property value.<p>\r\n * \r\n * @param newHadithBookNo the hadithBookNo property value to be added\r\n */\r\n void addHadithBookNo(Object newHadithBookNo);\r\n\r\n /**\r\n * Removes a hadithBookNo property value.<p>\r\n * \r\n * @param oldHadithBookNo the hadithBookNo property value to be removed.\r\n */\r\n void removeHadithBookNo(Object oldHadithBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithBookUrl\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithBookUrl property.<p>\r\n * \r\n * @returns a collection of values for the hadithBookUrl property.\r\n */\r\n Collection<? extends Object> getHadithBookUrl();\r\n\r\n /**\r\n * Checks if the class has a hadithBookUrl property value.<p>\r\n * \r\n * @return true if there is a hadithBookUrl property value.\r\n */\r\n boolean hasHadithBookUrl();\r\n\r\n /**\r\n * Adds a hadithBookUrl property value.<p>\r\n * \r\n * @param newHadithBookUrl the hadithBookUrl property value to be added\r\n */\r\n void addHadithBookUrl(Object newHadithBookUrl);\r\n\r\n /**\r\n * Removes a hadithBookUrl property value.<p>\r\n * \r\n * @param oldHadithBookUrl the hadithBookUrl property value to be removed.\r\n */\r\n void removeHadithBookUrl(Object oldHadithBookUrl);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithChapterIntro\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithChapterIntro property.<p>\r\n * \r\n * @returns a collection of values for the hadithChapterIntro property.\r\n */\r\n Collection<? extends Object> getHadithChapterIntro();\r\n\r\n /**\r\n * Checks if the class has a hadithChapterIntro property value.<p>\r\n * \r\n * @return true if there is a hadithChapterIntro property value.\r\n */\r\n boolean hasHadithChapterIntro();\r\n\r\n /**\r\n * Adds a hadithChapterIntro property value.<p>\r\n * \r\n * @param newHadithChapterIntro the hadithChapterIntro property value to be added\r\n */\r\n void addHadithChapterIntro(Object newHadithChapterIntro);\r\n\r\n /**\r\n * Removes a hadithChapterIntro property value.<p>\r\n * \r\n * @param oldHadithChapterIntro the hadithChapterIntro property value to be removed.\r\n */\r\n void removeHadithChapterIntro(Object oldHadithChapterIntro);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithChapterNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithChapterNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithChapterNo property.\r\n */\r\n Collection<? extends Object> getHadithChapterNo();\r\n\r\n /**\r\n * Checks if the class has a hadithChapterNo property value.<p>\r\n * \r\n * @return true if there is a hadithChapterNo property value.\r\n */\r\n boolean hasHadithChapterNo();\r\n\r\n /**\r\n * Adds a hadithChapterNo property value.<p>\r\n * \r\n * @param newHadithChapterNo the hadithChapterNo property value to be added\r\n */\r\n void addHadithChapterNo(Object newHadithChapterNo);\r\n\r\n /**\r\n * Removes a hadithChapterNo property value.<p>\r\n * \r\n * @param oldHadithChapterNo the hadithChapterNo property value to be removed.\r\n */\r\n void removeHadithChapterNo(Object oldHadithChapterNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithNo property.\r\n */\r\n Collection<? extends Object> getHadithNo();\r\n\r\n /**\r\n * Checks if the class has a hadithNo property value.<p>\r\n * \r\n * @return true if there is a hadithNo property value.\r\n */\r\n boolean hasHadithNo();\r\n\r\n /**\r\n * Adds a hadithNo property value.<p>\r\n * \r\n * @param newHadithNo the hadithNo property value to be added\r\n */\r\n void addHadithNo(Object newHadithNo);\r\n\r\n /**\r\n * Removes a hadithNo property value.<p>\r\n * \r\n * @param oldHadithNo the hadithNo property value to be removed.\r\n */\r\n void removeHadithNo(Object oldHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithReferenceNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithReferenceNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithReferenceNo property.\r\n */\r\n Collection<? extends Object> getHadithReferenceNo();\r\n\r\n /**\r\n * Checks if the class has a hadithReferenceNo property value.<p>\r\n * \r\n * @return true if there is a hadithReferenceNo property value.\r\n */\r\n boolean hasHadithReferenceNo();\r\n\r\n /**\r\n * Adds a hadithReferenceNo property value.<p>\r\n * \r\n * @param newHadithReferenceNo the hadithReferenceNo property value to be added\r\n */\r\n void addHadithReferenceNo(Object newHadithReferenceNo);\r\n\r\n /**\r\n * Removes a hadithReferenceNo property value.<p>\r\n * \r\n * @param oldHadithReferenceNo the hadithReferenceNo property value to be removed.\r\n */\r\n void removeHadithReferenceNo(Object oldHadithReferenceNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithText\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithText property.<p>\r\n * \r\n * @returns a collection of values for the hadithText property.\r\n */\r\n Collection<? extends Object> getHadithText();\r\n\r\n /**\r\n * Checks if the class has a hadithText property value.<p>\r\n * \r\n * @return true if there is a hadithText property value.\r\n */\r\n boolean hasHadithText();\r\n\r\n /**\r\n * Adds a hadithText property value.<p>\r\n * \r\n * @param newHadithText the hadithText property value to be added\r\n */\r\n void addHadithText(Object newHadithText);\r\n\r\n /**\r\n * Removes a hadithText property value.<p>\r\n * \r\n * @param oldHadithText the hadithText property value to be removed.\r\n */\r\n void removeHadithText(Object oldHadithText);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithUrl\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithUrl property.<p>\r\n * \r\n * @returns a collection of values for the hadithUrl property.\r\n */\r\n Collection<? extends Object> getHadithUrl();\r\n\r\n /**\r\n * Checks if the class has a hadithUrl property value.<p>\r\n * \r\n * @return true if there is a hadithUrl property value.\r\n */\r\n boolean hasHadithUrl();\r\n\r\n /**\r\n * Adds a hadithUrl property value.<p>\r\n * \r\n * @param newHadithUrl the hadithUrl property value to be added\r\n */\r\n void addHadithUrl(Object newHadithUrl);\r\n\r\n /**\r\n * Removes a hadithUrl property value.<p>\r\n * \r\n * @param oldHadithUrl the hadithUrl property value to be removed.\r\n */\r\n void removeHadithUrl(Object oldHadithUrl);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithVolumeNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithVolumeNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithVolumeNo property.\r\n */\r\n Collection<? extends Object> getHadithVolumeNo();\r\n\r\n /**\r\n * Checks if the class has a hadithVolumeNo property value.<p>\r\n * \r\n * @return true if there is a hadithVolumeNo property value.\r\n */\r\n boolean hasHadithVolumeNo();\r\n\r\n /**\r\n * Adds a hadithVolumeNo property value.<p>\r\n * \r\n * @param newHadithVolumeNo the hadithVolumeNo property value to be added\r\n */\r\n void addHadithVolumeNo(Object newHadithVolumeNo);\r\n\r\n /**\r\n * Removes a hadithVolumeNo property value.<p>\r\n * \r\n * @param oldHadithVolumeNo the hadithVolumeNo property value to be removed.\r\n */\r\n void removeHadithVolumeNo(Object oldHadithVolumeNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#inBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the inBookNo property.<p>\r\n * \r\n * @returns a collection of values for the inBookNo property.\r\n */\r\n Collection<? extends Object> getInBookNo();\r\n\r\n /**\r\n * Checks if the class has a inBookNo property value.<p>\r\n * \r\n * @return true if there is a inBookNo property value.\r\n */\r\n boolean hasInBookNo();\r\n\r\n /**\r\n * Adds a inBookNo property value.<p>\r\n * \r\n * @param newInBookNo the inBookNo property value to be added\r\n */\r\n void addInBookNo(Object newInBookNo);\r\n\r\n /**\r\n * Removes a inBookNo property value.<p>\r\n * \r\n * @param oldInBookNo the inBookNo property value to be removed.\r\n */\r\n void removeInBookNo(Object oldInBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#narratorChain\r\n */\r\n \r\n /**\r\n * Gets all property values for the narratorChain property.<p>\r\n * \r\n * @returns a collection of values for the narratorChain property.\r\n */\r\n Collection<? extends Object> getNarratorChain();\r\n\r\n /**\r\n * Checks if the class has a narratorChain property value.<p>\r\n * \r\n * @return true if there is a narratorChain property value.\r\n */\r\n boolean hasNarratorChain();\r\n\r\n /**\r\n * Adds a narratorChain property value.<p>\r\n * \r\n * @param newNarratorChain the narratorChain property value to be added\r\n */\r\n void addNarratorChain(Object newNarratorChain);\r\n\r\n /**\r\n * Removes a narratorChain property value.<p>\r\n * \r\n * @param oldNarratorChain the narratorChain property value to be removed.\r\n */\r\n void removeNarratorChain(Object oldNarratorChain);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#sameAs\r\n */\r\n \r\n /**\r\n * Gets all property values for the sameAs property.<p>\r\n * \r\n * @returns a collection of values for the sameAs property.\r\n */\r\n Collection<? extends Object> getSameAs();\r\n\r\n /**\r\n * Checks if the class has a sameAs property value.<p>\r\n * \r\n * @return true if there is a sameAs property value.\r\n */\r\n boolean hasSameAs();\r\n\r\n /**\r\n * Adds a sameAs property value.<p>\r\n * \r\n * @param newSameAs the sameAs property value to be added\r\n */\r\n void addSameAs(Object newSameAs);\r\n\r\n /**\r\n * Removes a sameAs property value.<p>\r\n * \r\n * @param oldSameAs the sameAs property value to be removed.\r\n */\r\n void removeSameAs(Object oldSameAs);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#startingHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the startingHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the startingHadithNo property.\r\n */\r\n Collection<? extends Object> getStartingHadithNo();\r\n\r\n /**\r\n * Checks if the class has a startingHadithNo property value.<p>\r\n * \r\n * @return true if there is a startingHadithNo property value.\r\n */\r\n boolean hasStartingHadithNo();\r\n\r\n /**\r\n * Adds a startingHadithNo property value.<p>\r\n * \r\n * @param newStartingHadithNo the startingHadithNo property value to be added\r\n */\r\n void addStartingHadithNo(Object newStartingHadithNo);\r\n\r\n /**\r\n * Removes a startingHadithNo property value.<p>\r\n * \r\n * @param oldStartingHadithNo the startingHadithNo property value to be removed.\r\n */\r\n void removeStartingHadithNo(Object oldStartingHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property https://www.w3.org/2000/01/rdf-schema#label\r\n */\r\n \r\n /**\r\n * Gets all property values for the label property.<p>\r\n * \r\n * @returns a collection of values for the label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a label property value.<p>\r\n * \r\n * @return true if there is a label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a label property value.<p>\r\n * \r\n * @param newLabel the label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a label property value.<p>\r\n * \r\n * @param oldLabel the label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> contains(EntityField field, String propertyValue);", "private PersonContainsKeywordsPredicate createNewPersonPredicateForSingleTag(Tag tag) throws Exception {\n Set<Tag> singleTagSet = new HashSet<Tag>(Arrays.asList(tag));\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(singleTagSet));\n return newPredicate;\n }", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }", "SpecialNamesConditionNameReference createSpecialNamesConditionNameReference();", "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3), asList(value4, value5));\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value4, value5, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiIN = newMultiIN(cfMetaData, 1, asList(value2, value3));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiIN).mergeWith(singleEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 5 AND (clustering_2, clustering_3) IN ((2, 3), (4, 5))\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value5);\n multiIN = newMultiIN(cfMetaData, 2, asList(value2, value3), asList(value4, value5));\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiIN).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.START);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(2, bounds.size());\n assertComposite(bounds.get(0), value1, value5, value2, value3, EOC.END);\n assertComposite(bounds.get(1), value1, value5, value4, value5, EOC.END);\n }", "public interface Occupant extends Person {\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#contains\n */\n \n /**\n * Gets all property values for the contains property.<p>\n * \n * @returns a collection of values for the contains property.\n */\n Collection<? extends WrappedIndividual> getContains();\n\n /**\n * Checks if the class has a contains property value.<p>\n * \n * @return true if there is a contains property value.\n */\n boolean hasContains();\n\n /**\n * Adds a contains property value.<p>\n * \n * @param newContains the contains property value to be added\n */\n void addContains(WrappedIndividual newContains);\n\n /**\n * Removes a contains property value.<p>\n * \n * @param oldContains the contains property value to be removed.\n */\n void removeContains(WrappedIndividual oldContains);\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#has\n */\n \n /**\n * Gets all property values for the has property.<p>\n * \n * @returns a collection of values for the has property.\n */\n Collection<? extends WrappedIndividual> getHas();\n\n /**\n * Checks if the class has a has property value.<p>\n * \n * @return true if there is a has property value.\n */\n boolean hasHas();\n\n /**\n * Adds a has property value.<p>\n * \n * @param newHas the has property value to be added\n */\n void addHas(WrappedIndividual newHas);\n\n /**\n * Removes a has property value.<p>\n * \n * @param oldHas the has property value to be removed.\n */\n void removeHas(WrappedIndividual oldHas);\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAge\n */\n \n /**\n * Gets all property values for the hasAge property.<p>\n * \n * @returns a collection of values for the hasAge property.\n */\n Collection<? extends Integer> getHasAge();\n\n /**\n * Checks if the class has a hasAge property value.<p>\n * \n * @return true if there is a hasAge property value.\n */\n boolean hasHasAge();\n\n /**\n * Adds a hasAge property value.<p>\n * \n * @param newHasAge the hasAge property value to be added\n */\n void addHasAge(Integer newHasAge);\n\n /**\n * Removes a hasAge property value.<p>\n * \n * @param oldHasAge the hasAge property value to be removed.\n */\n void removeHasAge(Integer oldHasAge);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcohol\n */\n \n /**\n * Gets all property values for the hasAlcohol property.<p>\n * \n * @returns a collection of values for the hasAlcohol property.\n */\n Collection<? extends Object> getHasAlcohol();\n\n /**\n * Checks if the class has a hasAlcohol property value.<p>\n * \n * @return true if there is a hasAlcohol property value.\n */\n boolean hasHasAlcohol();\n\n /**\n * Adds a hasAlcohol property value.<p>\n * \n * @param newHasAlcohol the hasAlcohol property value to be added\n */\n void addHasAlcohol(Object newHasAlcohol);\n\n /**\n * Removes a hasAlcohol property value.<p>\n * \n * @param oldHasAlcohol the hasAlcohol property value to be removed.\n */\n void removeHasAlcohol(Object oldHasAlcohol);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholBloodContent\n */\n \n /**\n * Gets all property values for the hasAlcoholBloodContent property.<p>\n * \n * @returns a collection of values for the hasAlcoholBloodContent property.\n */\n Collection<? extends Object> getHasAlcoholBloodContent();\n\n /**\n * Checks if the class has a hasAlcoholBloodContent property value.<p>\n * \n * @return true if there is a hasAlcoholBloodContent property value.\n */\n boolean hasHasAlcoholBloodContent();\n\n /**\n * Adds a hasAlcoholBloodContent property value.<p>\n * \n * @param newHasAlcoholBloodContent the hasAlcoholBloodContent property value to be added\n */\n void addHasAlcoholBloodContent(Object newHasAlcoholBloodContent);\n\n /**\n * Removes a hasAlcoholBloodContent property value.<p>\n * \n * @param oldHasAlcoholBloodContent the hasAlcoholBloodContent property value to be removed.\n */\n void removeHasAlcoholBloodContent(Object oldHasAlcoholBloodContent);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholResult\n */\n \n /**\n * Gets all property values for the hasAlcoholResult property.<p>\n * \n * @returns a collection of values for the hasAlcoholResult property.\n */\n Collection<? extends Object> getHasAlcoholResult();\n\n /**\n * Checks if the class has a hasAlcoholResult property value.<p>\n * \n * @return true if there is a hasAlcoholResult property value.\n */\n boolean hasHasAlcoholResult();\n\n /**\n * Adds a hasAlcoholResult property value.<p>\n * \n * @param newHasAlcoholResult the hasAlcoholResult property value to be added\n */\n void addHasAlcoholResult(Object newHasAlcoholResult);\n\n /**\n * Removes a hasAlcoholResult property value.<p>\n * \n * @param oldHasAlcoholResult the hasAlcoholResult property value to be removed.\n */\n void removeHasAlcoholResult(Object oldHasAlcoholResult);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholSpecimanType\n */\n \n /**\n * Gets all property values for the hasAlcoholSpecimanType property.<p>\n * \n * @returns a collection of values for the hasAlcoholSpecimanType property.\n */\n Collection<? extends Integer> getHasAlcoholSpecimanType();\n\n /**\n * Checks if the class has a hasAlcoholSpecimanType property value.<p>\n * \n * @return true if there is a hasAlcoholSpecimanType property value.\n */\n boolean hasHasAlcoholSpecimanType();\n\n /**\n * Adds a hasAlcoholSpecimanType property value.<p>\n * \n * @param newHasAlcoholSpecimanType the hasAlcoholSpecimanType property value to be added\n */\n void addHasAlcoholSpecimanType(Integer newHasAlcoholSpecimanType);\n\n /**\n * Removes a hasAlcoholSpecimanType property value.<p>\n * \n * @param oldHasAlcoholSpecimanType the hasAlcoholSpecimanType property value to be removed.\n */\n void removeHasAlcoholSpecimanType(Integer oldHasAlcoholSpecimanType);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasDeployedAirbag\n */\n \n /**\n * Gets all property values for the hasDeployedAirbag property.<p>\n * \n * @returns a collection of values for the hasDeployedAirbag property.\n */\n Collection<? extends Integer> getHasDeployedAirbag();\n\n /**\n * Checks if the class has a hasDeployedAirbag property value.<p>\n * \n * @return true if there is a hasDeployedAirbag property value.\n */\n boolean hasHasDeployedAirbag();\n\n /**\n * Adds a hasDeployedAirbag property value.<p>\n * \n * @param newHasDeployedAirbag the hasDeployedAirbag property value to be added\n */\n void addHasDeployedAirbag(Integer newHasDeployedAirbag);\n\n /**\n * Removes a hasDeployedAirbag property value.<p>\n * \n * @param oldHasDeployedAirbag the hasDeployedAirbag property value to be removed.\n */\n void removeHasDeployedAirbag(Integer oldHasDeployedAirbag);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasGender\n */\n \n /**\n * Gets all property values for the hasGender property.<p>\n * \n * @returns a collection of values for the hasGender property.\n */\n Collection<? extends Integer> getHasGender();\n\n /**\n * Checks if the class has a hasGender property value.<p>\n * \n * @return true if there is a hasGender property value.\n */\n boolean hasHasGender();\n\n /**\n * Adds a hasGender property value.<p>\n * \n * @param newHasGender the hasGender property value to be added\n */\n void addHasGender(Integer newHasGender);\n\n /**\n * Removes a hasGender property value.<p>\n * \n * @param oldHasGender the hasGender property value to be removed.\n */\n void removeHasGender(Integer oldHasGender);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasHelmet\n */\n \n /**\n * Gets all property values for the hasHelmet property.<p>\n * \n * @returns a collection of values for the hasHelmet property.\n */\n Collection<? extends Integer> getHasHelmet();\n\n /**\n * Checks if the class has a hasHelmet property value.<p>\n * \n * @return true if there is a hasHelmet property value.\n */\n boolean hasHasHelmet();\n\n /**\n * Adds a hasHelmet property value.<p>\n * \n * @param newHasHelmet the hasHelmet property value to be added\n */\n void addHasHelmet(Integer newHasHelmet);\n\n /**\n * Removes a hasHelmet property value.<p>\n * \n * @param oldHasHelmet the hasHelmet property value to be removed.\n */\n void removeHasHelmet(Integer oldHasHelmet);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasInjury\n */\n \n /**\n * Gets all property values for the hasInjury property.<p>\n * \n * @returns a collection of values for the hasInjury property.\n */\n Collection<? extends Integer> getHasInjury();\n\n /**\n * Checks if the class has a hasInjury property value.<p>\n * \n * @return true if there is a hasInjury property value.\n */\n boolean hasHasInjury();\n\n /**\n * Adds a hasInjury property value.<p>\n * \n * @param newHasInjury the hasInjury property value to be added\n */\n void addHasInjury(Integer newHasInjury);\n\n /**\n * Removes a hasInjury property value.<p>\n * \n * @param oldHasInjury the hasInjury property value to be removed.\n */\n void removeHasInjury(Integer oldHasInjury);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasInjurySeverity\n */\n \n /**\n * Gets all property values for the hasInjurySeverity property.<p>\n * \n * @returns a collection of values for the hasInjurySeverity property.\n */\n Collection<? extends Integer> getHasInjurySeverity();\n\n /**\n * Checks if the class has a hasInjurySeverity property value.<p>\n * \n * @return true if there is a hasInjurySeverity property value.\n */\n boolean hasHasInjurySeverity();\n\n /**\n * Adds a hasInjurySeverity property value.<p>\n * \n * @param newHasInjurySeverity the hasInjurySeverity property value to be added\n */\n void addHasInjurySeverity(Integer newHasInjurySeverity);\n\n /**\n * Removes a hasInjurySeverity property value.<p>\n * \n * @param oldHasInjurySeverity the hasInjurySeverity property value to be removed.\n */\n void removeHasInjurySeverity(Integer oldHasInjurySeverity);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasRestraintType\n */\n \n /**\n * Gets all property values for the hasRestraintType property.<p>\n * \n * @returns a collection of values for the hasRestraintType property.\n */\n Collection<? extends Integer> getHasRestraintType();\n\n /**\n * Checks if the class has a hasRestraintType property value.<p>\n * \n * @return true if there is a hasRestraintType property value.\n */\n boolean hasHasRestraintType();\n\n /**\n * Adds a hasRestraintType property value.<p>\n * \n * @param newHasRestraintType the hasRestraintType property value to be added\n */\n void addHasRestraintType(Integer newHasRestraintType);\n\n /**\n * Removes a hasRestraintType property value.<p>\n * \n * @param oldHasRestraintType the hasRestraintType property value to be removed.\n */\n void removeHasRestraintType(Integer oldHasRestraintType);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#isPersonType\n */\n \n /**\n * Gets all property values for the isPersonType property.<p>\n * \n * @returns a collection of values for the isPersonType property.\n */\n Collection<? extends Integer> getIsPersonType();\n\n /**\n * Checks if the class has a isPersonType property value.<p>\n * \n * @return true if there is a isPersonType property value.\n */\n boolean hasIsPersonType();\n\n /**\n * Adds a isPersonType property value.<p>\n * \n * @param newIsPersonType the isPersonType property value to be added\n */\n void addIsPersonType(Integer newIsPersonType);\n\n /**\n * Removes a isPersonType property value.<p>\n * \n * @param oldIsPersonType the isPersonType property value to be removed.\n */\n void removeIsPersonType(Integer oldIsPersonType);\n\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public boolean contains(Interest i);", "void addHasPart(WrappedIndividual newHasPart);", "protected abstract NativeSQLStatement createNativeIntersectsStatement(Geometry geom);", "ObjectDeclaration objects( Predicate<? super ObjectAssembly> specification );", "public abstract boolean ContainsContactObjects();", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "Builder addIsPartOf(String value);", "@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n T value )\n {\n NullArgumentException.validateNotNull( \"Value\", value );\n return new ContainsSpecification<>( property( collectionProperty ), value );\n }", "@Test\n public void testWithinIndex() {\n\n db.command(new OCommandSQL(\"create class Polygon extends v\")).execute();\n db.command(new OCommandSQL(\"create property Polygon.geometry EMBEDDED OPolygon\")).execute();\n\n db.command(\n new OCommandSQL(\n \"insert into Polygon set geometry = ST_GeomFromText('POLYGON((0 0, 10 0, 10 5, 0 5, 0 0))')\"))\n .execute();\n\n db.command(\n new OCommandSQL(\"create index Polygon.g on Polygon (geometry) SPATIAL engine lucene\"))\n .execute();\n\n List<ODocument> execute =\n db.query(\n new OSQLSynchQuery<ODocument>(\n \"SELECT from Polygon where ST_DWithin(geometry, ST_GeomFromText('POLYGON((12 0, 14 0, 14 6, 12 6, 12 0))'), 2.0) = true\"));\n\n Assert.assertEquals(1, execute.size());\n\n OResultSet resultSet =\n db.query(\n \"SELECT from Polygon where ST_DWithin(geometry, ST_GeomFromText('POLYGON((12 0, 14 0, 14 6, 12 6, 12 0))'), 2.0) = true\");\n\n // Assert.assertEquals(1, resultSet.estimateSize());\n\n resultSet.stream().forEach(r -> System.out.println(\"r = \" + r));\n resultSet.close();\n }", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }", "boolean getContainEntities();", "EntityDeclaration entities( Predicate<? super EntityAssembly> specification );", "boolean containsAssociation(AssociationEnd association);", "InvoiceSpecification createInvoiceSpecification();", "@Override\n\tpublic void builder( String name, Object value)\n\t{\n\t\t\n\t\tthis._criteria.put( name , value);\n\t\t\n\t}", "void addHas(WrappedIndividual newHas);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsIgnoreCase(String field, String propertyValue);", "public void doSearch(int referenceId, int smallSetUpperBound,\n int largeSetLowerBound, int mediumSetPresentNumber,\n int replaceIndicator, String resultSetName,\n String databaseNames, String smallSetElementSetNames,\n String mediumSetElementSetNames, String preferredRecordSyntax,\n String query, int query_type, String searchResultsOID,\n DataDir Z39attributesPlusTerm,\n boolean fMakeDataDir) \n throws Exception, Diagnostic1, AccessControl {\n \n doSearch(referenceId, \n smallSetUpperBound, \n largeSetLowerBound, \n mediumSetPresentNumber,\n replaceIndicator,\n resultSetName,\n databaseNames,\n smallSetElementSetNames,\n mediumSetElementSetNames,\n preferredRecordSyntax,\n query,\n query_type,\n searchResultsOID,\n Z39attributesPlusTerm,\n null,\n null,\n null,\n\t\t null,\n fMakeDataDir);\n }", "public static Criteria newAndCreateCriteria() {\n SaleClassifyGoodExample example = new SaleClassifyGoodExample();\n return example.createCriteria();\n }", "public static <T> EqSpecification<String> eq( Association<T> association, T value )\n {\n return new EqSpecification<>( new PropertyFunction<String>( null,\n association( association ),\n null,\n null,\n IDENTITY_METHOD ),\n value.toString() );\n }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.CONTAINS)\n default boolean contains(IData other) {\n \n return notSupportedOperator(OperatorType.CONTAINS);\n }", "public ContainsNamedTypeChecker(String name) {\n myNames.add(name);\n }", "Association findAssociation(World w, BlockPos pos, String strategy);", "@Override\n\tpublic Set<Person> getfindByNameContainingIgnoreCase(String name) {\n\t\treturn null;\n\t}", "GeneralClause createGeneralClause();", "Collection<? extends WrappedIndividual> getIsPartOf();", "void createKeyword(String name);", "@Test\r\n public void testContains() {\r\n System.out.println(\"contains\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = true;\r\n boolean result = instance.contains(o);\r\n assertEquals(expResult, result);\r\n \r\n }", "List<Student> findByNameContainingIgnoringCase(String name);", "@Test\n \tpublic void whereClauseDirectDominanceNamed() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "Collection<? extends WrappedIndividual> getHas();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAny(String field, String... values);", "public PredicateBuilder closedPredicate(String name, String... argTypes) { return predicate(true, name, argTypes); }", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n Restriction in = newSingleIN(cfMetaData, 0, value1, value2, value3);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.START);\n assertComposite(bounds.get(1), value2, EOC.START);\n assertComposite(bounds.get(2), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n assertComposite(bounds.get(1), value2, EOC.END);\n assertComposite(bounds.get(2), value3, EOC.END);\n }", "PersonFinder whereNameContains(String fragment);", "@Test\n public void testBoundsAsCompositesWithSingleEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3) AND (clustering_1) < (4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n Restriction multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, false, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, EOC.START);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) => (2, 3) AND (clustering_1, clustering_2) <= (4, 5)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, true, value2, value3);\n multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, true, value4, value5);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, value5, EOC.END);\n }", "ServiceDeclaration services( Predicate<? super ServiceAssembly> specification );", "QueryElement addNotEmpty(String collectionProperty);", "public RelationPredicate(String name){\n\t\tthis.name=name;\n\t}", "private CriteriaQuery<Bank> getCriteriaQuery(String name, String location) {\n Expression expr; // refers to the attributes of entity class\n Root<Bank> queryRoot; // entity/table from which the selection is performed\n CriteriaQuery<Bank> queryDefinition; // query being built\n List<Predicate> predicates = new ArrayList<>(); // list of conditions in the where clause\n\n CriteriaBuilder builder; // creates predicates\n builder = em.getCriteriaBuilder();\n\n queryDefinition = builder.createQuery(Bank.class);\n // defines the from part of the query\n queryRoot = queryDefinition.from(Bank.class);\n // defines the select part of the query\n // at this point we have a query select s from Student s (select * from student in SQL)\n queryDefinition.select(queryRoot);\n if (name != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"name\");\n predicates.add(builder.like(expr, name));\n }\n\n if (location != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"location\");\n // creates condition of the form s.average >= average\n predicates.add(builder.equal(expr, location));\n }\n // if there are any conditions defined\n if (!predicates.isEmpty()) {\n // build the where part in which we combine the conditions using AND operator\n queryDefinition.where(\n builder.or(predicates.toArray(\n new Predicate[predicates.size()])));\n }\n return queryDefinition;\n }", "boolean containsTypedFeature(StructuralFeature typedFeature);", "public boolean contains(String searchTerm){\n\t\tsearchTerm = searchTerm.toUpperCase();\n\t\tString upperName = this.name.toUpperCase();\n\t\tString upperLocation = this.location.toUpperCase();\n\t\tString upperDescription = this.desc.toUpperCase();\n//\t\tString upperTag = this.tag.toUpperCase();\n\t\t\n\t\tboolean nameMatch = upperName.contains(searchTerm);\n\t\tboolean locationMatch = upperLocation.contains(searchTerm);\n\t\tboolean descMatch = upperDescription.contains(searchTerm);\n//\t\tboolean tagsMatch = upperTag.contains(searchTerm);\n\t\t\n\t\t\n\t\treturn\n\t\t\tnameMatch ||\n\t\t\tlocationMatch ||\n\t\t\tdescMatch;\n//\t\t\ttagsMatch;\n\t}", "void removeContains(WrappedIndividual oldContains);", "public void testOneAssociatedObjectNestedSearch1() throws Exception\r\n\t{\r\n\t\tPerson searchObject = new Person();\r\n\t\tIi ii = new Ii();\r\n\t\tii.setExtension(\"1\");\r\n\t\tsearchObject.setId(ii);\r\n\t\tCollection results = getApplicationService().search(\"gov.nih.nci.cacoresdk.domain.onetoone.unidirectional.Person\",searchObject );\r\n\r\n\t\tassertNotNull(results);\r\n\t\tassertEquals(1,results.size());\r\n\t\t\r\n\t\tIterator i = results.iterator();\r\n\t\tPerson result = (Person)i.next();\r\n\t\ttoXML(result);\r\n\t\tPerson result2 = (Person)fromXML(result);\r\n\t\t\r\n\t\tassertNotNull(result2);\r\n\t\tassertNotNull(result2.getId().getExtension()); \r\n\t\tassertEquals(II_ROOT_GLOBAL_CONSTANT_VALUE,result2.getId().getRoot());\r\n\t\tassertNotNull(result2.getName());\r\n\t\t\r\n\t\tAddress address = result2.getLivesAt();\r\n\t\tassertNotNull(address);\r\n\t\tassertNotNull(address.getId());\r\n\t\tassertNotNull(address.getZip());\r\n\t\tassertEquals(\"1\",address.getId().getExtension());\r\n\t}", "Collection<? extends WrappedIndividual> getHasPart();", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(multipleTagSet));\n return newPredicate;\n }", "@Test\n public void testBoundsAsCompositesWithEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n Restriction eq = newSingleEq(cfMetaData, 0, value3);\n\n Restriction slice = newSingleSlice(cfMetaData, 1, Bound.START, false, value1);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.END, true, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.END, false, value1);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, false, value1);\n Restriction slice2 = newSingleSlice(cfMetaData, 1, Bound.END, false, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value2, EOC.START);\n\n slice = newSingleSlice(cfMetaData, 1, Bound.START, true, value1);\n slice2 = newSingleSlice(cfMetaData, 1, Bound.END, true, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(slice).mergeWith(slice2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value1, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value3, value2, EOC.END);\n }", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "Collection<? extends Noun> getIsEquivalent();", "public static SearchQuery buildAutocompleteKnowledgeQuery(String searchWord) {\n\n BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();\n boolQueryBuilder.should(QueryBuilders.matchQuery(\"nameNgram\", searchWord))\n .must(QueryBuilders.matchQuery(\"nameSimple\", searchWord));\n// boolQueryBuilder.must(QueryBuilders.matchQuery(\"nameNgram\", searchWord)).must(QueryBuilders.matchQuery(\"nameSimple\", searchWord));\n// boolQueryBuilder.should(QueryBuilders.matchQuery(\"nameNgram\", searchWord));\n\n return buildNativeQuery(boolQueryBuilder, 0, 20);\n }", "public final void rule__Contains__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:2363:1: ( ( '.contains(' ) )\n // InternalBrowser.g:2364:1: ( '.contains(' )\n {\n // InternalBrowser.g:2364:1: ( '.contains(' )\n // InternalBrowser.g:2365:2: '.contains('\n {\n before(grammarAccess.getContainsAccess().getContainsKeyword_1()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getContainsAccess().getContainsKeyword_1()); \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 }", "boolean contains( Geometry gmo );", "public boolean containsContact(Contact c);", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "protected Query createAssocTypeQNameQuery(String queryText) throws SAXPathException\n {\n BooleanQuery booleanQuery = new BooleanQuery();\n \n XPathReader reader = new XPathReader();\n LuceneXPathHandler handler = new LuceneXPathHandler();\n handler.setNamespacePrefixResolver(namespacePrefixResolver);\n handler.setDictionaryService(dictionaryService);\n reader.setXPathHandler(handler);\n reader.parse(\"//\" + queryText);\n PathQuery query = handler.getQuery();\n query.setPathField(FIELD_PATH);\n query.setQnameField(FIELD_ASSOCTYPEQNAME);\n \n booleanQuery.add(query, Occur.SHOULD);\n booleanQuery.add(createPrimaryAssocTypeQNameQuery(queryText), Occur.SHOULD);\n \n return booleanQuery;\n }", "@Test\n public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 > 3\n Restriction multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n Restriction singleSlice = newSingleSlice(cfMetaData, 2, Bound.START, false, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiEq).mergeWith(singleSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "boolean isPartOf(String genomeName);", "public PlaceOfInterest(String _name,String _classifcation,String _shortExplanation,boolean _accessibleToSpecialNeeds)\r\n\t{\r\n\t\tthis._mapsArrayContainsThisPlaceOfInterest=new ArrayList<Map>();\r\n\t\tthis._tourArrayContainsThisPlaceOfInterest=new ArrayList<Tour>();\r\n\t\tthis._name=_name;\r\n\t\tthis._classifcation=_classifcation;\r\n\t\tthis._accessibleToSpecialNeeds=_accessibleToSpecialNeeds;\r\n\t}", "public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}", "protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom);", "@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }", "boolean hasSharedCriterion();", "public org.apache.xmlbeans.XmlAnySimpleType addNewSearchTerms()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(SEARCHTERMS$6);\n return target;\n }\n }" ]
[ "0.6354294", "0.5369379", "0.5222074", "0.51131994", "0.5093848", "0.4843222", "0.475398", "0.47414166", "0.4684457", "0.4646507", "0.45894632", "0.45806032", "0.45648095", "0.45231047", "0.44944942", "0.44923106", "0.4480406", "0.44675702", "0.44400135", "0.4436851", "0.44284642", "0.44155094", "0.43910247", "0.43092966", "0.4307637", "0.4305283", "0.42615604", "0.4259076", "0.42422074", "0.42200452", "0.42111546", "0.42092484", "0.42048198", "0.41876826", "0.41872346", "0.41819838", "0.41810274", "0.41716266", "0.4169354", "0.41658", "0.41622466", "0.4161394", "0.41584724", "0.41388872", "0.41291124", "0.41281822", "0.41188183", "0.41125602", "0.41088226", "0.4099538", "0.4091329", "0.4084887", "0.40801892", "0.4076704", "0.4069258", "0.406159", "0.4055091", "0.4054552", "0.4048657", "0.40481043", "0.4039332", "0.40349743", "0.40334204", "0.40260646", "0.4007989", "0.400608", "0.40047455", "0.40018407", "0.39971668", "0.39969018", "0.39918157", "0.39906862", "0.3985503", "0.39826432", "0.39774954", "0.39746436", "0.3969901", "0.396791", "0.39644432", "0.3958265", "0.3955086", "0.39528108", "0.39522263", "0.39485642", "0.39480707", "0.39467895", "0.39440155", "0.39422095", "0.39398748", "0.3938941", "0.39346188", "0.3933752", "0.39330196", "0.39237443", "0.3922278", "0.39196682", "0.39123484", "0.39031214", "0.39008337", "0.38976887" ]
0.66680497
0
Create a new CONTAINS NAME specification for a NamedAssociation.
public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc, String name ) { return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value );\n }", "SpecialNamesConditionNameReference createSpecialNamesConditionNameReference();", "public ComplexType searchEdmComplexType(String embeddableTypeName);", "void addContains(WrappedIndividual newContains);", "boolean contains(String name);", "public ContainsNamedTypeChecker(String name) {\n myNames.add(name);\n }", "void createKeyword(String name);", "@Override\n\tpublic Set<Person> getfindByNameContaining(String name) {\n\t\treturn null;\n\t}", "List<Cloth> findByNameContaining(String name);", "void addIsEquivalent(Noun newIsEquivalent);", "boolean containsStudentWith(String name);", "AggregationBuilder buildIncludeFilteredAggregation(Set<String> includeNames);", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "public RelationPredicate(String name){\n\t\tthis.name=name;\n\t}", "public void addCriterion(String name)\n {\n _savedSearchDef.addSearchFieldDef(name, null, null, null, \n false /* isMultiSelect*/, \n true /* isRemovable*/, \n new boolean[]{false, false});\n _conjunctionCriterion = new DemoConjunctionCriterion(_savedSearchDef);\n }", "WithFlexibleName withName(String name);", "List<Student> findByNameContainingIgnoringCase(String name);", "@Override\n\tpublic Set<Person> getfindByNameContainingIgnoreCase(String name) {\n\t\treturn null;\n\t}", "public AssociationTest(String name) {\n\t\tsuper(name);\n\t}", "private PersonContainsKeywordsPredicate createNewPersonPredicateForSingleTag(Tag tag) throws Exception {\n Set<Tag> singleTagSet = new HashSet<Tag>(Arrays.asList(tag));\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(singleTagSet));\n return newPredicate;\n }", "NamedParameter createNamedParameter();", "@JsonCreator\n public WithinPredicate(@JsonProperty(\"geometry\") String geometry) {\n Objects.requireNonNull(geometry, \"<geometry> may not be null\");\n try {\n // test if it is a valid WKT\n SearchTypeValidator.validate(OccurrenceSearchParameter.GEOMETRY, geometry);\n } catch (IllegalArgumentException e) {\n // Log invalid strings, but continue - the geometry parser has changed over time, and some once-valid strings\n // are no longer considered valid. See https://github.com/gbif/gbif-api/issues/48.\n LOG.warn(\"Invalid geometry string {}: {}\", geometry, e.getMessage());\n }\n this.geometry = geometry;\n }", "org.hl7.fhir.CodeableConcept addNewName();", "PersonFinder whereNameStartsWith(String prefix);", "Collection<? extends WrappedIndividual> getContains();", "@Test\n \tpublic void whereClauseDirectDominanceNamed() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "@Override\r\n\t\t\tpublic boolean hasKeyword(String name) {\n\t\t\t\treturn false;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean hasKeyword(String name) {\n\t\t\t\treturn false;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean hasKeyword(String name) {\n\t\t\t\treturn false;\r\n\t\t\t}", "public Service(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name) {\n super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);\n software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \"scope is required\"), java.util.Objects.requireNonNull(name, \"name is required\") });\n }", "@Override\n\tpublic void builder( String name, Object value)\n\t{\n\t\t\n\t\tthis._criteria.put( name , value);\n\t\t\n\t}", "void addIsPartOf(WrappedIndividual newIsPartOf);", "public void setNamedInsured(entity.PolicyNamedInsured value);", "public NamedEntity(String name) { this(name, \"\"); }", "public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }", "public abstract SmartObject findIndividualName(String individualName);", "public ComplexType searchEdmComplexType(FullQualifiedName type);", "boolean nameExists(Key name);", "public MagicSearch createMagicSearch();", "public static <T> EqSpecification<String> eq( Association<T> association, T value )\n {\n return new EqSpecification<>( new PropertyFunction<String>( null,\n association( association ),\n null,\n null,\n IDENTITY_METHOD ),\n value.toString() );\n }", "boolean isPartOf(String genomeName);", "PersonFinder whereNameContains(String fragment);", "protected abstract NativeSQLStatement createNativeContainsStatement(Geometry geom);", "public CMakeReservedWord(final String name)\n {\n if (StringUtils.isBlank(name)) {\n throw new IllegalArgumentException(\"name cannot be blank.\"); //$NON-NLS-1$\n }\n \n this.name = name;\n \n }", "public void test_findUniqueByNamedOfQuery() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByNamedOfQuery(FIND_PERSON_BY_NAME_EXT, NAME_PARAM[2]);\r\n\t\tassertForFindUniquePerson(person);\r\n\t\t\r\n\t\tperson = (Person) this.persistenceService.findUniqueByNamedOfQuery(FIND_PERSON_BY_NAME, getParamMap(2));\r\n\t\tassertForFindUniquePerson(person);\r\n\t}", "boolean contains(SimpleFeature feature);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> contains(String field, String propertyValue);", "public TruggerElementSelector(String name, Finder<Element> finder) {\n this.name = name;\n this.finder = finder;\n builder = new PredicateBuilder<Element>();\n }", "@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }", "public ContainsNamedTypeChecker(Set<String> names) {\n myNames.addAll(names);\n }", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "boolean hasCollectionName();", "Builder addIsPartOf(String value);", "public interface HadithSanad extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://purl.org/dc/terms/hasPart\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasPart property.<p>\r\n * \r\n * @returns a collection of values for the hasPart property.\r\n */\r\n Collection<? extends WrappedIndividual> getHasPart();\r\n\r\n /**\r\n * Checks if the class has a hasPart property value.<p>\r\n * \r\n * @return true if there is a hasPart property value.\r\n */\r\n boolean hasHasPart();\r\n\r\n /**\r\n * Adds a hasPart property value.<p>\r\n * \r\n * @param newHasPart the hasPart property value to be added\r\n */\r\n void addHasPart(WrappedIndividual newHasPart);\r\n\r\n /**\r\n * Removes a hasPart property value.<p>\r\n * \r\n * @param oldHasPart the hasPart property value to be removed.\r\n */\r\n void removeHasPart(WrappedIndividual oldHasPart);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://purl.org/dc/terms/isPartOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isPartOf property.<p>\r\n * \r\n * @returns a collection of values for the isPartOf property.\r\n */\r\n Collection<? extends WrappedIndividual> getIsPartOf();\r\n\r\n /**\r\n * Checks if the class has a isPartOf property value.<p>\r\n * \r\n * @return true if there is a isPartOf property value.\r\n */\r\n boolean hasIsPartOf();\r\n\r\n /**\r\n * Adds a isPartOf property value.<p>\r\n * \r\n * @param newIsPartOf the isPartOf property value to be added\r\n */\r\n void addIsPartOf(WrappedIndividual newIsPartOf);\r\n\r\n /**\r\n * Removes a isPartOf property value.<p>\r\n * \r\n * @param oldIsPartOf the isPartOf property value to be removed.\r\n */\r\n void removeIsPartOf(WrappedIndividual oldIsPartOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://quranontology.com/Resource/MentionedIn\r\n */\r\n \r\n /**\r\n * Gets all property values for the MentionedIn property.<p>\r\n * \r\n * @returns a collection of values for the MentionedIn property.\r\n */\r\n Collection<? extends Hadith> getMentionedIn();\r\n\r\n /**\r\n * Checks if the class has a MentionedIn property value.<p>\r\n * \r\n * @return true if there is a MentionedIn property value.\r\n */\r\n boolean hasMentionedIn();\r\n\r\n /**\r\n * Adds a MentionedIn property value.<p>\r\n * \r\n * @param newMentionedIn the MentionedIn property value to be added\r\n */\r\n void addMentionedIn(Hadith newMentionedIn);\r\n\r\n /**\r\n * Removes a MentionedIn property value.<p>\r\n * \r\n * @param oldMentionedIn the MentionedIn property value to be removed.\r\n */\r\n void removeMentionedIn(Hadith oldMentionedIn);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#collectionName\r\n */\r\n \r\n /**\r\n * Gets all property values for the collectionName property.<p>\r\n * \r\n * @returns a collection of values for the collectionName property.\r\n */\r\n Collection<? extends Object> getCollectionName();\r\n\r\n /**\r\n * Checks if the class has a collectionName property value.<p>\r\n * \r\n * @return true if there is a collectionName property value.\r\n */\r\n boolean hasCollectionName();\r\n\r\n /**\r\n * Adds a collectionName property value.<p>\r\n * \r\n * @param newCollectionName the collectionName property value to be added\r\n */\r\n void addCollectionName(Object newCollectionName);\r\n\r\n /**\r\n * Removes a collectionName property value.<p>\r\n * \r\n * @param oldCollectionName the collectionName property value to be removed.\r\n */\r\n void removeCollectionName(Object oldCollectionName);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#deprecatedBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the deprecatedBookNo property.<p>\r\n * \r\n * @returns a collection of values for the deprecatedBookNo property.\r\n */\r\n Collection<? extends Object> getDeprecatedBookNo();\r\n\r\n /**\r\n * Checks if the class has a deprecatedBookNo property value.<p>\r\n * \r\n * @return true if there is a deprecatedBookNo property value.\r\n */\r\n boolean hasDeprecatedBookNo();\r\n\r\n /**\r\n * Adds a deprecatedBookNo property value.<p>\r\n * \r\n * @param newDeprecatedBookNo the deprecatedBookNo property value to be added\r\n */\r\n void addDeprecatedBookNo(Object newDeprecatedBookNo);\r\n\r\n /**\r\n * Removes a deprecatedBookNo property value.<p>\r\n * \r\n * @param oldDeprecatedBookNo the deprecatedBookNo property value to be removed.\r\n */\r\n void removeDeprecatedBookNo(Object oldDeprecatedBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#deprecatedHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the deprecatedHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the deprecatedHadithNo property.\r\n */\r\n Collection<? extends Object> getDeprecatedHadithNo();\r\n\r\n /**\r\n * Checks if the class has a deprecatedHadithNo property value.<p>\r\n * \r\n * @return true if there is a deprecatedHadithNo property value.\r\n */\r\n boolean hasDeprecatedHadithNo();\r\n\r\n /**\r\n * Adds a deprecatedHadithNo property value.<p>\r\n * \r\n * @param newDeprecatedHadithNo the deprecatedHadithNo property value to be added\r\n */\r\n void addDeprecatedHadithNo(Object newDeprecatedHadithNo);\r\n\r\n /**\r\n * Removes a deprecatedHadithNo property value.<p>\r\n * \r\n * @param oldDeprecatedHadithNo the deprecatedHadithNo property value to be removed.\r\n */\r\n void removeDeprecatedHadithNo(Object oldDeprecatedHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#endingHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the endingHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the endingHadithNo property.\r\n */\r\n Collection<? extends Object> getEndingHadithNo();\r\n\r\n /**\r\n * Checks if the class has a endingHadithNo property value.<p>\r\n * \r\n * @return true if there is a endingHadithNo property value.\r\n */\r\n boolean hasEndingHadithNo();\r\n\r\n /**\r\n * Adds a endingHadithNo property value.<p>\r\n * \r\n * @param newEndingHadithNo the endingHadithNo property value to be added\r\n */\r\n void addEndingHadithNo(Object newEndingHadithNo);\r\n\r\n /**\r\n * Removes a endingHadithNo property value.<p>\r\n * \r\n * @param oldEndingHadithNo the endingHadithNo property value to be removed.\r\n */\r\n void removeEndingHadithNo(Object oldEndingHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#fullHadith\r\n */\r\n \r\n /**\r\n * Gets all property values for the fullHadith property.<p>\r\n * \r\n * @returns a collection of values for the fullHadith property.\r\n */\r\n Collection<? extends Object> getFullHadith();\r\n\r\n /**\r\n * Checks if the class has a fullHadith property value.<p>\r\n * \r\n * @return true if there is a fullHadith property value.\r\n */\r\n boolean hasFullHadith();\r\n\r\n /**\r\n * Adds a fullHadith property value.<p>\r\n * \r\n * @param newFullHadith the fullHadith property value to be added\r\n */\r\n void addFullHadith(Object newFullHadith);\r\n\r\n /**\r\n * Removes a fullHadith property value.<p>\r\n * \r\n * @param oldFullHadith the fullHadith property value to be removed.\r\n */\r\n void removeFullHadith(Object oldFullHadith);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithBookNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithBookNo property.\r\n */\r\n Collection<? extends Object> getHadithBookNo();\r\n\r\n /**\r\n * Checks if the class has a hadithBookNo property value.<p>\r\n * \r\n * @return true if there is a hadithBookNo property value.\r\n */\r\n boolean hasHadithBookNo();\r\n\r\n /**\r\n * Adds a hadithBookNo property value.<p>\r\n * \r\n * @param newHadithBookNo the hadithBookNo property value to be added\r\n */\r\n void addHadithBookNo(Object newHadithBookNo);\r\n\r\n /**\r\n * Removes a hadithBookNo property value.<p>\r\n * \r\n * @param oldHadithBookNo the hadithBookNo property value to be removed.\r\n */\r\n void removeHadithBookNo(Object oldHadithBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithBookUrl\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithBookUrl property.<p>\r\n * \r\n * @returns a collection of values for the hadithBookUrl property.\r\n */\r\n Collection<? extends Object> getHadithBookUrl();\r\n\r\n /**\r\n * Checks if the class has a hadithBookUrl property value.<p>\r\n * \r\n * @return true if there is a hadithBookUrl property value.\r\n */\r\n boolean hasHadithBookUrl();\r\n\r\n /**\r\n * Adds a hadithBookUrl property value.<p>\r\n * \r\n * @param newHadithBookUrl the hadithBookUrl property value to be added\r\n */\r\n void addHadithBookUrl(Object newHadithBookUrl);\r\n\r\n /**\r\n * Removes a hadithBookUrl property value.<p>\r\n * \r\n * @param oldHadithBookUrl the hadithBookUrl property value to be removed.\r\n */\r\n void removeHadithBookUrl(Object oldHadithBookUrl);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithChapterIntro\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithChapterIntro property.<p>\r\n * \r\n * @returns a collection of values for the hadithChapterIntro property.\r\n */\r\n Collection<? extends Object> getHadithChapterIntro();\r\n\r\n /**\r\n * Checks if the class has a hadithChapterIntro property value.<p>\r\n * \r\n * @return true if there is a hadithChapterIntro property value.\r\n */\r\n boolean hasHadithChapterIntro();\r\n\r\n /**\r\n * Adds a hadithChapterIntro property value.<p>\r\n * \r\n * @param newHadithChapterIntro the hadithChapterIntro property value to be added\r\n */\r\n void addHadithChapterIntro(Object newHadithChapterIntro);\r\n\r\n /**\r\n * Removes a hadithChapterIntro property value.<p>\r\n * \r\n * @param oldHadithChapterIntro the hadithChapterIntro property value to be removed.\r\n */\r\n void removeHadithChapterIntro(Object oldHadithChapterIntro);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithChapterNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithChapterNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithChapterNo property.\r\n */\r\n Collection<? extends Object> getHadithChapterNo();\r\n\r\n /**\r\n * Checks if the class has a hadithChapterNo property value.<p>\r\n * \r\n * @return true if there is a hadithChapterNo property value.\r\n */\r\n boolean hasHadithChapterNo();\r\n\r\n /**\r\n * Adds a hadithChapterNo property value.<p>\r\n * \r\n * @param newHadithChapterNo the hadithChapterNo property value to be added\r\n */\r\n void addHadithChapterNo(Object newHadithChapterNo);\r\n\r\n /**\r\n * Removes a hadithChapterNo property value.<p>\r\n * \r\n * @param oldHadithChapterNo the hadithChapterNo property value to be removed.\r\n */\r\n void removeHadithChapterNo(Object oldHadithChapterNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithNo property.\r\n */\r\n Collection<? extends Object> getHadithNo();\r\n\r\n /**\r\n * Checks if the class has a hadithNo property value.<p>\r\n * \r\n * @return true if there is a hadithNo property value.\r\n */\r\n boolean hasHadithNo();\r\n\r\n /**\r\n * Adds a hadithNo property value.<p>\r\n * \r\n * @param newHadithNo the hadithNo property value to be added\r\n */\r\n void addHadithNo(Object newHadithNo);\r\n\r\n /**\r\n * Removes a hadithNo property value.<p>\r\n * \r\n * @param oldHadithNo the hadithNo property value to be removed.\r\n */\r\n void removeHadithNo(Object oldHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithReferenceNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithReferenceNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithReferenceNo property.\r\n */\r\n Collection<? extends Object> getHadithReferenceNo();\r\n\r\n /**\r\n * Checks if the class has a hadithReferenceNo property value.<p>\r\n * \r\n * @return true if there is a hadithReferenceNo property value.\r\n */\r\n boolean hasHadithReferenceNo();\r\n\r\n /**\r\n * Adds a hadithReferenceNo property value.<p>\r\n * \r\n * @param newHadithReferenceNo the hadithReferenceNo property value to be added\r\n */\r\n void addHadithReferenceNo(Object newHadithReferenceNo);\r\n\r\n /**\r\n * Removes a hadithReferenceNo property value.<p>\r\n * \r\n * @param oldHadithReferenceNo the hadithReferenceNo property value to be removed.\r\n */\r\n void removeHadithReferenceNo(Object oldHadithReferenceNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithText\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithText property.<p>\r\n * \r\n * @returns a collection of values for the hadithText property.\r\n */\r\n Collection<? extends Object> getHadithText();\r\n\r\n /**\r\n * Checks if the class has a hadithText property value.<p>\r\n * \r\n * @return true if there is a hadithText property value.\r\n */\r\n boolean hasHadithText();\r\n\r\n /**\r\n * Adds a hadithText property value.<p>\r\n * \r\n * @param newHadithText the hadithText property value to be added\r\n */\r\n void addHadithText(Object newHadithText);\r\n\r\n /**\r\n * Removes a hadithText property value.<p>\r\n * \r\n * @param oldHadithText the hadithText property value to be removed.\r\n */\r\n void removeHadithText(Object oldHadithText);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithUrl\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithUrl property.<p>\r\n * \r\n * @returns a collection of values for the hadithUrl property.\r\n */\r\n Collection<? extends Object> getHadithUrl();\r\n\r\n /**\r\n * Checks if the class has a hadithUrl property value.<p>\r\n * \r\n * @return true if there is a hadithUrl property value.\r\n */\r\n boolean hasHadithUrl();\r\n\r\n /**\r\n * Adds a hadithUrl property value.<p>\r\n * \r\n * @param newHadithUrl the hadithUrl property value to be added\r\n */\r\n void addHadithUrl(Object newHadithUrl);\r\n\r\n /**\r\n * Removes a hadithUrl property value.<p>\r\n * \r\n * @param oldHadithUrl the hadithUrl property value to be removed.\r\n */\r\n void removeHadithUrl(Object oldHadithUrl);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#hadithVolumeNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the hadithVolumeNo property.<p>\r\n * \r\n * @returns a collection of values for the hadithVolumeNo property.\r\n */\r\n Collection<? extends Object> getHadithVolumeNo();\r\n\r\n /**\r\n * Checks if the class has a hadithVolumeNo property value.<p>\r\n * \r\n * @return true if there is a hadithVolumeNo property value.\r\n */\r\n boolean hasHadithVolumeNo();\r\n\r\n /**\r\n * Adds a hadithVolumeNo property value.<p>\r\n * \r\n * @param newHadithVolumeNo the hadithVolumeNo property value to be added\r\n */\r\n void addHadithVolumeNo(Object newHadithVolumeNo);\r\n\r\n /**\r\n * Removes a hadithVolumeNo property value.<p>\r\n * \r\n * @param oldHadithVolumeNo the hadithVolumeNo property value to be removed.\r\n */\r\n void removeHadithVolumeNo(Object oldHadithVolumeNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#inBookNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the inBookNo property.<p>\r\n * \r\n * @returns a collection of values for the inBookNo property.\r\n */\r\n Collection<? extends Object> getInBookNo();\r\n\r\n /**\r\n * Checks if the class has a inBookNo property value.<p>\r\n * \r\n * @return true if there is a inBookNo property value.\r\n */\r\n boolean hasInBookNo();\r\n\r\n /**\r\n * Adds a inBookNo property value.<p>\r\n * \r\n * @param newInBookNo the inBookNo property value to be added\r\n */\r\n void addInBookNo(Object newInBookNo);\r\n\r\n /**\r\n * Removes a inBookNo property value.<p>\r\n * \r\n * @param oldInBookNo the inBookNo property value to be removed.\r\n */\r\n void removeInBookNo(Object oldInBookNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#narratorChain\r\n */\r\n \r\n /**\r\n * Gets all property values for the narratorChain property.<p>\r\n * \r\n * @returns a collection of values for the narratorChain property.\r\n */\r\n Collection<? extends Object> getNarratorChain();\r\n\r\n /**\r\n * Checks if the class has a narratorChain property value.<p>\r\n * \r\n * @return true if there is a narratorChain property value.\r\n */\r\n boolean hasNarratorChain();\r\n\r\n /**\r\n * Adds a narratorChain property value.<p>\r\n * \r\n * @param newNarratorChain the narratorChain property value to be added\r\n */\r\n void addNarratorChain(Object newNarratorChain);\r\n\r\n /**\r\n * Removes a narratorChain property value.<p>\r\n * \r\n * @param oldNarratorChain the narratorChain property value to be removed.\r\n */\r\n void removeNarratorChain(Object oldNarratorChain);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#sameAs\r\n */\r\n \r\n /**\r\n * Gets all property values for the sameAs property.<p>\r\n * \r\n * @returns a collection of values for the sameAs property.\r\n */\r\n Collection<? extends Object> getSameAs();\r\n\r\n /**\r\n * Checks if the class has a sameAs property value.<p>\r\n * \r\n * @return true if there is a sameAs property value.\r\n */\r\n boolean hasSameAs();\r\n\r\n /**\r\n * Adds a sameAs property value.<p>\r\n * \r\n * @param newSameAs the sameAs property value to be added\r\n */\r\n void addSameAs(Object newSameAs);\r\n\r\n /**\r\n * Removes a sameAs property value.<p>\r\n * \r\n * @param oldSameAs the sameAs property value to be removed.\r\n */\r\n void removeSameAs(Object oldSameAs);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.lodislamica.me/ontology/hadithVoc#startingHadithNo\r\n */\r\n \r\n /**\r\n * Gets all property values for the startingHadithNo property.<p>\r\n * \r\n * @returns a collection of values for the startingHadithNo property.\r\n */\r\n Collection<? extends Object> getStartingHadithNo();\r\n\r\n /**\r\n * Checks if the class has a startingHadithNo property value.<p>\r\n * \r\n * @return true if there is a startingHadithNo property value.\r\n */\r\n boolean hasStartingHadithNo();\r\n\r\n /**\r\n * Adds a startingHadithNo property value.<p>\r\n * \r\n * @param newStartingHadithNo the startingHadithNo property value to be added\r\n */\r\n void addStartingHadithNo(Object newStartingHadithNo);\r\n\r\n /**\r\n * Removes a startingHadithNo property value.<p>\r\n * \r\n * @param oldStartingHadithNo the startingHadithNo property value to be removed.\r\n */\r\n void removeStartingHadithNo(Object oldStartingHadithNo);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property https://www.w3.org/2000/01/rdf-schema#label\r\n */\r\n \r\n /**\r\n * Gets all property values for the label property.<p>\r\n * \r\n * @returns a collection of values for the label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a label property value.<p>\r\n * \r\n * @return true if there is a label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a label property value.<p>\r\n * \r\n * @param newLabel the label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a label property value.<p>\r\n * \r\n * @param oldLabel the label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "Expertise findByName(String name);", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsIgnoreCase(String field, String propertyValue);", "public boolean containsIndependentParameter(String name);", "private ConfigParamSpecification(Name simpleName, TypeName returnType) {\n this.simpleName = simpleName;\n this.returnType = returnType;\n }", "private boolean contains(String name, AssassinNode current) {\n while (current != null) {\n if (current.name.equalsIgnoreCase(name)) {\n return true;\n } else {\n current = current.next;\n }\n }\n return false;\n }", "public PredicateBuilder closedPredicate(String name, String... argTypes) { return predicate(true, name, argTypes); }", "public boolean containsConstraint(final String name) {\n boolean found = false;\n \n for (PgConstraint constraint : constraints) {\n if (constraint.getName().equals(name)) {\n found = true;\n \n break;\n }\n }\n \n return found;\n }", "Keyword findKeywordByName(String name);", "ConditionNameReference createConditionNameReference();", "List<Item> findByNameContainingIgnoreCase(String name);", "AlphabetNameReference createAlphabetNameReference();", "public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}", "CamelJpaConsumerBindingModel setNamedQuery(String namedQuery);", "public void testBug631Prefixes() {\n // Set the prefix length large enough so that we ensure prefixes are\n // appropriately tested\n final String[] prototypeNames = {\n \"__proto__\", \"constructor\", \"eval\", \"prototype\", \"toString\",\n \"toSource\", \"unwatch\", \"valueOf\",};\n\n for (int i = 0; i < prototypeNames.length; i++) {\n final String name = prototypeNames[i] + \"AAAAAAAAAAAAAAAAAAAA\";\n final PrefixTree tree = new PrefixTree(prototypeNames[i].length());\n\n assertFalse(\"Incorrectly found \" + name, tree.contains(name));\n\n assertTrue(\"First add() didn't return true: \" + name, tree.add(name));\n assertFalse(\"Second add() of duplicate entry didn't return false: \"\n + name, tree.add(name));\n\n assertTrue(\"contains() didn't find added word: \" + name,\n tree.contains(name));\n\n testSizeByIterator(tree);\n assertTrue(\"PrefixTree doesn't contain the desired word\",\n 1 == tree.size());\n }\n }", "InvoiceSpecification createInvoiceSpecification();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable );\n return new ContainsSpecification( property( collectionProperty ), variable );\n }", "public void namedQuery(String name) throws HibException;", "public static void setClauseNameAdded(boolean isClauseNameAdded) {\r\n\t\tEditSubTreeDialogBox.isClauseNameAdded = isClauseNameAdded;\r\n\t}", "ObjectDeclaration objects( Predicate<? super ObjectAssembly> specification );", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "protected static boolean checkForClauseNameIfPresent(boolean result,\r\n\t\tint numberOfClause, String text, XmlTreeDisplay xmlTreeDisplay) {\r\n\t\t\tfor(int i=0; i< numberOfClause; i++){\r\n\t\t\t\tif(xmlTreeDisplay.getClauseNamesListBox().getItemText(i).equalsIgnoreCase(text)){\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t}", "public TXSemanticTag addInterest(String name, String si);", "void addHasPart(WrappedIndividual newHasPart);", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ArrayList<>(multipleTagSet));\n return newPredicate;\n }", "public void searchByName(String name) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif(line.toLowerCase().contains(name.toLowerCase())) {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "NamedType createNamedType();", "@SuppressWarnings( \"unchecked\" )\n public static <T> NamedAssociationFunction<T> namedAssociation( NamedAssociation<T> association )\n {\n return ( (NamedAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).namedAssociation();\n }", "ServiceDeclaration services( Predicate<? super ServiceAssembly> specification );", "public MyAnnotator(String name, Properties props){\r\n sch = props.getProperty(\"Search.string\",\"the\"); //gets search string if specified, else defaults to \"the\"\r\n }", "EntityDeclaration entities( Predicate<? super EntityAssembly> specification );", "public ContainsBuilder(DataBaseConnection dataBaseConnection) {\n super(dataBaseConnection);\n selectBuilder = new SelectBuilder(dataBaseConnection);\n }", "void addHasInstitutionName(String newHasInstitutionName);", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyNamedInsured getNamedInsured();", "public NamedEntity(String name, String abbrev) {\n this.name= name;\n this.abbrev = abbrev;\n }", "public boolean qualifyIndexName() {\n \t\treturn true;\n \t}", "@NotNull\n private static Map<String, ? extends PropertyValue> buildBinding(@NotNull String nameHint, boolean exactMatch) {\n String val = nameHint;\n if (!exactMatch) {\n // not-exact query matching required => add leading and trailing %\n if (nameHint.isEmpty()) {\n val = \"%\";\n } else {\n StringBuilder sb = new StringBuilder();\n sb.append('%');\n sb.append(nameHint.replace(\"%\", \"\\\\%\").replace(\"_\", \"\\\\_\"));\n sb.append('%');\n val = sb.toString();\n }\n }\n return Collections.singletonMap(BINDING_PRINCIPAL_NAMES, PropertyValues.newString(val));\n }", "public Builder config(InlusiveNamingConfig inclusiveNamingConfig) {\n this.inclusiveNamingConfig = inclusiveNamingConfig;\n return this;\n }", "Criteria createCriteria(final String criteria);", "public static PartialIndexBuilder partialIndex(String name) {\n return new PartialIndexBuilderImpl(name);\n }", "public PlaceOfInterest(String _name,String _classifcation,String _shortExplanation,boolean _accessibleToSpecialNeeds)\r\n\t{\r\n\t\tthis._mapsArrayContainsThisPlaceOfInterest=new ArrayList<Map>();\r\n\t\tthis._tourArrayContainsThisPlaceOfInterest=new ArrayList<Tour>();\r\n\t\tthis._name=_name;\r\n\t\tthis._classifcation=_classifcation;\r\n\t\tthis._accessibleToSpecialNeeds=_accessibleToSpecialNeeds;\r\n\t}", "public boolean contains(String name) {\n return !isDocumentFile() && hasChild(name);\n }", "public ConstraintDefinition(String name) {\n\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\tm_parameterString = \"\";\n\t\tsetName(name);\n\t\tsetThresholdMultiplier(1.0);\n\t}", "public boolean containAttribute(String name);" ]
[ "0.658463", "0.49359655", "0.48449048", "0.47756535", "0.47698265", "0.47021934", "0.4670097", "0.46488893", "0.46197098", "0.46047005", "0.4588796", "0.45714507", "0.4554981", "0.45495817", "0.4496014", "0.44714627", "0.44578505", "0.44176686", "0.43809557", "0.43529654", "0.4350141", "0.43243814", "0.42918107", "0.42707866", "0.42616522", "0.42589238", "0.42533714", "0.42533714", "0.42533714", "0.4248124", "0.4247858", "0.42289233", "0.4217453", "0.4215901", "0.4215147", "0.41860914", "0.4171843", "0.41667414", "0.41648608", "0.41575357", "0.4155247", "0.415323", "0.414548", "0.4144332", "0.41385284", "0.41366184", "0.4131212", "0.41311556", "0.41304892", "0.4127594", "0.41264936", "0.41238979", "0.41141987", "0.41099364", "0.41081795", "0.4105403", "0.40901756", "0.40844393", "0.40834454", "0.40792704", "0.40773785", "0.40692127", "0.40668675", "0.4062112", "0.40474826", "0.40446553", "0.40430987", "0.404137", "0.4037233", "0.403221", "0.40319806", "0.40275878", "0.40275186", "0.40268645", "0.40205708", "0.4018224", "0.4017287", "0.40046763", "0.4004514", "0.3999483", "0.39962396", "0.39926782", "0.3990419", "0.39902604", "0.39826787", "0.3978657", "0.39696866", "0.3966818", "0.3965807", "0.3964975", "0.39627597", "0.39593098", "0.39576098", "0.39541936", "0.3941274", "0.3937923", "0.39305574", "0.3926926", "0.3922933", "0.39158544" ]
0.6885154
0
Ordering | Create a new Query ascending order segment for a Property.
public static <T> OrderBy orderBy( final Property<T> property ) { return orderBy( property, OrderBy.Order.ASCENDING ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchBuilder<T> ascending(final String property) {\n\t\treturn orderBy(property, true);\n\t}", "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "public static String addOrder(String queryString, String propertyPath, boolean asc) {\n\n\tif (StringUtils.containsIgnoreCase(queryString, \"order by\")) {\n\t return queryString;\n\t}\n\n\tStringBuilder sb = new StringBuilder(queryString);\n\tsb.append(\" ORDER BY \");\n\tsb.append(getAlias(queryString));\n\tsb.append(\".\");\n\tsb.append(propertyPath);\n\tsb.append(\" \");\n\tsb.append(asc ? \"ASC\" : \"DESC\");\n\n\treturn sb.toString();\n }", "OrderExpression<T> asc();", "public void setOrderAscending(boolean ascending)\n {\n this.orderAscending = ascending;\n }", "public void addOrderingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {\n if (theQuery.isReadAllQuery()) {\n Iterator iter = getOrderByItems().iterator();\n while (iter.hasNext()) {\n Node nextNode = (Node)iter.next();\n ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context));\n }\n }\n }", "OrderByClause createOrderByClause();", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "public WhereBuilder orderAsc(String field) {\r\n\t\torderByList.add(new OrderByBean(field, \"ASC\"));\r\n\t\treturn this;\r\n\t}", "public static <T> OrderBy orderBy( final Property<T> property, final OrderBy.Order order )\n {\n return new OrderBy( property( property ), order );\n }", "private void constructOrder(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree orderBy) {\n \t\tfinal List<Order> orders = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < orderBy.getChildCount(); i++) {\n \t\t\tfinal Tree orderByItem = orderBy.getChild(i);\n \t\t\tfinal Order order = orderByItem.getChildCount() == 2 ? //\n \t\t\t\tcb.desc(this.getExpression(cb, q, orderByItem.getChild(0), null)) : //\n \t\t\t\tcb.asc(this.getExpression(cb, q, orderByItem.getChild(0), null));\n \n \t\t\torders.add(order);\n \t\t}\n \n \t\tq.orderBy(orders);\n \t}", "public QueryElement addLowerThen(String property, Object value);", "Ordering<Part> getOrdering();", "@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}", "public final native void setOrderBy(String orderBy) /*-{\n this.setOrderBy(orderBy);\n }-*/;", "protected String setOrderParameterToSqlOrHql(final String hql, final PageRequest pageRequest) {\n\t\tStringBuilder builder = new StringBuilder(hql);\n\t\tbuilder.append(\" order by\");\n\t\tfor (Order order : pageRequest.getSort()) {\n\t\t\tbuilder.append(String.format(\" %s %s,\", order.getProperty(), order.getDirection().name()));\n\t\t}\n\t\tbuilder.deleteCharAt(builder.length() - 1);\n\t\treturn builder.toString();\n\t}", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "Sort asc(QueryParameter parameter);", "OrderByClauseArg createOrderByClauseArg();", "public boolean getOrderAscending()\n {\n return this.orderAscending;\n }", "private void sort(final OrderBy orderBy) {\n callback.orderByProperty().set(orderBy);\n\n sort();\n }", "protected Sort getSortASC() {\n Sort.Order order = new Sort.Order(Sort.Direction.ASC, \"id\");\n return Sort.by(order);\n }", "public IPrinterCollectionRequest orderBy(final String value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$orderby\", value));\n return (PrinterCollectionRequest)this;\n }", "public DataTableSortModel(String sortColumnProperty, boolean ascending)\r\n {\r\n this(sortColumnProperty, ascending, true);\r\n }", "@Override\n public Query customizeQuery(Object anObject, PersistenceBroker broker, CollectionDescriptor cod, QueryByCriteria query) {\n boolean platformMySQL = broker.serviceSqlGenerator().getPlatform() instanceof PlatformMySQLImpl;\n\n Map<String, String> attributes = getAttributes();\n for (String attributeName : attributes.keySet()) {\n if (!attributeName.startsWith(ORDER_BY_FIELD)) {\n continue;\n }\n\n String fieldName = attributeName.substring(ORDER_BY_FIELD.length());\n ClassDescriptor itemClassDescriptor = broker.getClassDescriptor(cod.getItemClass());\n FieldDescriptor orderByFieldDescriptior = itemClassDescriptor.getFieldDescriptorByName(fieldName);\n\n // the column to sort on derived from the property name\n String orderByColumnName = orderByFieldDescriptior.getColumnName();\n\n // ascending or descending\n String fieldValue = attributes.get(attributeName);\n boolean ascending = (StringUtils.equals(fieldValue, ASCENDING));\n // throw an error if not ascending or descending\n if (!ascending && StringUtils.equals(fieldValue, DESCENDING)) {\n throw new RuntimeException(\"neither ASC nor DESC was specified in ojb file for \" + fieldName);\n }\n\n if (platformMySQL) {\n // by negating the column name in MySQL we can get nulls last (ascending or descending)\n String mysqlPrefix = (ascending) ? MYSQL_NEGATION : \"\";\n query.addOrderBy(mysqlPrefix + orderByColumnName, false);\n } else {\n query.addOrderBy(orderByColumnName, ascending);\n }\n }\n return query;\n }", "public void setOrderBy(boolean value) {\n this.orderBy = value;\n }", "OrderByClauseArgs createOrderByClauseArgs();", "java.lang.String getOrderBy();", "public PriceComparator()\n\t{\n\t\tascending=true;\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> orderAscBy(String field);", "protected void prepareOrderBy(String query, QueryConfig config) {\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> orderAscBy(EntityField field);", "private List<QueryOrderByConfig> generateOrderBy(List<OrderByAttribute> orderByAttributeList) {\n\n List<QueryOrderByConfig> orderBy = new ArrayList<>();\n for (OrderByAttribute orderByAttribute : orderByAttributeList) {\n String value = \"\";\n if (orderByAttribute.getVariable().getStreamId() != null) {\n value = orderByAttribute.getVariable().getStreamId() + \".\";\n }\n value += orderByAttribute.getVariable()\n .getAttributeName();\n orderBy.add(new QueryOrderByConfig(\n value,\n orderByAttribute.getOrder().name()));\n }\n return orderBy;\n }", "OrderByColumnFull createOrderByColumnFull();", "private ArrayList<WordDocument> orderBy(ArrayList<WordDocument> listToOrder, String orderProperty, String orderDirection){\n ArrayList<WordDocument> orderedList;\n\n int propertyIndex = this.properties.indexOf(orderProperty);\n int orderDirectionIndex = this.orderDirections.indexOf(orderDirection);\n\n if(propertyIndex != -1 && orderDirectionIndex != -1){\n if(propertyIndex == 0){\n setRelevanceForDocuments(listToOrder);\n orderedList = BubbleSort.sort(listToOrder, propertyIndex, orderDirectionIndex);\n }else\n orderedList = BubbleSort.sort(listToOrder, propertyIndex, orderDirectionIndex);\n }\n else\n throw new IllegalArgumentException();\n\n return orderedList;\n }", "public final native String getOrderBy() /*-{\n return this.getOrderBy();\n }-*/;", "@Override\n public DomainOrder getDomainOrder() {\n return DomainOrder.ASCENDING;\n }", "@Override\n public DomainOrder getDomainOrder() {\n return DomainOrder.ASCENDING;\n }", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "public interface SortField {\n\n /**\n * The field path.\n */\n PropertyPath getPath();\n\n /**\n * Indicates if sorting is ascending or descending.\n */\n boolean isAscending();\n}", "void setOrderBy(DriveRequest<?> request, String orderBy);", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public SearchBuilder<T> descending(final String property) {\n\t\treturn orderBy(property, false);\n\t}", "public QueryElement addLowerEqualsThen(String property, Object value);", "public Order() {\n this(DSL.name(\"order\"), null);\n }", "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createExpressionBuilderResolver());\n\t\tthis.orderSqlExpr = builder.buildSqlExpression(this.orderExpr);\n\t\treturn this.orderSqlExpr;\n\t}", "public PriceComparator(boolean asc)\n\t{\n\t\tascending=asc;\n\t}", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }" ]
[ "0.6754475", "0.6691389", "0.60935044", "0.59571654", "0.5912685", "0.5841472", "0.5803819", "0.5767864", "0.5725294", "0.5665232", "0.55832124", "0.5437535", "0.52956736", "0.52918446", "0.5215078", "0.518564", "0.5184473", "0.51599354", "0.51564646", "0.5124861", "0.5073785", "0.5062584", "0.5056621", "0.50536084", "0.5035737", "0.5012732", "0.50019705", "0.49979562", "0.4982172", "0.4978441", "0.4970162", "0.4951884", "0.49479008", "0.49440774", "0.49312213", "0.49311322", "0.49048817", "0.49048817", "0.48865074", "0.48679394", "0.4861361", "0.48428997", "0.483623", "0.4809339", "0.4809339", "0.479395", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.47917992", "0.4788675", "0.47832808", "0.47757807", "0.47651365", "0.47559553", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685", "0.47441685" ]
0.62730706
2
Create a new Query ordering segment for a Property.
public static <T> OrderBy orderBy( final Property<T> property, final OrderBy.Order order ) { return new OrderBy( property( property ), order ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "public SearchBuilder<T> ascending(final String property) {\n\t\treturn orderBy(property, true);\n\t}", "public static <T> OrderBy orderBy( final Property<T> property )\n {\n return orderBy( property, OrderBy.Order.ASCENDING );\n }", "public static String addOrder(String queryString, String propertyPath, boolean asc) {\n\n\tif (StringUtils.containsIgnoreCase(queryString, \"order by\")) {\n\t return queryString;\n\t}\n\n\tStringBuilder sb = new StringBuilder(queryString);\n\tsb.append(\" ORDER BY \");\n\tsb.append(getAlias(queryString));\n\tsb.append(\".\");\n\tsb.append(propertyPath);\n\tsb.append(\" \");\n\tsb.append(asc ? \"ASC\" : \"DESC\");\n\n\treturn sb.toString();\n }", "OrderByClause createOrderByClause();", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "private void constructOrder(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree orderBy) {\n \t\tfinal List<Order> orders = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < orderBy.getChildCount(); i++) {\n \t\t\tfinal Tree orderByItem = orderBy.getChild(i);\n \t\t\tfinal Order order = orderByItem.getChildCount() == 2 ? //\n \t\t\t\tcb.desc(this.getExpression(cb, q, orderByItem.getChild(0), null)) : //\n \t\t\t\tcb.asc(this.getExpression(cb, q, orderByItem.getChild(0), null));\n \n \t\t\torders.add(order);\n \t\t}\n \n \t\tq.orderBy(orders);\n \t}", "public void addOrderingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {\n if (theQuery.isReadAllQuery()) {\n Iterator iter = getOrderByItems().iterator();\n while (iter.hasNext()) {\n Node nextNode = (Node)iter.next();\n ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context));\n }\n }\n }", "public QueryElement addLowerThen(String property, Object value);", "public SearchBuilder<T> descending(final String property) {\n\t\treturn orderBy(property, false);\n\t}", "Ordering<Part> getOrdering();", "@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}", "protected String setOrderParameterToSqlOrHql(final String hql, final PageRequest pageRequest) {\n\t\tStringBuilder builder = new StringBuilder(hql);\n\t\tbuilder.append(\" order by\");\n\t\tfor (Order order : pageRequest.getSort()) {\n\t\t\tbuilder.append(String.format(\" %s %s,\", order.getProperty(), order.getDirection().name()));\n\t\t}\n\t\tbuilder.deleteCharAt(builder.length() - 1);\n\t\treturn builder.toString();\n\t}", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "OrderByColumnFull createOrderByColumnFull();", "OrderByClauseArg createOrderByClauseArg();", "private void createHeader(int propertyCode) {\r\n switch (propertyCode) {\r\n case 0:\r\n _header = \"\";\r\n break;\r\n case 1:\r\n _header = \"#directed\";\r\n break;\r\n case 2:\r\n _header = \"#attributed\";\r\n break;\r\n case 3:\r\n _header = \"#weighted\";\r\n break;\r\n case 4:\r\n _header = \"#directed #attributed\";\r\n break;\r\n case 5:\r\n _header = \"#directed #weighted\";\r\n break;\r\n case 6:\r\n _header = \"#directed #attributed #weighted\";\r\n break;\r\n case 7:\r\n _header = \"#attributed #weighted\";\r\n break;\r\n }\r\n }", "OrderByClauseArgs createOrderByClauseArgs();", "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}", "protected void prepareOrderBy(String query, QueryConfig config) {\n }", "OrderExpression<T> asc();", "private List<QueryOrderByConfig> generateOrderBy(List<OrderByAttribute> orderByAttributeList) {\n\n List<QueryOrderByConfig> orderBy = new ArrayList<>();\n for (OrderByAttribute orderByAttribute : orderByAttributeList) {\n String value = \"\";\n if (orderByAttribute.getVariable().getStreamId() != null) {\n value = orderByAttribute.getVariable().getStreamId() + \".\";\n }\n value += orderByAttribute.getVariable()\n .getAttributeName();\n orderBy.add(new QueryOrderByConfig(\n value,\n orderByAttribute.getOrder().name()));\n }\n return orderBy;\n }", "public WhereBuilder orderAsc(String field) {\r\n\t\torderByList.add(new OrderByBean(field, \"ASC\"));\r\n\t\treturn this;\r\n\t}", "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "String convertToSortProperty(String sortParameter) throws ValidationFailureException;", "public final native void setOrderBy(String orderBy) /*-{\n this.setOrderBy(orderBy);\n }-*/;", "private ArrayList<WordDocument> orderBy(ArrayList<WordDocument> listToOrder, String orderProperty, String orderDirection){\n ArrayList<WordDocument> orderedList;\n\n int propertyIndex = this.properties.indexOf(orderProperty);\n int orderDirectionIndex = this.orderDirections.indexOf(orderDirection);\n\n if(propertyIndex != -1 && orderDirectionIndex != -1){\n if(propertyIndex == 0){\n setRelevanceForDocuments(listToOrder);\n orderedList = BubbleSort.sort(listToOrder, propertyIndex, orderDirectionIndex);\n }else\n orderedList = BubbleSort.sort(listToOrder, propertyIndex, orderDirectionIndex);\n }\n else\n throw new IllegalArgumentException();\n\n return orderedList;\n }", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public Order(String alias) {\n this(DSL.name(alias), ORDER);\n }", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "void setOrderBy(DriveRequest<?> request, String orderBy);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> orderAscBy(String field);", "QueryPartitionClause createQueryPartitionClause();", "private void sort(final OrderBy orderBy) {\n callback.orderByProperty().set(orderBy);\n\n sort();\n }", "SortOperator(String databaseDir, HashMap<String,String[]> schema, String fromTableName, String[] joinTableNames, String[] columnsInfo, Expression whereExpression, String[] orderBy){\n this.orderBy = columnsInfo2TableColumnsArray(orderBy);\n if (whereExpression == null) {\n projectOperator = new ProjectOperator(databaseDir, schema, fromTableName, columnsInfo);\n }\n else if(joinTableNames == null) {\n projectOperator = new ProjectOperator(databaseDir, schema, fromTableName, columnsInfo, whereExpression);\n }\n else {\n projectOperator = new ProjectOperator(databaseDir, schema, fromTableName, joinTableNames, columnsInfo, whereExpression);\n }\n }", "public Order() {\n this(DSL.name(\"order\"), null);\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public IPrinterCollectionRequest orderBy(final String value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$orderby\", value));\n return (PrinterCollectionRequest)this;\n }", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "@Override\n public Query customizeQuery(Object anObject, PersistenceBroker broker, CollectionDescriptor cod, QueryByCriteria query) {\n boolean platformMySQL = broker.serviceSqlGenerator().getPlatform() instanceof PlatformMySQLImpl;\n\n Map<String, String> attributes = getAttributes();\n for (String attributeName : attributes.keySet()) {\n if (!attributeName.startsWith(ORDER_BY_FIELD)) {\n continue;\n }\n\n String fieldName = attributeName.substring(ORDER_BY_FIELD.length());\n ClassDescriptor itemClassDescriptor = broker.getClassDescriptor(cod.getItemClass());\n FieldDescriptor orderByFieldDescriptior = itemClassDescriptor.getFieldDescriptorByName(fieldName);\n\n // the column to sort on derived from the property name\n String orderByColumnName = orderByFieldDescriptior.getColumnName();\n\n // ascending or descending\n String fieldValue = attributes.get(attributeName);\n boolean ascending = (StringUtils.equals(fieldValue, ASCENDING));\n // throw an error if not ascending or descending\n if (!ascending && StringUtils.equals(fieldValue, DESCENDING)) {\n throw new RuntimeException(\"neither ASC nor DESC was specified in ojb file for \" + fieldName);\n }\n\n if (platformMySQL) {\n // by negating the column name in MySQL we can get nulls last (ascending or descending)\n String mysqlPrefix = (ascending) ? MYSQL_NEGATION : \"\";\n query.addOrderBy(mysqlPrefix + orderByColumnName, false);\n } else {\n query.addOrderBy(orderByColumnName, ascending);\n }\n }\n return query;\n }", "void setOrderedQueryParameter(Query query, T value);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> orderAscBy(EntityField field);", "public TopNFinderBolt withNProperties(int N) {\n\t \tthis._n = N;\n\t \tthis._topNTreeMap = new TreeMap<Integer, String>();\n\t \tthis._topNMap = new HashMap<String, Integer>();\n\t\treturn this;\n }", "@Override\n public void addOrderItem(List<SqlNode> orderByList,\n RelFieldCollation field) {\n if (!(context.toSql(field) instanceof SqlLiteral)) {\n super.addOrderItem(orderByList, field);\n }\n }", "public YoungSeckillPromotionProductRelationExample orderBy(String orderByClause) {\n this.setOrderByClause(orderByClause);\n return this;\n }", "@Override\n public EntitiesResponse getNavProperty(String entitySetName, OEntityKey entityKey, String navProp, QueryInfo queryInfo) {\n ExtendedPropertyModel.setQueryInfo(queryInfo);\n try {\n final List<OEntity> entities = Lists.newArrayList();\n \n // work-around for a OData4J bug whereby URLs like this: http://win7-32:8080/ovodata/Ovodata.svc/&query=Sources('674dd7f3-6a1f-4f5a-a88f-86711b725921')/EpochGroups\n // product calls like this: getNavProperty(set:&query=Sources, key:('674dd7f3-6a1f-4f5a-a88f-86711b725921'), nav:EpochGroups, \n // query:{{inlineCnt:null, top:null, skip:null, filter:null, orderBy:null, skipToken:null, customOptions:{}, expand:[], select:[]}}), model:null\n if (entitySetName != null && entitySetName.startsWith(\"&query=\")) {\n entitySetName = entitySetName.substring(\"&query=\".length());\n }\n \n // find the property-model associated with this entity set name\n ExtendedPropertyModel<?> model = ExtendedPropertyModel.getPropertyModel(entitySetName);\n \n if (_log.isInfoEnabled()) {\n _log.info(\"getNavProperty(set:\" + entitySetName + \", key:\" + entityKey + \", nav:\" + navProp \n + \", query:{\" + OData4JServerUtils.toString(queryInfo) + \"}), model:\" + model);\n }\n \n if (model == null) {\n _log.warn(\"Unable to find model for entitySetName '\" + entitySetName + \"'\");\n throw new NotFoundException(entitySetName + \" type is not found\");\n }\n \n // find root entity \n Object entity = model.getEntityByKey(entityKey);\n if (entity == null) {\n if (_log.isInfoEnabled()) {\n _log.info(\"Unable to find entity in \" + model + \" with key \" + entityKey);\n }\n throw new NotFoundException(entitySetName + \"(\" + entityKey + \") was not found\");\n }\n \n // navProp is the NAME of the entity within the element in entitySetName - need to resolve it to a TYPE\n // not ALWAYS a collection, tho, so we also have to check properties (tho it can't be both)\n Class<?> navPropType = model.getCollectionElementType(navProp);\n boolean isCollection = true;\n if (navPropType == null) {\n navPropType = model.getPropertyType(navProp);\n isCollection = false;\n if (navPropType == null) {\n _log.warn(\"Unrecognized collection/property '\" + navProp + \"' within '\" + entitySetName + \"'\");\n throw new NotFoundException(navProp + \" collection not found in '\" + entitySetName + \"'\");\n }\n }\n ExtendedPropertyModel<?> subModel = ExtendedPropertyModel.getPropertyModel(navPropType);\n if (subModel == null) {\n _log.warn(\"Unrecognized type '\" + navPropType + \"' of '\" + navProp + \"' within '\" + entitySetName + \"'\");\n throw new NotFoundException(navProp + \" collection type '\" + navPropType + \"' is not known\");\n }\n\n final EdmEntitySet subEntitySet = getMetadata().getEdmEntitySet(subModel.entityName());\n // iterate over each sub-entity of entity which matches the navProp - they will all be of the same type\n Iterable<?> iterable = isCollection ? model.getCollectionValue(entity, navProp) : CollectionUtils.makeIterable(model.getPropertyValue(entity, navProp));\n Iterator<?> iter = iterable != null ? iterable.iterator() : null;\n if (iter != null) {\n if (queryInfo.skip != null) {\n for (int numToSkip = queryInfo.skip.intValue(); numToSkip > 0 && iter.hasNext(); --numToSkip) {\n iter.next(); // skip\n }\n }\n \n // TODO - this should influence how data is returned\n//TODO List<EntitySimpleProperty> expand = queryInfo.expand; - whether or not to expand out sub-elements or leave them as references\n// BoolCommonExpression filter = queryInfo.filter; - should be used by model\n// List<OrderByExpression> orderBy = queryInfo.orderBy; - should be used by model?\n\n for (int numToReturn = queryInfo.top != null ? queryInfo.top.intValue() : Integer.MAX_VALUE; numToReturn > 0 && iter.hasNext(); --numToReturn) {\n Object o = iter.next();\n /* \n List<OProperty<?>> properties = Lists.newArrayList();\n for (String propName : subModel.getPropertyNames()) {\n Class<?> propType = subModel.getPropertyType(propName);\n EdmSimpleType edmType = EdmSimpleType.forJavaType(propType);\n String propValue = String.valueOf(subModel.getPropertyValue(o, propName));\n // FIXME - seems weird to dumb this down to a string...\n properties.add(OProperties.parse(propName, edmType.getFullyQualifiedTypeName(), propValue));\n }\n \n List<OLink> links = Lists.newArrayList();\n for (String linkName : subModel.getCollectionNames()) {\n // Class<?> linkType = subModel.getCollectionElementType(linkName);\n // Iterable<?> linkValue = subModel.getCollectionValue(o, linkName);\n String relation = \"unknown\"; // FIXME - need values for relation\n String title = linkName;\n String href = \"/\" + linkName; // FIXME absolute or relative to current URL?\n links.add(OLinks.relatedEntities(relation, title, href));\n //FIXME OLinks.relatedEntitiesInline(relation, title, href, relatedEntities); // controlled via queryInfo $inline/$expand\n //FIXME - how to select this one? OLinks.relatedEntity(relation, title, href);\n //FIXME OLinks.relatedEntityInline(relation, title, href, relatedEntity); // controlled via queryInfo $inline/$expand\n }\n */\n if (o != null) {\n entities.add(toOEntity(subEntitySet, o, queryInfo.expand));\n }\n }\n \n } else {\n // FIXME no elments found to iterate the navProp is invalid?\n _log.info(\"no elments found to iterate the navProp is invalid?\");\n }\n \n return Responses.entities(entities, subEntitySet, Integer.valueOf(entities.size()), queryInfo.skipToken);\n } finally {\n // make sure to detach the QueryInfo from the thread when we're done\n ExtendedPropertyModel.setQueryInfo(null);\n }\n }", "private DBObject buildSortSpec(final GetObjectInformationParameters params) {\n\t\tfinal DBObject sort = new BasicDBObject();\n\t\tif (params.isObjectIDFiltersOnly()) {\n\t\t\tsort.put(Fields.VER_WS_ID, 1);\n\t\t\tsort.put(Fields.VER_ID, 1);\n\t\t\tsort.put(Fields.VER_VER, -1);\n\t\t}\n\t\treturn sort;\n\t}", "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(initializer);\n\n JetPsiFactory psiFactory = JetPsiFactory(property);\n //noinspection ConstantConditions, unchecked\n JetBinaryExpression newInitializer = psiFactory.createBinaryExpression(\n psiFactory.createSimpleName(property.getName()), \"=\", initializer\n );\n\n newInitializer = (JetBinaryExpression) parent.addAfter(newInitializer, property);\n parent.addAfter(psiFactory.createNewLine(), property);\n\n //noinspection ConstantConditions\n JetType inferredType = getPropertyTypeIfNeeded(property);\n\n String typeStr = inferredType != null\n ? IdeDescriptorRenderers.SOURCE_CODE.renderType(inferredType)\n : JetPsiUtil.getNullableText(property.getTypeReference());\n\n //noinspection ConstantConditions\n property = (JetProperty) property.replace(\n psiFactory.createProperty(property.getNameIdentifier().getText(), typeStr, property.isVar())\n );\n\n if (inferredType != null) {\n ShortenReferences.INSTANCE$.process(property.getTypeReference());\n }\n\n return newInitializer;\n }", "public int addProperty(Property property){\r\n\t\tif(property == null) {\r\n\t\t\treturn -2;\r\n\t\t}\r\n\t\tif(!plot.encompasses(property.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(property.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]=property;\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "@Override\r\n protected WorklistQuery createWorklistQuery(Set participantIds, boolean outline)\r\n {\n WorklistQuery query = super.createWorklistQuery(participantIds, outline);\r\n \r\n /* Add the following 'order by' criteria to default worklist query\r\n Order by\r\n Descending activity criticality (first and main criterion)\r\n Descending priority of corresponding process (second criterion)\r\n Descending time elapsed since activity creation (third criterion)*/\r\n query.orderBy(WorklistQuery.ACTIVITY_INSTANCE_CRITICALITY, false);\r\n query.orderBy(WorklistQuery.PROCESS_INSTANCE_PRIORITY, false);\r\n query.orderBy(WorklistQuery.START_TIME, true);\r\n \r\n return query;\r\n }", "public PropertySelector(Entity root, Property property) {\n this.root = root;\n this.property = property;\n }", "public void setOrderAscending(boolean ascending)\n {\n this.orderAscending = ascending;\n }", "private void parseQuery(String str) {\n String[] parts = str.split(\"orderby\");\n String[] elements = parts[0].split(\"\\\\s+\");\n\n // Use two-stack algorithm to parse prefix notation\n Stack<Comparable<String>> terms = new Stack<Comparable<String>>();\n Stack<Comparable<String>> helper = new Stack<Comparable<String>>();\n\n for (String el : elements) { terms.push(el); }\n while (!terms.isEmpty()) {\n Comparable<String> term = terms.pop();\n String operands = \"+|-\";\n if (operands.contains(term.toString())) {\n Comparable<String> leftSide = helper.pop();\n Comparable<String> rightSide = helper.pop();\n helper.push(new Subquery(leftSide, term.toString(), rightSide));\n } else {\n helper.push(term);\n }\n }\n\n Comparable<String> resultQuery = helper.pop();\n parsedQuery = resultQuery instanceof String ? new Subquery(resultQuery) : (Subquery) resultQuery;\n computeUniqueNotation(parsedQuery);\n\n if (parts.length < 2) {\n return;\n }\n\n // Parse sorting properties\n if (parts[1].contains(\"relevance\")) {\n property = \"RELEVANCE\";\n } else if (parts[1].contains(\"popularity\")) {\n property = \"POPULARITY\";\n }\n\n if (parts[1].contains(\"asc\")) {\n direction = 1;\n } else if (parts[1].contains(\"desc\")) {\n direction = -1;\n }\n }", "public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }", "public PropertySelector(PropertySelector parent, Property property) {\n this.parent = parent;\n this.property = property;\n }", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "@Override\n public void createIndex(String field, int type) {\n try {\n switch (type) {\n case 1:\n collection.createIndex(Indexes.ascending(field));\n break;\n case -1:\n collection.createIndex(Indexes.descending(field));\n break;\n default:\n collection.createIndex(Indexes.ascending(field));\n break;\n }\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n }\n }", "private void generateQuery() {\n\t\tString edgeType = \"\";\n\n\t\tif (isUnionTraversal || isTraversal || isWhereTraversal) {\n\t\t\tString previousNode = prevsNode;\n\t\t\tif (isUnionTraversal) {\n\t\t\t\tpreviousNode = unionMap.get(unionKey);\n\t\t\t\tisUnionTraversal = false;\n\t\t\t}\n\n\t\t\tEdgeRuleQuery edgeRuleQuery = new EdgeRuleQuery.Builder(previousNode, currentNode).build();\n\t\t\tEdgeRule edgeRule = null;\n\n\t\t\ttry {\n\t\t\t\tedgeRule = edgeRules.getRule(edgeRuleQuery);\n\t\t\t} catch (EdgeRuleNotFoundException | AmbiguousRuleChoiceException e) {\n\t\t\t}\n\n\t\t\tif (edgeRule == null) {\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t} else if (\"none\".equalsIgnoreCase(edgeRule.getContains())){\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t}else {\n\t\t\t\tedgeType = \"EdgeType.TREE\";\n\t\t\t}\n\n\t\t\tquery += \".createEdgeTraversal(\" + edgeType + \", '\" + previousNode + \"','\" + currentNode + \"')\";\n\n\t\t}\n\n\t\telse\n\t\t\tquery += \".getVerticesByProperty('aai-node-type', '\" + currentNode + \"')\";\n\t}", "public interface SortField {\n\n /**\n * The field path.\n */\n PropertyPath getPath();\n\n /**\n * Indicates if sorting is ascending or descending.\n */\n boolean isAscending();\n}", "public NumericPropertyColumn(IModel<String> displayModel, String sortProperty, String propertyExpression) {\n super(displayModel, sortProperty, propertyExpression);\n }", "public StatementBuilder desc(String... properties) {\n for (String p : properties) {\n order(Order.desc(p));\n }\n return this;\n }", "public QueryElement addLowerEqualsThen(String property, Object value);", "public QueryElement addGreaterThen(String property, Object value);", "public AbstractCriteriaQueryDefinition(\r\n\t\t\tEntityManager entityManager,\r\n\t\t\tboolean applicationManagedTransactions,\r\n\t\t\tClass<T> entityClass, \r\n\t\t\tint batchSize,\r\n\t\t\tObject[] nativeSortPropertyIds,\r\n\t\t\tboolean[] nativeSortPropertyAscendingStates\r\n\t\t\t) {\r\n\t\tthis(entityManager, applicationManagedTransactions, entityClass, batchSize);\r\n \r\n this.applicationManagedTransactions = applicationManagedTransactions;\r\n this.nativeSortPropertyIds = nativeSortPropertyIds;\r\n this.nativeSortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n\t}", "public DataTableSortModel(String sortColumnProperty, boolean ascending)\r\n {\r\n this(sortColumnProperty, ascending, true);\r\n }", "private TreeViewerColumn createColumn(final Property<?> property) {\n\t\tTreeViewerColumn column1 = new TreeViewerColumn(viewer, property.getRange().equals(String.class) ? SWT.LEFT : SWT.RIGHT);\n\t\tcolumn1.setLabelProvider(new DelegatingStyledCellLabelProvider(new TermLabelProvider(property, viewerConfig)));\n\t\tcolumn1.getColumn().setMoveable(true);\n\t\tcolumn1.getColumn().setData(property);\n\t\tcolumn1.getColumn().setText(property.getPropertyName());\n\t\tcolumn1.getColumn().setToolTipText(String.format(\"%s%n%s\", property.getPropertyName(), property.getDescription()));\n\t\tif(property instanceof TermProperty && property.isNumeric()) {\n\t\t\tcolumn1.getColumn().addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Good link to Sort examples\n\t\t\t\t\t * \n\t\t\t\t\t * http://www.programcreek.com/java-api-examples/index.php?api=org.eclipse.jface.viewers.TreeViewerColumn\n\t\t\t\t\t */\n\t\t\t\t\tupdateSortingProperty(property);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tlayout.setColumnData(column1.getColumn(), getRecommendedSize(property));\n\t\treturn column1;\n\t}", "public DrillBuilder setPropertyKey(String propertyKey) {\n this.propertyKey = propertyKey;\n return this;\n }", "DefinedProperty graphAddProperty( int propertyKey, Object value );", "Sort asc(QueryParameter parameter);", "Property createProperty();", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "public final ListProperty<T> segmentsProperty() {\n return segments;\n }", "void createPropertyKeyToken( String key, int id );", "private static SortOptions getNestedFieldSort(String fieldName, SortOrder order) {\n\t\treturn SortOptions.of(b -> b.field(f -> f.field(PROPS_FIELD + \".vn\").\n\t\t\t\t\t\torder(order).\n\t\t\t\t\t\tnested(n -> n.path(PROPS_FIELD).\n\t\t\t\t\t\tfilter(nf -> nf.term(t -> t.field(PROPS_FIELD + \".k\").\n\t\t\t\t\t\tvalue(fv -> fv.stringValue(StringUtils.removeStart(fieldName, PROPS_FIELD + \".\"))))))));\n\t}", "SqlSelect wrapSelectAndPushOrderBy(SqlNode node) {\n assert node instanceof SqlJoin\n || node instanceof SqlIdentifier\n || node instanceof SqlMatchRecognize\n || node instanceof SqlCall\n && (((SqlCall) node).getOperator() instanceof SqlSetOperator\n || ((SqlCall) node).getOperator() == SqlStdOperatorTable.AS\n || ((SqlCall) node).getOperator() == SqlStdOperatorTable.VALUES)\n : node;\n\n // Migrate the order by clause to the wrapping select statement,\n // if there is no fetch or offset clause accompanying the order by clause.\n SqlNodeList pushUpOrderList = null;\n if ((this.node instanceof SqlSelect) && shouldPushOrderByOut()) {\n SqlSelect selectClause = (SqlSelect) this.node;\n if ((selectClause.getFetch() == null) && (selectClause.getOffset() == null)) {\n pushUpOrderList = selectClause.getOrderList();\n selectClause.setOrderBy(null);\n\n if (node.getKind() == SqlKind.AS && pushUpOrderList != null) {\n // Update the referenced tables of the ORDER BY list to use the alias of the sub-select.\n\n List<SqlNode> selectList = (selectClause.getSelectList() == null)?\n Collections.emptyList() : selectClause.getSelectList().getList();\n\n OrderByAliasProcessor processor = new OrderByAliasProcessor(\n pushUpOrderList, SqlValidatorUtil.getAlias(node, -1), selectList);\n pushUpOrderList = processor.processOrderBy();\n }\n }\n }\n\n SqlNodeList selectList = getSelectList(node);\n\n return new SqlSelect(POS, SqlNodeList.EMPTY, selectList, node, null, null, null,\n SqlNodeList.EMPTY, pushUpOrderList, null, null);\n }", "public SortBuilder(String field) {\n if (field == null) {\n field = \"\";\n }\n switch (field) {\n case \"name\":\n this.field = \"name\";\n break;\n case \"introduced\":\n this.field = \"introduced\";\n break;\n case \"discontinued\":\n this.field = \"discontinued\";\n break;\n case \"company_id\":\n this.field = \"company\";\n break;\n case \"id\":\n default:\n this.field = \"id\";\n break;\n }\n }", "private void addSortingPagination(Map params, String entity, String dir, String sort, int start, int limit,\n\t\t\tint page) {\n\n\t\tparams.put(IReportDAO.ENTITY, entity);\n\t\tparams.put(IReportDAO.DIR, dir);\n\t\tparams.put(IReportDAO.SORT_COLUMN, sort);\n\t\tparams.put(IReportDAO.START_INDEX, start);\n\t\tparams.put(IReportDAO.LIMIT, limit);\n\t\tparams.put(IReportDAO.PAGE, page);\n\t}", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> selectWithSort(T entity, String sortPropertyName) {\n Criteria criteria = this.getCurrentSession().createCriteria(entity.getClass());\n List<T> result = criteria.add(Example.create(entity)).addOrder(Order.asc(sortPropertyName)).list();\n return result;\n }", "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createExpressionBuilderResolver());\n\t\tthis.orderSqlExpr = builder.buildSqlExpression(this.orderExpr);\n\t\treturn this.orderSqlExpr;\n\t}", "com.google.analytics.data.v1beta.OrderBy.MetricOrderBy getMetric();", "public CompositeProperty(List<Node> segments) {\n this(segments, PropertyMergeMode.NONE);\n }", "private DefaultTableModel createAscendingModel(int startRow, int count) {\n DefaultTableModel model = new DefaultTableModel(count, 5) {\n public Class getColumnClass(int column) {\n return column == 0 ? Integer.class : super.getColumnClass(column);\n }\n };\n for (int i = 0; i < model.getRowCount(); i++) {\n model.setValueAt(new Integer(startRow++), i, 0);\n }\n return model;\n }", "public void setOrderBy(boolean value) {\n this.orderBy = value;\n }", "public SmartSorting() {\n this(DSL.name(\"smart_sorting\"), null);\n }", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "public OrderedListField addOrderedListField(final Property property, final Object[] options) {\n return addOrderedListField(property.getKey(), options);\n }", "public PanoOrderTransCriteria(PanoOrderTransCriteria example) {\r\n this.orderByClause = example.orderByClause;\r\n this.oredCriteria = example.oredCriteria;\r\n }", "@VTID(10)\r\n int getOrder();", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);", "public OrderByNode() {\n super();\n }", "static public org.apache.spark.sql.catalyst.expressions.codegen.BaseOrdering create (org.apache.spark.sql.types.StructType schema) { throw new RuntimeException(); }", "OrOrderByColumn createOrOrderByColumn();", "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 PriceComparator()\n\t{\n\t\tascending=true;\n\t}", "public Property() {\n this(0, 0, 0, 0);\n }", "String getObjectByPropertyQuery(String subject, String property);", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "public CoverCommentEntityExample orderBy(String orderByClause) {\n this.setOrderByClause(orderByClause);\n return this;\n }", "public void setOrderExpression(ComparatorExpression orderExpr) {\n\t\tthis.orderExpr = orderExpr;\n\t}" ]
[ "0.5887889", "0.5839691", "0.58090717", "0.5340811", "0.528645", "0.5196062", "0.5041828", "0.49539334", "0.47376946", "0.47288966", "0.4677445", "0.46454498", "0.45728707", "0.45139378", "0.45070264", "0.44813225", "0.44645432", "0.44161367", "0.4399986", "0.439975", "0.4396706", "0.43799755", "0.4374809", "0.4373549", "0.43635598", "0.4361643", "0.43471465", "0.43368468", "0.43312025", "0.4324024", "0.43235427", "0.43104297", "0.43014407", "0.4300325", "0.42909107", "0.42881724", "0.42745295", "0.4271746", "0.4270658", "0.42673862", "0.4250841", "0.4225379", "0.4222039", "0.42151847", "0.42082527", "0.41943446", "0.41870752", "0.41827562", "0.41743103", "0.4173599", "0.41725937", "0.4166472", "0.4152836", "0.41475937", "0.41452175", "0.4135424", "0.41346812", "0.4130611", "0.4121715", "0.41197348", "0.41186908", "0.41174132", "0.41135576", "0.41086367", "0.41039687", "0.41036955", "0.41032106", "0.41014192", "0.4100756", "0.40895802", "0.40874675", "0.4076629", "0.40755388", "0.4074093", "0.40524253", "0.40522617", "0.40516067", "0.4048342", "0.40374616", "0.4031187", "0.40310392", "0.40238127", "0.40229985", "0.40208113", "0.4017771", "0.4007837", "0.40038306", "0.39995474", "0.3993962", "0.39891845", "0.3984674", "0.3971717", "0.39655405", "0.3959123", "0.39527202", "0.39406094", "0.39393792", "0.39381778", "0.39374733", "0.39291054" ]
0.53872097
3
We really get this from OSGi services!
@BeforeAll public static void createServices() throws Exception { interfaceService = new InterfaceService(); // Just for testing! This comes from OSGi really. UITestServicesSetup.createTestServices(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static interface Service {}", "public interface ImportedOsgiServiceProxy {\r\n\r\n\t/**\r\n\t * Provides access to the service reference used for accessing the backing\r\n\t * object. The returned object is a proxy over the native ServiceReference\r\n\t * obtained from the OSGi platform, so that proper service tracking is\r\n\t * obtained. This means that if the imported service change, the updates are\r\n\t * reflected to the returned service reference automatically.\r\n\t * \r\n\t * @return backing object service reference\r\n\t */\r\n\tServiceReferenceProxy getServiceReference();\r\n}", "public void service() {\n\t}", "@Override\n\tpublic void loadService() {\n\t\t\n\t}", "public abstract String getServiceName();", "private void initService() {\r\n\t}", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public String getOSGiServiceIdentifier();", "public java.lang.String getServiceName(){\n return localServiceName;\n }", "public void service_INIT(){\n }", "@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _autoDetailsService.getOSGiServiceIdentifier();\n\t}", "interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERVICE_PID + \".storeforward\"; //$NON-NLS-1$\n\n}", "public java.lang.String getOSGiServiceIdentifier();", "@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _weatherLocalService.getOSGiServiceIdentifier();\n\t}", "@Mixins( OSGiEnabledService.OSGiEnabledServiceMixin.class )\n@Activators( OSGiEnabledService.Activator.class )\npublic interface OSGiEnabledService extends ServiceComposite\n{\n\n void registerServices()\n throws Exception;\n\n void unregisterServices()\n throws Exception;\n\n class Activator\n extends ActivatorAdapter<ServiceReference<OSGiEnabledService>>\n {\n\n @Override\n public void afterActivation( ServiceReference<OSGiEnabledService> activated )\n throws Exception\n {\n activated.get().registerServices();\n }\n\n @Override\n public void beforePassivation( ServiceReference<OSGiEnabledService> passivating )\n throws Exception\n {\n passivating.get().unregisterServices();\n }\n\n }\n\n\n public abstract class OSGiEnabledServiceMixin\n implements OSGiEnabledService\n {\n @Uses\n ServiceDescriptor descriptor;\n\n @Structure\n private Module module;\n\n private ServiceRegistration registration;\n\n @Override\n public void registerServices()\n throws Exception\n {\n BundleContext context = descriptor.metaInfo( BundleContext.class );\n if( context == null )\n {\n return;\n }\n for( ServiceReference ref : module.findServices( first( descriptor.types() ) ) )\n {\n if( ref.identity().equals( identity().get() ) )\n {\n Iterable<Type> classesSet = cast(descriptor.types());\n Dictionary properties = descriptor.metaInfo( Dictionary.class );\n String[] clazzes = fetchInterfacesImplemented( classesSet );\n registration = context.registerService( clazzes, ref.get(), properties );\n }\n }\n }\n\n private String[] fetchInterfacesImplemented( Iterable<Type> classesSet )\n {\n return toArray( String.class, map( toClassName(), typesOf( classesSet ) ) );\n }\n\n @Override\n public void unregisterServices()\n throws Exception\n {\n if( registration != null )\n {\n registration.unregister();\n registration = null;\n }\n }\n }\n}", "protected abstract String getATiempoServiceName();", "@Override\n\tpublic String printServiceInfo() {\n\t\treturn serviceName;\n\t}", "@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _clipLocalService.getOSGiServiceIdentifier();\n\t}", "@Override\n public void populateServiceNotUpDiagnostics() {\n }", "protected void onFirstUse() {}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn WFMS_Position_AuditLocalService.class.getName();\n\t}", "public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }", "public interface OsgiVisitor {\n Bundle getBundle(long id);\n\n ServiceReference getServiceReferenceById(long id);\n\n ServiceReference[] getAllServiceReferences();\n\n PackageAdmin getPackageAdmin();\n\n StartLevel getStartLevel();\n\n Bundle installBundle(String location) throws BundleException;\n\n Bundle installBundle(String location, InputStream stream) throws BundleException;\n\n org.osgi.framework.launch.Framework getFramework();\n\n Bundle[] getBundles();\n\n String getProperty(String name);\n\n ServiceRegistration registerService(String className, Object object, Dictionary props);\n}", "@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}", "public String getServiceName(){\n return serviceName;\n }", "@Override\n protected void reconfigureService() {\n }", "@Override\n public String getName() {\n return \"Service Stability\";\n }", "@Override\n\tpublic void serviceResolved(ServiceEvent arg0) {\n\n\t}", "@ProviderType\npublic interface ServiceUserMapped {\n\n\n /**\n * The name of the osgi property holding the sub service name.\n */\n String SUBSERVICENAME = \"subServiceName\";\n\n}", "public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn LocalRichService.class.getName();\n\t}", "protected void onOSGiConnected() {\n osgiNotified = true;\n }", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "@Override\n\tpublic Service upstreamDeliverServiceInit() {\n\t\treturn null;\n\t}", "@Override\n public String getName() {\n return \"LibVirt Service Factory\";\n }", "public interface Service {\n // Service-specific methods go here\n }", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn ItemPublicacaoLocalService.class.getName();\n\t}", "public interface SysPluginService extends BaseService<Sys_plugin> {\n}", "public interface IResteasyService {\r\n\t\r\n\t/**\r\n\t * Service name inside OSGi namespace service registration.\r\n\t */\r\n\tpublic static final String SERVICE_NAME = ResteasyService.class.getName();\r\n\r\n\t/**\r\n\t * Add a SingletonResource.\r\n\t * @param resource\r\n\t */\r\n\tpublic void addSingletonResource(Object resource);\r\n\t\r\n\t/**\r\n\t * Remove a SingletonResource.\r\n\t * @param clazz\r\n\t */\r\n\tpublic void removeSingletonResource(Class<?> clazz);\r\n\r\n}", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "public boolean getUseGlobalService();", "public void initOsgi();", "public abstract String getSystemName();", "@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}", "@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _vcmsPortionLocalService.getOSGiServiceIdentifier();\n\t}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn MonthlyTradingLocalService.class.getName();\n\t}", "public void ventilationServices() {\n\t\tSystem.out.println(\"FH----overridden method from hospital management--parent class of fortis hospital\");\n\t}", "public interface WeighInService {\n}", "@Override\n\tpublic void subTypeForServiceTypeAdded(ServiceEvent arg0) {\n\n\t}", "protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}", "@ServiceInit\n public void init() {\n }", "public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}", "private ServiceLocator() {\r\n\t\t\r\n\t}", "ClassOfService getClassOfService();", "public interface AwesomeService {\n\n public final static String label = \"core::service::ui::AwesomeService\";\n\n public Node getIcon(final Path path);\n}", "@Override \r\n public boolean needsEmfService() { return false; }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn _participationLocalService.getOSGiServiceIdentifier();\n\t}", "ServicesPackage getServicesPackage();", "public interface PointAService {\r\n\r\n\t/**\r\n\t * Initialisation function called directly after construction\r\n\t * \r\n\t * @param pParams\r\n\t * Map containing parameters specified in PointAConfig.xml\r\n\t */\r\n\tpublic void init(Map<String, String> pParams, Application pApp) throws Exception;\r\n}", "private Service() {}", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void modifiedService(ServiceReference<ManagedServiceFactory> reference,\n ManagedServiceFactory service) {\n }", "private interface GetBundleContextStrategy {\n\t\t/**\n\t\t * Obtain the caller's BundleContext. \n\t\t * \n\t\t * @param environment the JNDI environment properties\n\t\t * @param namingClassType the name of the javax.naming class to use when\n\t\t * searching for the calling Bundle. \n\t\t * @return the caller's BundleContext, or\n\t\t * null if none found. \n\t\t */\n\t\tpublic BundleContext getBundleContext(Hashtable< ? , ? > environment,\n\t\t\t\tString namingClassType);\n\t}", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "public void doService() {\n }", "public interface Service {\n\n}", "public interface Service {\n\n}", "public String getServiceName();", "protected abstract String getAtiempoServiceNameEnReversa();", "@Override\n public void autonomousInit() {\n \n }", "public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}", "public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}", "public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}", "@Override\n\tpublic String getAnotherFortuneService() {\n\t\treturn null;\n\t}", "private stendhal() {\n\t}", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public interface ServiceContext {\r\n /**\r\n * @return configuration for the service.\r\n */\r\n ServiceConfigurable service();\r\n}", "public String getService(){\n\t\t return service;\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:49.373 -0500\", hash_original_method = \"CA274FB7382FEC7F97EB63B9F7E3C908\", hash_generated_method = \"14E7E8847785C3993C70952BF3691E2F\")\n \npublic static com.android.internal.textservice.ITextServicesManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.android.internal.textservice.ITextServicesManager))) {\nreturn ((com.android.internal.textservice.ITextServicesManager)iin);\n}\nreturn new com.android.internal.textservice.ITextServicesManager.Stub.Proxy(obj);\n}", "public interface SysLogService extends CurdService<SysLog> {\n\n}", "public interface SMSCALLManager\r\n extends GenericManager<SMSCALL, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"SMSCALLManager\";\r\n\r\n}", "public InitService() {\n super(\"InitService\");\n }", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn CsclPollsChoiceLocalService.class.getName();\n\t}", "public String getTypeOfService(){\n\treturn typeOfService;\n}", "public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}", "public Object getService(String serviceName);", "@Override\n public void modifiedService(ServiceReference<ManagedService> reference, ManagedService service) {\n }", "public static void main(String[] argv) throws Exception\n {\n // Create a temporary bundle cache directory and\n // make sure to clean it up on exit.\n final File cachedir = File.createTempFile(\"felix.example.servicebased\", null);\n cachedir.delete();\n Runtime.getRuntime().addShutdownHook(new Thread() {\n public void run()\n {\n deleteFileOrDir(cachedir);\n }\n });\n \n Map configMap = new StringMap(false);\n configMap.put(Constants.FRAMEWORK_SYSTEMPACKAGES,\n \"org.osgi.framework; version=1.3.0,\" +\n \"org.osgi.service.packageadmin; version=1.2.0,\" +\n \"org.osgi.service.startlevel; version=1.0.0,\" +\n \"org.osgi.service.url; version=1.0.0,\" +\n \"org.osgi.util.tracker; version=1.3.2,\" +\n \"org.apache.felix.example.servicebased.host.service; version=1.0.0,\" +\n \"javax.swing\");\n configMap.put(FelixConstants.AUTO_START_PROP + \".1\",\n \"file:../servicebased.circle/target/servicebased.circle-1.0.0.jar \" +\n \"file:../servicebased.square/target/servicebased.square-1.0.0.jar \" +\n \"file:../servicebased.triangle/target/servicebased.triangle-1.0.0.jar\");\n configMap.put(FelixConstants.LOG_LEVEL_PROP, \"1\");\n configMap.put(BundleCache.CACHE_PROFILE_DIR_PROP, cachedir.getAbsolutePath());\n \n List list = new ArrayList();\n list.add(new Activator());\n \n try\n {\n // Now create an instance of the framework.\n Felix felix = new Felix(configMap, list);\n felix.start();\n }\n catch (Exception ex)\n {\n System.err.println(\"Could not create framework: \" + ex);\n ex.printStackTrace();\n System.exit(-1);\n }\n }", "public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}", "public void clientInfo() {\n uiService.underDevelopment();\n }", "public void contextInitialized(ServletContextEvent contextEvent) {\n super.serviceInitialization(contextEvent,SERVICE_NAME);\n }", "public interface OurService {\n\n static public void provideService(){\n System.out.println(\"OurService Static provideService()\");\n }\n}" ]
[ "0.65238124", "0.6258453", "0.619561", "0.6101975", "0.60229415", "0.6022623", "0.5992174", "0.5992174", "0.5992174", "0.595669", "0.592943", "0.5907735", "0.5902239", "0.5890273", "0.5879881", "0.5868837", "0.586246", "0.5861344", "0.5847293", "0.58393085", "0.5821595", "0.5810203", "0.57956576", "0.57954574", "0.5792491", "0.57757205", "0.57676864", "0.576241", "0.5753874", "0.57323474", "0.5731302", "0.5701815", "0.569152", "0.5682327", "0.56783146", "0.5677064", "0.5674327", "0.5669948", "0.56560385", "0.5649136", "0.56473523", "0.56448185", "0.56416374", "0.5634086", "0.5634086", "0.5634086", "0.563184", "0.56012946", "0.55840784", "0.55786186", "0.55713135", "0.5569777", "0.55654496", "0.5562964", "0.556285", "0.55571365", "0.5547031", "0.5542194", "0.55364", "0.5533235", "0.55288815", "0.55285335", "0.5518032", "0.55158687", "0.55023974", "0.54941934", "0.548832", "0.54870635", "0.54870635", "0.54866385", "0.54673564", "0.5465564", "0.5463607", "0.5462913", "0.5462913", "0.5455706", "0.54553616", "0.5443064", "0.5427426", "0.5427426", "0.5427426", "0.5427184", "0.542317", "0.5420573", "0.5420573", "0.5418629", "0.54132986", "0.5412594", "0.5411164", "0.54097915", "0.5398815", "0.53961486", "0.53930247", "0.5390039", "0.5387605", "0.5386316", "0.53822947", "0.5381297", "0.53792757", "0.53789616", "0.53786695" ]
0.0
-1
stage_x is mm and T is K. This tests picking up the units from the scannable!
@Disabled("DAQ-2088 Fails because expecting units") @Test public void checkInitialValues() throws Exception { assertEquals(bbox.getxAxisName(), bot.table(0).cell(0, 1)); assertEquals(bbox.getxAxisStart()+" mm", bot.table(0).cell(1, 1)); assertEquals(bbox.getxAxisLength()+" mm", bot.table(0).cell(2, 1)); assertEquals(bbox.getyAxisName(), bot.table(0).cell(3, 1)); assertEquals(bbox.getyAxisStart()+" K", bot.table(0).cell(4, 1)); assertEquals(bbox.getyAxisLength()+" K", bot.table(0).cell(5, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testTilingscale(EIfcfillareastyletiles type) throws SdaiException;", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n\tvoid testInitStage() {\n\t\tstage.initStage();\n\t\tassertEquals(400, (stage.getBoxes().get(0).getX()));\n\t\tassertEquals(250, (stage.getBoxes().get(0).getY()));\n\t\tassertEquals(250, stage.getCoins().get(0).getX());\n\t\tassertEquals(210, stage.getCoins().get(0).getY());\n\t\tassertEquals(40, stage.getCat().getX());\n\t\tassertEquals(250, stage.getCat().getY());\n\t\tassertEquals(600, stage.getGhosts().get(0).getX());\n\t\tassertEquals(210, stage.getGhosts().get(0).getY());\n\t\tassertEquals(400, stage.getBird().getX());\n\t\tassertEquals(160, stage.getBird().getY());\n\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW22() {\n CuteNetlibCase.doTest(\"GROW22.SIF\", \"-1.608343364825636E8\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDMPS() {\n CuteNetlibCase.doTest(\"STANDMPS.SIF\", \"1406.0175\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCFXM1() {\n CuteNetlibCase.doTest(\"SCFXM1.SIF\", \"18416.75902834894\", null, NumberContext.of(7, 4));\n }", "@Override\n public void setTestUnit() {\n sorcererAnima = new Sorcerer(50, 2, field.getCell(0, 0));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCFXM2() {\n CuteNetlibCase.doTest(\"SCFXM2.SIF\", \"36660.261564998815\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW15() {\n CuteNetlibCase.doTest(\"GROW15.SIF\", \"-1.068709412935753E8\", \"0.0\", NumberContext.of(7, 4));\n }", "void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }", "static String getStageFromBlockMeta(int meta){\n if(meta == 0)\n return \"1 of 8 (0%)\";\n\n if(meta == 1)\n return \"2 of 8 (14%)\";\n\n if(meta == 2)\n return \"3 of 8 (29%)\";\n\n if(meta == 3)\n return \"4 of 8 (43%)\";\n\n if(meta == 4)\n return \"5 of 8 (57%)\";\n\n if(meta == 5)\n return \"6 of 8 (71%)\";\n\n if(meta == 6)\n return \"7 of 8 (85%)\";\n\n if(meta == 7)\n return \"8 of 8 (100%)\";\n\n return \"Unknown\";\n }", "@Test\n\tpublic void testXGivenT() {\n\t\tdouble x1 = 0, x2 = 21.65, x3 = 43.30, x4 = 47.63;\n\t\tdouble v0 = 25;\n\t\tdouble theta = 30;\n\t\tdouble t1 = 0, t2 = 1, t3 = 2, t4 = 2.2;\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t1, 0), x1, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t2, 0), x2, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t3, 0), x3, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t4, 0), x4, DELTA);\n\t\t\n\t\tdouble x5 = 0, x6 = 21.02, x7 = 42.05, x8 = 46.25;\n\t\tdouble v1 = 38.6;\n\t\tdouble phi = 57;\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t1, 0), x5, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t2, 0), x6, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t3, 0), x7, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t4, 0), x8, DELTA);\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }", "@Test\n\tpublic void testTGetX() {\n\t\tassertEquals(0, tank.getX());\n\t}", "void mo33732Px();", "@Disabled(\"DAQ-2088 Fails because expecting units\")\n\t@Test\n\tpublic void checkSettingFastValue() throws Exception {\n\t\tassertEquals(bbox.getxAxisStart()+\" mm\", bot.table(0).cell(1, 1));\n\t\tbot.table(0).click(1, 1); // Make the file editor\n\n\t\tSWTBotText text = bot.text(0);\n\t\tassertNotNull(text);\n\n\t\ttext.setText(\"10\");\n\t\ttext.display.syncExec(()->viewer.applyEditorValue());\n\n\t\tassertEquals(\"10.0 mm\", bbox.getxAxisStart()+\" mm\");\n\t}", "protected int getAtkStageMultiplier() {\n return atkStageMultiplier;\n }", "@Test\n @Tag(\"bm1000\")\n public void testETAMACRO() {\n CuteNetlibCase.doTest(\"ETAMACRO.SIF\", \"-755.7152312325337\", \"258.71905646302014\", NumberContext.of(7, 4));\n }", "protected void mo3893f() {\n if (this.B) {\n Log.i(\"MPAndroidChart\", \"Preparing Value-Px Matrix, xmin: \" + this.H.t + \", xmax: \" + this.H.s + \", xdelta: \" + this.H.u);\n }\n this.f9056t.m15912a(this.H.t, this.H.u, this.f9052p.u, this.f9052p.t);\n this.f9055s.m15912a(this.H.t, this.H.u, this.f9051o.u, this.f9051o.t);\n }", "@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}", "void updateTotals () {\n\n speed_kts_mph_kmh_ms_info = make_speed_kts_mph_kmh_ms_info(velocity);\n double lift = foil_lift();\n double drag = total_drag();\n \n // This computes location of the center of gravity of the craft\n // (rider, roughly) in relation to the leading edge (aka LE) of the\n // mast (roughly, front bolt of DT). \n //\n // Mtipping is 0.5*eff_strut_span*strut,drag\n //\n // cg_pos: x-axis offset relative to strut bottom LE. \"fore\" is -, \"aft\" is +,\n dash.cg_pos = find_cg_xpos(); \n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example:\n // cg_pos=-35cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level = dash.cg_pos;\n\n // foilboard AOA correction. when the board is at high angle of\n // attack, the computed offset is only an approximation, rider is more\n // forward *alone the board surface* in reality. for 90 degree strut,\n // it is the hypotenuse where the adjasent is -dash.cg_pos + cos(\n // BOARD_THICKNESS + strut.span)\n if (rider_xpos_tilt_correction) {\n double pitch_rad = Math.toRadians(craft_pitch);\n double hypo = BOARD_THICKNESS + strut.span;\n double deck_rot_adj = - // when AOA is positive, and cg_pos is\n // negative, increses the magnitude\n hypo * Math.sin(pitch_rad);\n\n // board deck offset is hypotenuse; adjasent value is dash.cg_pos plus\n // deck_rot_adjn\n \n // deck_x_offset is the 'hypotenuse' H = A / cos(A)\n double deck_x_offset = (dash.cg_pos + deck_rot_adj) // the 'adjasent'\n / Math.cos(pitch_rad);\n\n // apply correction\n dash.cg_pos_board_level = deck_x_offset;\n }\n\n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example for AoA=0:\n // cg_pos=-30cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level -= strut.xoff_tip;\n\n \n // rider_countering_x_offset is computed and saved to reflect posture\n // change due to (a) headwind (b) propulsion pull as follows below\n double rider_countering_x_offset = 0;\n\n // (a) Headwind.\n // Two square triangles: rider_offset/height = rider.drag/weight\n if (!in.opts.ignore_air_resistance)\n rider_countering_x_offset += -(rider.drag/rider.weight)* RIDER_CG_HEIGHT;\n\n // (b) Propulsion pull. \n // Rider's force-countering stance is in effect only if the drive force is applied\n // above the board, which implies it goes through rider's body\n if (DRIVING_FORCE_HEIGHT > 0) {\n // drive force, scaled to be considering coming from the rider CG height spot\n double drive_force_scaled = \n (in.opts.ignore_drive_moment)\n ? 0\n : (total_drag() * DRIVING_FORCE_HEIGHT/RIDER_CG_HEIGHT);\n // two square triangles: rider_offset/height = drive_force_scaled/weight\n rider_countering_x_offset += (drive_force_scaled/rider.weight)* RIDER_CG_HEIGHT; // wasFF 0.86;\n }\n rider.force_countering_x_offest = rider_countering_x_offset;\n dash.cg_pos_of_rider = dash.cg_pos_board_level + rider.force_countering_x_offest;\n\n // factored out to dash.loadPanel()\n // if (can_do_gui_updates) {\n // dash.loadPanel();\n // }\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void testTerrainDimension() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_HEGHT / TerrainFactoryImpl.TERRAIN_ROWS);\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_WIDTH / TerrainFactoryImpl.TERRAIN_COLUMNS);\n level.levelUp(); \n });\n }", "private void buildScaleInputs(StateObservation stateObs) {\n viewWidth = 5;\n viewHeight = 10;\n //*****************************\n\n int blockSize;\n int avatarColNumber;\n\n int numGridRows, numGridCols;\n\n ArrayList<Observation>[][] gameGrid;\n\n gameGrid = stateObs.getObservationGrid();\n numGridRows = gameGrid[0].length;\n numGridCols = gameGrid.length;\n\n blockSize = stateObs.getBlockSize();\n\n // get where the player is\n avatarColNumber = (int) (stateObs.getAvatarPosition().x / blockSize);\n\n // create the inputs\n MLPScaledInputs = new double[viewWidth * viewHeight];\n\n int colStart = avatarColNumber - (viewWidth / 2);\n int colEnd = avatarColNumber + (viewWidth / 2);\n\n int index = 0;\n\n for (int i = numGridRows - (viewHeight + 1); i < viewHeight; i++) { // rows\n\n for (int j = colStart; j <= colEnd; j++) { // rows\n if (j < 0) {\n // left outside game window\n MLPScaledInputs[index] = 1;\n } else if (j >= numGridCols) {\n // right outside game window\n MLPScaledInputs[index + 1] = 1;\n } else if (gameGrid[j][i].isEmpty()) {\n MLPScaledInputs[index] = 0;\n } else {\n for (Observation o : gameGrid[j][i]) {\n\n switch (o.itype) {\n case 3: // obstacle sprite\n MLPScaledInputs[index + 2] = 1;\n break;\n case 1: // user ship\n MLPScaledInputs[index + 3] = 1;\n break;\n case 9: // alien sprite\n MLPScaledInputs[index + 4] = 1;\n break;\n case 6: // missile\n MLPScaledInputs[index + 5] = 1;\n break;\n }\n }\n }\n index++;\n }\n }\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setSubpartSizeUnderLight(770.8881F);\n float float0 = homeEnvironment0.getSubpartSizeUnderLight();\n assertEquals(770.8881F, float0, 0.01F);\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW7() {\n CuteNetlibCase.doTest(\"GROW7.SIF\", \"-4.7787811814711526E7\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testKB2() {\n CuteNetlibCase.doTest(\"KB2.SIF\", \"-1.74990012991E+03\", \"0.0\", NumberContext.of(7, 4));\n }", "public float getSizeX(){return sx;}", "Unit infantryUnit(Canvas canvas ,String name);", "public static int pointsForStage(int stage) {\n return (int)Math.round(RANK_START * Math.pow((1 + RANK_GROWTH_RATE),stage));\n }", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "private static void calcSingleTms() {\n\t\tFloat avgLenInitial = 0f;\n\t\tFloat avgLenSc = 0f;\n\t\tInteger countSCsingle = 0;\n\t\t// get all the single TM proteins from the hash\n\t\t\n\t\t// for the initial set\n\t\tfor(int i =0;i<=singleTmProts.size()-1;i++){\n\t\t\tint id = singleTmProts.get(i);\n\t\t\tavgLenInitial = avgLenInitial + Sequences_length.get(id);\n\t\t}\n\t\tavgLenInitial = (avgLenInitial / singleTmProts.size());\n\t\t\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in initial Set \"+singleTmProts.size()+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in initial Set \"+avgLenInitial+\"\\n\");\n\t\t\n\t\t//for the SC\n\t\tgetSCset();\n\t\t// for all the proteins in SC_sequences\n\t\t\n\t\tfor(Integer key : SC_sequences.keySet()){\n\t\t\tif (singleTmProts.contains(key)){\n\t\t\t\t// is in SC and is single TM\n\t\t\t\tavgLenSc = avgLenSc + Sequences_length.get(key);\n\t\t\t\tcountSCsingle ++;\n\t\t\t}\n\t\t\tavgLenSc = (avgLenSc / countSCsingle); \n\t\t}\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in SC \"+countSCsingle+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in SC Set \"+avgLenSc+\"\\n\");\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "String getUnits();", "String getUnits();", "String getUnits();", "double getActualKm();", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "public int getSourceUnits() {\n return sourceUnits;\n }", "@Test\n\tpublic void testTGetY() {\n\t\tassertEquals(0, tank.getY());\n\t}", "private void ProcessTGSymbol(MilStdSymbol symbol, IPointConversion converter, Rectangle2D clipBounds)\n {\n try\n {\n\n //RenderMultipoints.clsRenderer.render(symbol, converter);\n //TGLight tgl = new TGLight();\n \n //sector range fan, make sure there is a minimum distance value.\n if(SymbolUtilities.getBasicSymbolID(symbol.getSymbolID()).equals(\"G*F*AXS---****X\"))\n {\n if(symbol.getModifiers_AM_AN_X(ModifiersTG.AN_AZIMUTH)!=null &&\n symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE)!=null)\n {\n int anCount = symbol.getModifiers_AM_AN_X(ModifiersTG.AN_AZIMUTH).size();\n int amCount = symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE).size();\n ArrayList<Double> am = null;\n if(amCount < ((anCount/2) + 1))\n {\n am = symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE);\n if(am.get(0)!=0.0)\n {\n am.add(0, 0.0);\n }\n }\n }\n }\n\n //call that supports clipping\n \n\n ArrayList<ShapeInfo> shapes = new ArrayList<ShapeInfo>();\n ArrayList<ShapeInfo> modifiers = new ArrayList<ShapeInfo>();\n RenderMultipoints.clsRenderer.render(symbol, converter, shapes, modifiers, clipBounds);\n\n if(RendererSettings.getInstance().getTextBackgroundMethod()\n != RendererSettings.TextBackgroundMethod_NONE)\n {\n modifiers = SymbolDraw.ProcessModifierBackgrounds(modifiers);\n symbol.setModifierShapes(modifiers);\n }\n\n }\n catch(Exception exc)\n {\n String message = \"Failed to build multipoint TG\";\n if(symbol != null)\n message = message + \": \" + symbol.getSymbolID();\n //ErrorLogger.LogException(this.getClass().getName() ,\"ProcessTGSymbol()\",\n // new RendererException(message, exc));\n System.err.println(exc.getMessage());\n }\n catch(Throwable t)\n {\n String message2 = \"Failed to build multipoint TG\";\n if(symbol != null)\n message2 = message2 + \": \" + symbol.getSymbolID();\n //ErrorLogger.LogException(this.getClass().getName() ,\"ProcessTGSymbol()\",\n // new RendererException(message2, t));\n System.err.println(t.getMessage());\n }\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDATA() {\n CuteNetlibCase.doTest(\"STANDATA.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "private void gotoSTK(){\n\t short buf_length = (short) MyText.length;\n\t short i = buf_length;\n\t initDisplay(MyText, (short) 0, (short) buf_length, (byte) 0x81,(byte) 0x04);\n}", "double transformXScreenLengthToWorld(final double screen);", "public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}", "int getActionPoints(Unit unit);", "public short getUnitsPerEm() throws PDFNetException {\n/* 843 */ return GetUnitsPerEm(this.a);\n/* */ }", "private String getVerticalLevelUnits(String gVCord) {\n\n String tmp = gVCord.toUpperCase();\n if (tmp.compareTo(\"PRES\") == 0) {\n return \"MB\";\n }\n if (tmp.compareTo(\"THTA\") == 0) {\n return \"K \";\n }\n if (tmp.compareTo(\"HGHT\") == 0) {\n return \"M \";\n }\n if (tmp.compareTo(\"SGMA\") == 0) {\n return \"SG\";\n }\n if (tmp.compareTo(\"DPTH\") == 0) {\n return \"M \";\n }\n return \"\";\n }", "static public void validateSize(String t, boolean bZero, boolean bMinus) throws Exception {\n t = t.Trim();\n if (t.Length == 0)\n return ;\n \n // not specified is ok?\n // Ensure we have valid units\n if (t.IndexOf(\"in\") < 0 && t.IndexOf(\"cm\") < 0 && t.IndexOf(\"mm\") < 0 && t.IndexOf(\"pt\") < 0 && t.IndexOf(\"pc\") < 0)\n {\n throw new Exception(\"Size unit is not valid. Must be in, cm, mm, pt, or pc.\");\n }\n \n int space = t.LastIndexOf(' ');\n String n = \"\";\n // number string\n String u = new String();\n try\n {\n // unit string\n // Convert.ToDecimal can be very picky\n if (space != -1)\n {\n // any spaces\n n = t.Substring(0, space).Trim();\n // number string\n u = t.Substring(space).Trim();\n }\n else // unit string\n if (t.Length >= 3)\n {\n n = t.Substring(0, t.Length - 2).Trim();\n u = t.Substring(t.Length - 2).Trim();\n }\n \n }\n catch (Exception ex)\n {\n throw new Exception(ex.Message);\n }\n\n if (n.Length == 0 || !Regex.IsMatch(n, \"\\\\A[ ]*[-]?[0-9]*[.]?[0-9]*[ ]*\\\\Z\"))\n {\n throw new Exception(\"Number format is invalid. ###.## is the proper form.\");\n }\n \n float v = DesignXmlDraw.getSize(t);\n if (!bZero)\n {\n if (v < .1)\n throw new Exception(\"Size can't be zero.\");\n \n }\n else if (v < 0 && !bMinus)\n throw new Exception(\"Size can't be less than zero.\");\n \n return ;\n }", "double getCurrentTfConsumed();", "static public String makeValidSize(String t, boolean bZero, boolean bNegative) throws Exception {\n // Ensure we have valid units\n if (t.IndexOf(\"in\") < 0 && t.IndexOf(\"cm\") < 0 && t.IndexOf(\"mm\") < 0 && t.IndexOf(\"pt\") < 0 && t.IndexOf(\"pc\") < 0)\n {\n t += \"in\";\n }\n \n float v = DesignXmlDraw.getSize(t);\n if (!bZero)\n {\n if (v < .1)\n t = \".1pt\";\n \n }\n \n if (!bNegative)\n {\n if (v < 0)\n t = \"0in\";\n \n }\n \n return t;\n }", "Units getUnits();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setVideoWidth(1411);\n assertEquals(1411, homeEnvironment0.getVideoWidth());\n }", "private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }", "public void setUnits(byte units) { this.units = units; }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoWidth((-2796));\n int int0 = homeEnvironment0.getVideoWidth();\n assertEquals((-2097), homeEnvironment0.getVideoHeight());\n assertEquals((-2796), int0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSEBA() {\n CuteNetlibCase.doTest(\"SEBA.SIF\", \"15711.6\", \"35160.46056\", NumberContext.of(7, 4));\n }", "float getXStepMin();", "protected byte desiredWinScale() { return 9; }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "double kts_to_speed (double kts) {\n return (lunits == METRIC) \n ? kts / 0.539957\n : kts / 0.868976;\n }", "private int getUnitKey(){\n\t\t\n\t\tint panelIndex = tabbedPane.getSelectedIndex();\n\t\tString keyString = tabbedPane.getTitleAt(panelIndex);\n\t\t\n\t\tif(panelIndex == LOCAL_UNIT)// local unit selected\n\t\t\treturn LOCAL_UNIT;\n\t\telse{\n\t\t\tint key = Integer.parseInt(keyString.split(\" \")[2]);\n\t\t\treturn key;\n\t\t}\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSCTAP1() {\n CuteNetlibCase.doTest(\"SCTAP1.SIF\", \"1412.25\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-5305), (-283.024F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(329, homeTexture0, 329, homeTexture0, 76, 329);\n homeEnvironment0.setVideoQuality(76);\n int int0 = homeEnvironment0.getVideoQuality();\n assertEquals(76, int0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSTAIR() {\n CuteNetlibCase.doTest(\"STAIR.SIF\", \"-251.26695119296787\", \"-208.79999\", NumberContext.of(7, 2));\n }", "@Test\n\t\tpublic void isWidth() {\n\t\t\tint expected = 7;\n\t\t\tint actual = game.getWidthAcross();\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}", "private double generateEngineSize(String model) {\n\t\tif (model.equals(\"compact\")) {\n\t\t\treturn (double) Math.round((90 + (150 - 90) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t} else if (model.equals(\"intermediate\")) {\n\t\t\treturn (double) Math.round((150 + (250 - 150) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t} else {\n\t\t\treturn (double) Math.round((250 + (400 - 250) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t}\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testPILOT4() {\n CuteNetlibCase.doTest(\"PILOT4.SIF\", \"-2581.1392612778604\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void testGiantComponent()\n {\n assertEquals(MarkovModel.util.giantComponent(P1), giant1);\n assertEquals(MarkovModel.util.giantComponent(P2), giant2);\n assertEquals(MarkovModel.util.giantComponent(P3), giant3);\n }", "@Test\n @Tag(\"slow\")\n public void testSCFXM3() {\n CuteNetlibCase.doTest(\"SCFXM3.SIF\", \"54901.2545497515\", null, NumberContext.of(7, 4));\n }", "@Test\n public void testTimescales_5args()\n {\n Iterable<IIntArray> dtraj = null;\n ICountMatrixEstimator Cest = null;\n ITransitionMatrixEstimator Test = null;\n int ntimescales = 0;\n IIntArray lagtimes = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.timescales(dtraj, Cest, Test, ntimescales, lagtimes);\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 byte getUnits() { return units; }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.getVideoAspectRatio();\n homeEnvironment0.setWallsAlpha(3308.328F);\n homeEnvironment0.setVideoQuality(11053224);\n homeEnvironment0.setObserverCameraElevationAdjusted(true);\n homeEnvironment0.getDrawingMode();\n assertEquals(3308.328F, homeEnvironment0.getWallsAlpha(), 0.01F);\n }", "public boolean checkSystem() {\n print(\"Testing ELEVATOR.--------------------------------------------------\");\n final double kCurrentThres = 0.5;\n if(getPosition() < 0){\n zeroPosition();\n }\n spx.set(ControlMode.PercentOutput, -0.1);\n srx.set(ControlMode.PercentOutput, -0.1);\n Timer.delay(0.2);\n srx.set(ControlMode.PercentOutput, 0.0);\n spx.set(ControlMode.PercentOutput, 0.0);\n Timer.delay(0.1);\n; srx.setNeutralMode(NeutralMode.Coast);\n spx.setNeutralMode(NeutralMode.Coast);\n\n double testSpeed = .75;\n double testDownSpeed = -0.05;\n double testUpTime = 1;\n\n\n if(getPosition() < 0){\n zeroPosition();\n }\n // test climber srx\n final double SRXintialEncoderPos = Math.abs(getPosition());\n srx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n srx.set(ControlMode.PercentOutput, 0.0);\n final double currentSRX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SRX_PDP);\n final double positionSRX = getPosition();\n //srx.set(ControlMode.PercentOutput, testDownSpeed);\n //Timer.delay(0.1);\n \n Timer.delay(2.0);\n\n if(getPosition() < 0){\n zeroPosition();\n }\n\n // Test climber spx\n final double SPXintialEncoderPos = Math.abs(getPosition());\n spx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n final double currentSPX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SPX_PDP);\n final double positionSPX = getPosition();\n spx.set(ControlMode.PercentOutput, testDownSpeed);\n Timer.delay(0.1);\n spx.set(ControlMode.PercentOutput, 0.0);\n\n Timer.delay(1.0);\n //Reset Motors\n spx.follow(srx); \n srx.setNeutralMode(NeutralMode.Brake);\n spx.setNeutralMode(NeutralMode.Brake);\n\n print(\"ELEVATOR SRX CURRENT: \" + currentSRX + \" SPX CURRENT: \" + currentSPX);\n print(\"ELEVATOR SRX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSRX);\n print(\"ELEVATOR SPX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSPX);\n\n boolean failure = false;\n\n print(\"!%!%#$!%@ - WRITE A TEST FOR THE ELEVATOR LIMIT SWITCHES!!!!!!!!!\");\n\n if (currentSRX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!!! ELEVATOR SRX Current Low !!!!!!!!!!!!!!!!!\");\n }\n\n if (currentSPX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR SPX Current Low !!!!!!!!!!!!!!!!!!!\");\n }\n\n if (!Util.allCloseTo(Arrays.asList(currentSRX, currentSPX), currentSRX, 5.0)) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR Currents Different !!!!!!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSRX - SRXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SRX !!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSPX - SPXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SPX !!!!!!!!!!!!!\");\n }\n\n return failure;\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, NumberContext.of(7, 4));\n }", "@Test\n public void dt1_block_iso_tables() {\n assertEquals(Tile.SUBTILE_HEIGHT, Block.ISO_X_LEN.length);\n assertEquals(Tile.SUBTILE_HEIGHT, Block.ISO_X_OFF.length);\n for (int i = 0; i < Tile.SUBTILE_HEIGHT; i++) {\n assertEquals(Tile.SUBTILE_WIDTH, Block.ISO_X_LEN[i] + Block.ISO_X_OFF[i] * 2);\n }\n }", "public native int getUnits() throws MagickException;", "public float getTetherStartX () { return Tether.getStartX(); }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setSubpartSizeUnderLight((-1469.0F));\n float float0 = homeEnvironment0.getSubpartSizeUnderLight();\n assertEquals((-1469.0F), float0, 0.01F);\n }", "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "public int calculateUnits(Object oKey, Object oValue);", "private void TEMrunInfo(){\n\n int idummy;\n idummy=TEM.runcht.cht.getCd().getVegtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_VEGETATION, 1);\n idummy=TEM.runcht.cht.getCd().getDrgtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_DRAINAGE, 1);\n idummy=TEM.runcht.cht.getCd().getGrdid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_GRD, 1);\n idummy=TEM.runcht.cht.getCd().getEqchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_EQCHT, 1);\n idummy=TEM.runcht.cht.getCd().getSpchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_SPCHT, 1);\n idummy=TEM.runcht.cht.getCd().getTrchtid(); \t \n \t stateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_TRCHT, 1);\n \t \n float ddummy;\n ddummy=(float)TEM.runcht.initstate.getMossthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MOSSTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getFibthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getHumthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getVegc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGC, 1);\n ddummy=(float)TEM.runcht.initstate.getVegn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGN, 1);\t\t\n ddummy=(float)TEM.runcht.initstate.getSoilc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILC, 1);\t \n ddummy=(float)TEM.runcht.initstate.getFibc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getHumc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getMinc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MINESOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getAvln(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_AVAILN, 1);\n ddummy=(float)TEM.runcht.initstate.getOrgn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILN, 1);\n\n //\n \tvegpar_bgc vbpar = new vegpar_bgc();\n \tsoipar_bgc sbpar = new soipar_bgc();\n \tTEM.runcht.cht.getBgcPar(vbpar, sbpar);\n\n ddummy=vbpar.getM1(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m1, 1);\n ddummy=vbpar.getM2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m2, 1);\n ddummy=vbpar.getM3(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m3, 1);\n ddummy=vbpar.getM4(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m4, 1);\n ddummy=sbpar.getFsoma(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsoma, 1);\n ddummy=sbpar.getFsompr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsompr, 1);\n ddummy=sbpar.getFsomcr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsomcr, 1); \t\t\n ddummy=sbpar.getSom2co2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_som2co2, 1);\n \t\n //\n vegpar_cal vcpar = new vegpar_cal();\n soipar_cal scpar = new soipar_cal();\n TEM.runcht.cht.getCalPar(vcpar, scpar);\n\n ddummy=vcpar.getCmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CMAX, 1);\n ddummy=vcpar.getNmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NMAX, 1);\n ddummy=vcpar.getKrb(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KRB, 1);\n ddummy=vcpar.getCfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CFALL, 1);\n ddummy=vcpar.getNfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NFALL, 1);\n \t\n ddummy=scpar.getNup(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NUP, 1);\n ddummy=scpar.getKdcfib(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCFIB, 1);\n ddummy=scpar.getKdchum(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCHUM, 1);\n ddummy=scpar.getKdcmin(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCMIN, 1);\n ddummy=scpar.getKdcslow(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCSLOW, 1);\n\t \t\t\n }", "int getCurrentXOfSS();", "public TempScale getInputScale() {return inputScale;}", "String getUnitsString();", "private int toScreenP(double x)\n\t\t{\n\t\tint h=getHeight();\n\t\treturn (int)(h*0.9 + x*scaleP*h);\n\t\t}", "String getUnit();", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setPhotoQuality((-2107));\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals((-2107), int0);\n }", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "@Test\n public void projectMetrics() {\n assertProjectMetrics(340, 161, 179, 78054, 28422, 49632);\n }", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "public void xTileSize(int xCells)\n{\n if (m != null)\n m.getTileManager().setXCells(xCells);\n}" ]
[ "0.5663582", "0.53499836", "0.5243708", "0.52048004", "0.51225215", "0.51136184", "0.51125646", "0.51039803", "0.5096285", "0.5085143", "0.50155234", "0.49994737", "0.4988679", "0.49803898", "0.4972796", "0.49654794", "0.4960317", "0.49419028", "0.4892952", "0.4879132", "0.48505908", "0.4849042", "0.4830704", "0.4821287", "0.48163486", "0.4811711", "0.48059633", "0.47971296", "0.47928733", "0.47689342", "0.4767326", "0.4766954", "0.47633007", "0.47521192", "0.47330973", "0.47323135", "0.47319037", "0.47267613", "0.47212777", "0.4721101", "0.47172093", "0.4705177", "0.4705177", "0.4705177", "0.4701046", "0.46995112", "0.46790388", "0.46750495", "0.4667125", "0.4658493", "0.46547124", "0.46502745", "0.46475086", "0.46420527", "0.46405062", "0.4616303", "0.46139485", "0.46117336", "0.4608759", "0.46084666", "0.4607126", "0.46030226", "0.46004483", "0.45958447", "0.45866022", "0.45783237", "0.45752078", "0.45683756", "0.45656785", "0.4564459", "0.4560493", "0.45580196", "0.4553064", "0.4552982", "0.45467106", "0.45415193", "0.45396417", "0.45382625", "0.45380053", "0.45348898", "0.4526491", "0.4522075", "0.45189294", "0.45145628", "0.45103922", "0.45075488", "0.45041987", "0.4501327", "0.44985184", "0.44951415", "0.44885975", "0.44878852", "0.44872847", "0.44869155", "0.44834286", "0.44802952", "0.44798508", "0.4478353", "0.44776514", "0.44667992", "0.44644573" ]
0.0
-1
stage_x is mm and T is K. This tests picking up the units from the scannable!
@Disabled("DAQ-2088 Fails because expecting units") @Test public void checkSettingFastValue() throws Exception { assertEquals(bbox.getxAxisStart()+" mm", bot.table(0).cell(1, 1)); bot.table(0).click(1, 1); // Make the file editor SWTBotText text = bot.text(0); assertNotNull(text); text.setText("10"); text.display.syncExec(()->viewer.applyEditorValue()); assertEquals("10.0 mm", bbox.getxAxisStart()+" mm"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testTilingscale(EIfcfillareastyletiles type) throws SdaiException;", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n\tvoid testInitStage() {\n\t\tstage.initStage();\n\t\tassertEquals(400, (stage.getBoxes().get(0).getX()));\n\t\tassertEquals(250, (stage.getBoxes().get(0).getY()));\n\t\tassertEquals(250, stage.getCoins().get(0).getX());\n\t\tassertEquals(210, stage.getCoins().get(0).getY());\n\t\tassertEquals(40, stage.getCat().getX());\n\t\tassertEquals(250, stage.getCat().getY());\n\t\tassertEquals(600, stage.getGhosts().get(0).getX());\n\t\tassertEquals(210, stage.getGhosts().get(0).getY());\n\t\tassertEquals(400, stage.getBird().getX());\n\t\tassertEquals(160, stage.getBird().getY());\n\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW22() {\n CuteNetlibCase.doTest(\"GROW22.SIF\", \"-1.608343364825636E8\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDMPS() {\n CuteNetlibCase.doTest(\"STANDMPS.SIF\", \"1406.0175\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCFXM1() {\n CuteNetlibCase.doTest(\"SCFXM1.SIF\", \"18416.75902834894\", null, NumberContext.of(7, 4));\n }", "@Override\n public void setTestUnit() {\n sorcererAnima = new Sorcerer(50, 2, field.getCell(0, 0));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCFXM2() {\n CuteNetlibCase.doTest(\"SCFXM2.SIF\", \"36660.261564998815\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW15() {\n CuteNetlibCase.doTest(\"GROW15.SIF\", \"-1.068709412935753E8\", \"0.0\", NumberContext.of(7, 4));\n }", "void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }", "static String getStageFromBlockMeta(int meta){\n if(meta == 0)\n return \"1 of 8 (0%)\";\n\n if(meta == 1)\n return \"2 of 8 (14%)\";\n\n if(meta == 2)\n return \"3 of 8 (29%)\";\n\n if(meta == 3)\n return \"4 of 8 (43%)\";\n\n if(meta == 4)\n return \"5 of 8 (57%)\";\n\n if(meta == 5)\n return \"6 of 8 (71%)\";\n\n if(meta == 6)\n return \"7 of 8 (85%)\";\n\n if(meta == 7)\n return \"8 of 8 (100%)\";\n\n return \"Unknown\";\n }", "@Test\n\tpublic void testXGivenT() {\n\t\tdouble x1 = 0, x2 = 21.65, x3 = 43.30, x4 = 47.63;\n\t\tdouble v0 = 25;\n\t\tdouble theta = 30;\n\t\tdouble t1 = 0, t2 = 1, t3 = 2, t4 = 2.2;\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t1, 0), x1, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t2, 0), x2, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t3, 0), x3, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t4, 0), x4, DELTA);\n\t\t\n\t\tdouble x5 = 0, x6 = 21.02, x7 = 42.05, x8 = 46.25;\n\t\tdouble v1 = 38.6;\n\t\tdouble phi = 57;\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t1, 0), x5, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t2, 0), x6, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t3, 0), x7, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t4, 0), x8, DELTA);\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }", "@Test\n\tpublic void testTGetX() {\n\t\tassertEquals(0, tank.getX());\n\t}", "void mo33732Px();", "protected int getAtkStageMultiplier() {\n return atkStageMultiplier;\n }", "@Test\n @Tag(\"bm1000\")\n public void testETAMACRO() {\n CuteNetlibCase.doTest(\"ETAMACRO.SIF\", \"-755.7152312325337\", \"258.71905646302014\", NumberContext.of(7, 4));\n }", "protected void mo3893f() {\n if (this.B) {\n Log.i(\"MPAndroidChart\", \"Preparing Value-Px Matrix, xmin: \" + this.H.t + \", xmax: \" + this.H.s + \", xdelta: \" + this.H.u);\n }\n this.f9056t.m15912a(this.H.t, this.H.u, this.f9052p.u, this.f9052p.t);\n this.f9055s.m15912a(this.H.t, this.H.u, this.f9051o.u, this.f9051o.t);\n }", "@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}", "void updateTotals () {\n\n speed_kts_mph_kmh_ms_info = make_speed_kts_mph_kmh_ms_info(velocity);\n double lift = foil_lift();\n double drag = total_drag();\n \n // This computes location of the center of gravity of the craft\n // (rider, roughly) in relation to the leading edge (aka LE) of the\n // mast (roughly, front bolt of DT). \n //\n // Mtipping is 0.5*eff_strut_span*strut,drag\n //\n // cg_pos: x-axis offset relative to strut bottom LE. \"fore\" is -, \"aft\" is +,\n dash.cg_pos = find_cg_xpos(); \n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example:\n // cg_pos=-35cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level = dash.cg_pos;\n\n // foilboard AOA correction. when the board is at high angle of\n // attack, the computed offset is only an approximation, rider is more\n // forward *alone the board surface* in reality. for 90 degree strut,\n // it is the hypotenuse where the adjasent is -dash.cg_pos + cos(\n // BOARD_THICKNESS + strut.span)\n if (rider_xpos_tilt_correction) {\n double pitch_rad = Math.toRadians(craft_pitch);\n double hypo = BOARD_THICKNESS + strut.span;\n double deck_rot_adj = - // when AOA is positive, and cg_pos is\n // negative, increses the magnitude\n hypo * Math.sin(pitch_rad);\n\n // board deck offset is hypotenuse; adjasent value is dash.cg_pos plus\n // deck_rot_adjn\n \n // deck_x_offset is the 'hypotenuse' H = A / cos(A)\n double deck_x_offset = (dash.cg_pos + deck_rot_adj) // the 'adjasent'\n / Math.cos(pitch_rad);\n\n // apply correction\n dash.cg_pos_board_level = deck_x_offset;\n }\n\n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example for AoA=0:\n // cg_pos=-30cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level -= strut.xoff_tip;\n\n \n // rider_countering_x_offset is computed and saved to reflect posture\n // change due to (a) headwind (b) propulsion pull as follows below\n double rider_countering_x_offset = 0;\n\n // (a) Headwind.\n // Two square triangles: rider_offset/height = rider.drag/weight\n if (!in.opts.ignore_air_resistance)\n rider_countering_x_offset += -(rider.drag/rider.weight)* RIDER_CG_HEIGHT;\n\n // (b) Propulsion pull. \n // Rider's force-countering stance is in effect only if the drive force is applied\n // above the board, which implies it goes through rider's body\n if (DRIVING_FORCE_HEIGHT > 0) {\n // drive force, scaled to be considering coming from the rider CG height spot\n double drive_force_scaled = \n (in.opts.ignore_drive_moment)\n ? 0\n : (total_drag() * DRIVING_FORCE_HEIGHT/RIDER_CG_HEIGHT);\n // two square triangles: rider_offset/height = drive_force_scaled/weight\n rider_countering_x_offset += (drive_force_scaled/rider.weight)* RIDER_CG_HEIGHT; // wasFF 0.86;\n }\n rider.force_countering_x_offest = rider_countering_x_offset;\n dash.cg_pos_of_rider = dash.cg_pos_board_level + rider.force_countering_x_offest;\n\n // factored out to dash.loadPanel()\n // if (can_do_gui_updates) {\n // dash.loadPanel();\n // }\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@Test\n public void testTerrainDimension() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_HEGHT / TerrainFactoryImpl.TERRAIN_ROWS);\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_WIDTH / TerrainFactoryImpl.TERRAIN_COLUMNS);\n level.levelUp(); \n });\n }", "private void buildScaleInputs(StateObservation stateObs) {\n viewWidth = 5;\n viewHeight = 10;\n //*****************************\n\n int blockSize;\n int avatarColNumber;\n\n int numGridRows, numGridCols;\n\n ArrayList<Observation>[][] gameGrid;\n\n gameGrid = stateObs.getObservationGrid();\n numGridRows = gameGrid[0].length;\n numGridCols = gameGrid.length;\n\n blockSize = stateObs.getBlockSize();\n\n // get where the player is\n avatarColNumber = (int) (stateObs.getAvatarPosition().x / blockSize);\n\n // create the inputs\n MLPScaledInputs = new double[viewWidth * viewHeight];\n\n int colStart = avatarColNumber - (viewWidth / 2);\n int colEnd = avatarColNumber + (viewWidth / 2);\n\n int index = 0;\n\n for (int i = numGridRows - (viewHeight + 1); i < viewHeight; i++) { // rows\n\n for (int j = colStart; j <= colEnd; j++) { // rows\n if (j < 0) {\n // left outside game window\n MLPScaledInputs[index] = 1;\n } else if (j >= numGridCols) {\n // right outside game window\n MLPScaledInputs[index + 1] = 1;\n } else if (gameGrid[j][i].isEmpty()) {\n MLPScaledInputs[index] = 0;\n } else {\n for (Observation o : gameGrid[j][i]) {\n\n switch (o.itype) {\n case 3: // obstacle sprite\n MLPScaledInputs[index + 2] = 1;\n break;\n case 1: // user ship\n MLPScaledInputs[index + 3] = 1;\n break;\n case 9: // alien sprite\n MLPScaledInputs[index + 4] = 1;\n break;\n case 6: // missile\n MLPScaledInputs[index + 5] = 1;\n break;\n }\n }\n }\n index++;\n }\n }\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setSubpartSizeUnderLight(770.8881F);\n float float0 = homeEnvironment0.getSubpartSizeUnderLight();\n assertEquals(770.8881F, float0, 0.01F);\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW7() {\n CuteNetlibCase.doTest(\"GROW7.SIF\", \"-4.7787811814711526E7\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testKB2() {\n CuteNetlibCase.doTest(\"KB2.SIF\", \"-1.74990012991E+03\", \"0.0\", NumberContext.of(7, 4));\n }", "public float getSizeX(){return sx;}", "Unit infantryUnit(Canvas canvas ,String name);", "public static int pointsForStage(int stage) {\n return (int)Math.round(RANK_START * Math.pow((1 + RANK_GROWTH_RATE),stage));\n }", "private static void calcSingleTms() {\n\t\tFloat avgLenInitial = 0f;\n\t\tFloat avgLenSc = 0f;\n\t\tInteger countSCsingle = 0;\n\t\t// get all the single TM proteins from the hash\n\t\t\n\t\t// for the initial set\n\t\tfor(int i =0;i<=singleTmProts.size()-1;i++){\n\t\t\tint id = singleTmProts.get(i);\n\t\t\tavgLenInitial = avgLenInitial + Sequences_length.get(id);\n\t\t}\n\t\tavgLenInitial = (avgLenInitial / singleTmProts.size());\n\t\t\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in initial Set \"+singleTmProts.size()+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in initial Set \"+avgLenInitial+\"\\n\");\n\t\t\n\t\t//for the SC\n\t\tgetSCset();\n\t\t// for all the proteins in SC_sequences\n\t\t\n\t\tfor(Integer key : SC_sequences.keySet()){\n\t\t\tif (singleTmProts.contains(key)){\n\t\t\t\t// is in SC and is single TM\n\t\t\t\tavgLenSc = avgLenSc + Sequences_length.get(key);\n\t\t\t\tcountSCsingle ++;\n\t\t\t}\n\t\t\tavgLenSc = (avgLenSc / countSCsingle); \n\t\t}\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in SC \"+countSCsingle+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in SC Set \"+avgLenSc+\"\\n\");\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "String getUnits();", "String getUnits();", "String getUnits();", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "double getActualKm();", "@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "public int getSourceUnits() {\n return sourceUnits;\n }", "@Test\n\tpublic void testTGetY() {\n\t\tassertEquals(0, tank.getY());\n\t}", "private void ProcessTGSymbol(MilStdSymbol symbol, IPointConversion converter, Rectangle2D clipBounds)\n {\n try\n {\n\n //RenderMultipoints.clsRenderer.render(symbol, converter);\n //TGLight tgl = new TGLight();\n \n //sector range fan, make sure there is a minimum distance value.\n if(SymbolUtilities.getBasicSymbolID(symbol.getSymbolID()).equals(\"G*F*AXS---****X\"))\n {\n if(symbol.getModifiers_AM_AN_X(ModifiersTG.AN_AZIMUTH)!=null &&\n symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE)!=null)\n {\n int anCount = symbol.getModifiers_AM_AN_X(ModifiersTG.AN_AZIMUTH).size();\n int amCount = symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE).size();\n ArrayList<Double> am = null;\n if(amCount < ((anCount/2) + 1))\n {\n am = symbol.getModifiers_AM_AN_X(ModifiersTG.AM_DISTANCE);\n if(am.get(0)!=0.0)\n {\n am.add(0, 0.0);\n }\n }\n }\n }\n\n //call that supports clipping\n \n\n ArrayList<ShapeInfo> shapes = new ArrayList<ShapeInfo>();\n ArrayList<ShapeInfo> modifiers = new ArrayList<ShapeInfo>();\n RenderMultipoints.clsRenderer.render(symbol, converter, shapes, modifiers, clipBounds);\n\n if(RendererSettings.getInstance().getTextBackgroundMethod()\n != RendererSettings.TextBackgroundMethod_NONE)\n {\n modifiers = SymbolDraw.ProcessModifierBackgrounds(modifiers);\n symbol.setModifierShapes(modifiers);\n }\n\n }\n catch(Exception exc)\n {\n String message = \"Failed to build multipoint TG\";\n if(symbol != null)\n message = message + \": \" + symbol.getSymbolID();\n //ErrorLogger.LogException(this.getClass().getName() ,\"ProcessTGSymbol()\",\n // new RendererException(message, exc));\n System.err.println(exc.getMessage());\n }\n catch(Throwable t)\n {\n String message2 = \"Failed to build multipoint TG\";\n if(symbol != null)\n message2 = message2 + \": \" + symbol.getSymbolID();\n //ErrorLogger.LogException(this.getClass().getName() ,\"ProcessTGSymbol()\",\n // new RendererException(message2, t));\n System.err.println(t.getMessage());\n }\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDATA() {\n CuteNetlibCase.doTest(\"STANDATA.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "private void gotoSTK(){\n\t short buf_length = (short) MyText.length;\n\t short i = buf_length;\n\t initDisplay(MyText, (short) 0, (short) buf_length, (byte) 0x81,(byte) 0x04);\n}", "double transformXScreenLengthToWorld(final double screen);", "public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}", "int getActionPoints(Unit unit);", "public short getUnitsPerEm() throws PDFNetException {\n/* 843 */ return GetUnitsPerEm(this.a);\n/* */ }", "private String getVerticalLevelUnits(String gVCord) {\n\n String tmp = gVCord.toUpperCase();\n if (tmp.compareTo(\"PRES\") == 0) {\n return \"MB\";\n }\n if (tmp.compareTo(\"THTA\") == 0) {\n return \"K \";\n }\n if (tmp.compareTo(\"HGHT\") == 0) {\n return \"M \";\n }\n if (tmp.compareTo(\"SGMA\") == 0) {\n return \"SG\";\n }\n if (tmp.compareTo(\"DPTH\") == 0) {\n return \"M \";\n }\n return \"\";\n }", "static public void validateSize(String t, boolean bZero, boolean bMinus) throws Exception {\n t = t.Trim();\n if (t.Length == 0)\n return ;\n \n // not specified is ok?\n // Ensure we have valid units\n if (t.IndexOf(\"in\") < 0 && t.IndexOf(\"cm\") < 0 && t.IndexOf(\"mm\") < 0 && t.IndexOf(\"pt\") < 0 && t.IndexOf(\"pc\") < 0)\n {\n throw new Exception(\"Size unit is not valid. Must be in, cm, mm, pt, or pc.\");\n }\n \n int space = t.LastIndexOf(' ');\n String n = \"\";\n // number string\n String u = new String();\n try\n {\n // unit string\n // Convert.ToDecimal can be very picky\n if (space != -1)\n {\n // any spaces\n n = t.Substring(0, space).Trim();\n // number string\n u = t.Substring(space).Trim();\n }\n else // unit string\n if (t.Length >= 3)\n {\n n = t.Substring(0, t.Length - 2).Trim();\n u = t.Substring(t.Length - 2).Trim();\n }\n \n }\n catch (Exception ex)\n {\n throw new Exception(ex.Message);\n }\n\n if (n.Length == 0 || !Regex.IsMatch(n, \"\\\\A[ ]*[-]?[0-9]*[.]?[0-9]*[ ]*\\\\Z\"))\n {\n throw new Exception(\"Number format is invalid. ###.## is the proper form.\");\n }\n \n float v = DesignXmlDraw.getSize(t);\n if (!bZero)\n {\n if (v < .1)\n throw new Exception(\"Size can't be zero.\");\n \n }\n else if (v < 0 && !bMinus)\n throw new Exception(\"Size can't be less than zero.\");\n \n return ;\n }", "double getCurrentTfConsumed();", "static public String makeValidSize(String t, boolean bZero, boolean bNegative) throws Exception {\n // Ensure we have valid units\n if (t.IndexOf(\"in\") < 0 && t.IndexOf(\"cm\") < 0 && t.IndexOf(\"mm\") < 0 && t.IndexOf(\"pt\") < 0 && t.IndexOf(\"pc\") < 0)\n {\n t += \"in\";\n }\n \n float v = DesignXmlDraw.getSize(t);\n if (!bZero)\n {\n if (v < .1)\n t = \".1pt\";\n \n }\n \n if (!bNegative)\n {\n if (v < 0)\n t = \"0in\";\n \n }\n \n return t;\n }", "Units getUnits();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setVideoWidth(1411);\n assertEquals(1411, homeEnvironment0.getVideoWidth());\n }", "private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }", "public void setUnits(byte units) { this.units = units; }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoWidth((-2796));\n int int0 = homeEnvironment0.getVideoWidth();\n assertEquals((-2097), homeEnvironment0.getVideoHeight());\n assertEquals((-2796), int0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSEBA() {\n CuteNetlibCase.doTest(\"SEBA.SIF\", \"15711.6\", \"35160.46056\", NumberContext.of(7, 4));\n }", "float getXStepMin();", "protected byte desiredWinScale() { return 9; }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "double kts_to_speed (double kts) {\n return (lunits == METRIC) \n ? kts / 0.539957\n : kts / 0.868976;\n }", "private int getUnitKey(){\n\t\t\n\t\tint panelIndex = tabbedPane.getSelectedIndex();\n\t\tString keyString = tabbedPane.getTitleAt(panelIndex);\n\t\t\n\t\tif(panelIndex == LOCAL_UNIT)// local unit selected\n\t\t\treturn LOCAL_UNIT;\n\t\telse{\n\t\t\tint key = Integer.parseInt(keyString.split(\" \")[2]);\n\t\t\treturn key;\n\t\t}\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSCTAP1() {\n CuteNetlibCase.doTest(\"SCTAP1.SIF\", \"1412.25\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-5305), (-283.024F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(329, homeTexture0, 329, homeTexture0, 76, 329);\n homeEnvironment0.setVideoQuality(76);\n int int0 = homeEnvironment0.getVideoQuality();\n assertEquals(76, int0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSTAIR() {\n CuteNetlibCase.doTest(\"STAIR.SIF\", \"-251.26695119296787\", \"-208.79999\", NumberContext.of(7, 2));\n }", "@Test\n\t\tpublic void isWidth() {\n\t\t\tint expected = 7;\n\t\t\tint actual = game.getWidthAcross();\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}", "private double generateEngineSize(String model) {\n\t\tif (model.equals(\"compact\")) {\n\t\t\treturn (double) Math.round((90 + (150 - 90) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t} else if (model.equals(\"intermediate\")) {\n\t\t\treturn (double) Math.round((150 + (250 - 150) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t} else {\n\t\t\treturn (double) Math.round((250 + (400 - 250) * randomGenerator.nextDouble()) * 100) / 100;\n\t\t}\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testPILOT4() {\n CuteNetlibCase.doTest(\"PILOT4.SIF\", \"-2581.1392612778604\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testSCFXM3() {\n CuteNetlibCase.doTest(\"SCFXM3.SIF\", \"54901.2545497515\", null, NumberContext.of(7, 4));\n }", "@Test\n public void testGiantComponent()\n {\n assertEquals(MarkovModel.util.giantComponent(P1), giant1);\n assertEquals(MarkovModel.util.giantComponent(P2), giant2);\n assertEquals(MarkovModel.util.giantComponent(P3), giant3);\n }", "@Test\n public void testTimescales_5args()\n {\n Iterable<IIntArray> dtraj = null;\n ICountMatrixEstimator Cest = null;\n ITransitionMatrixEstimator Test = null;\n int ntimescales = 0;\n IIntArray lagtimes = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.timescales(dtraj, Cest, Test, ntimescales, lagtimes);\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 byte getUnits() { return units; }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.getVideoAspectRatio();\n homeEnvironment0.setWallsAlpha(3308.328F);\n homeEnvironment0.setVideoQuality(11053224);\n homeEnvironment0.setObserverCameraElevationAdjusted(true);\n homeEnvironment0.getDrawingMode();\n assertEquals(3308.328F, homeEnvironment0.getWallsAlpha(), 0.01F);\n }", "public boolean checkSystem() {\n print(\"Testing ELEVATOR.--------------------------------------------------\");\n final double kCurrentThres = 0.5;\n if(getPosition() < 0){\n zeroPosition();\n }\n spx.set(ControlMode.PercentOutput, -0.1);\n srx.set(ControlMode.PercentOutput, -0.1);\n Timer.delay(0.2);\n srx.set(ControlMode.PercentOutput, 0.0);\n spx.set(ControlMode.PercentOutput, 0.0);\n Timer.delay(0.1);\n; srx.setNeutralMode(NeutralMode.Coast);\n spx.setNeutralMode(NeutralMode.Coast);\n\n double testSpeed = .75;\n double testDownSpeed = -0.05;\n double testUpTime = 1;\n\n\n if(getPosition() < 0){\n zeroPosition();\n }\n // test climber srx\n final double SRXintialEncoderPos = Math.abs(getPosition());\n srx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n srx.set(ControlMode.PercentOutput, 0.0);\n final double currentSRX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SRX_PDP);\n final double positionSRX = getPosition();\n //srx.set(ControlMode.PercentOutput, testDownSpeed);\n //Timer.delay(0.1);\n \n Timer.delay(2.0);\n\n if(getPosition() < 0){\n zeroPosition();\n }\n\n // Test climber spx\n final double SPXintialEncoderPos = Math.abs(getPosition());\n spx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n final double currentSPX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SPX_PDP);\n final double positionSPX = getPosition();\n spx.set(ControlMode.PercentOutput, testDownSpeed);\n Timer.delay(0.1);\n spx.set(ControlMode.PercentOutput, 0.0);\n\n Timer.delay(1.0);\n //Reset Motors\n spx.follow(srx); \n srx.setNeutralMode(NeutralMode.Brake);\n spx.setNeutralMode(NeutralMode.Brake);\n\n print(\"ELEVATOR SRX CURRENT: \" + currentSRX + \" SPX CURRENT: \" + currentSPX);\n print(\"ELEVATOR SRX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSRX);\n print(\"ELEVATOR SPX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSPX);\n\n boolean failure = false;\n\n print(\"!%!%#$!%@ - WRITE A TEST FOR THE ELEVATOR LIMIT SWITCHES!!!!!!!!!\");\n\n if (currentSRX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!!! ELEVATOR SRX Current Low !!!!!!!!!!!!!!!!!\");\n }\n\n if (currentSPX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR SPX Current Low !!!!!!!!!!!!!!!!!!!\");\n }\n\n if (!Util.allCloseTo(Arrays.asList(currentSRX, currentSPX), currentSRX, 5.0)) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR Currents Different !!!!!!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSRX - SRXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SRX !!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSPX - SPXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SPX !!!!!!!!!!!!!\");\n }\n\n return failure;\n }", "@Test\n @Tag(\"slow\")\n public void testSCSD8() {\n CuteNetlibCase.doTest(\"SCSD8.SIF\", \"905\", null, NumberContext.of(7, 4));\n }", "@Test\n public void dt1_block_iso_tables() {\n assertEquals(Tile.SUBTILE_HEIGHT, Block.ISO_X_LEN.length);\n assertEquals(Tile.SUBTILE_HEIGHT, Block.ISO_X_OFF.length);\n for (int i = 0; i < Tile.SUBTILE_HEIGHT; i++) {\n assertEquals(Tile.SUBTILE_WIDTH, Block.ISO_X_LEN[i] + Block.ISO_X_OFF[i] * 2);\n }\n }", "public native int getUnits() throws MagickException;", "public float getTetherStartX () { return Tether.getStartX(); }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setSubpartSizeUnderLight((-1469.0F));\n float float0 = homeEnvironment0.getSubpartSizeUnderLight();\n assertEquals((-1469.0F), float0, 0.01F);\n }", "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "public int calculateUnits(Object oKey, Object oValue);", "private void TEMrunInfo(){\n\n int idummy;\n idummy=TEM.runcht.cht.getCd().getVegtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_VEGETATION, 1);\n idummy=TEM.runcht.cht.getCd().getDrgtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_DRAINAGE, 1);\n idummy=TEM.runcht.cht.getCd().getGrdid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_GRD, 1);\n idummy=TEM.runcht.cht.getCd().getEqchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_EQCHT, 1);\n idummy=TEM.runcht.cht.getCd().getSpchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_SPCHT, 1);\n idummy=TEM.runcht.cht.getCd().getTrchtid(); \t \n \t stateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_TRCHT, 1);\n \t \n float ddummy;\n ddummy=(float)TEM.runcht.initstate.getMossthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MOSSTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getFibthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getHumthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getVegc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGC, 1);\n ddummy=(float)TEM.runcht.initstate.getVegn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGN, 1);\t\t\n ddummy=(float)TEM.runcht.initstate.getSoilc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILC, 1);\t \n ddummy=(float)TEM.runcht.initstate.getFibc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getHumc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getMinc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MINESOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getAvln(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_AVAILN, 1);\n ddummy=(float)TEM.runcht.initstate.getOrgn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILN, 1);\n\n //\n \tvegpar_bgc vbpar = new vegpar_bgc();\n \tsoipar_bgc sbpar = new soipar_bgc();\n \tTEM.runcht.cht.getBgcPar(vbpar, sbpar);\n\n ddummy=vbpar.getM1(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m1, 1);\n ddummy=vbpar.getM2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m2, 1);\n ddummy=vbpar.getM3(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m3, 1);\n ddummy=vbpar.getM4(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m4, 1);\n ddummy=sbpar.getFsoma(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsoma, 1);\n ddummy=sbpar.getFsompr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsompr, 1);\n ddummy=sbpar.getFsomcr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsomcr, 1); \t\t\n ddummy=sbpar.getSom2co2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_som2co2, 1);\n \t\n //\n vegpar_cal vcpar = new vegpar_cal();\n soipar_cal scpar = new soipar_cal();\n TEM.runcht.cht.getCalPar(vcpar, scpar);\n\n ddummy=vcpar.getCmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CMAX, 1);\n ddummy=vcpar.getNmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NMAX, 1);\n ddummy=vcpar.getKrb(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KRB, 1);\n ddummy=vcpar.getCfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CFALL, 1);\n ddummy=vcpar.getNfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NFALL, 1);\n \t\n ddummy=scpar.getNup(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NUP, 1);\n ddummy=scpar.getKdcfib(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCFIB, 1);\n ddummy=scpar.getKdchum(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCHUM, 1);\n ddummy=scpar.getKdcmin(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCMIN, 1);\n ddummy=scpar.getKdcslow(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCSLOW, 1);\n\t \t\t\n }", "int getCurrentXOfSS();", "String getUnitsString();", "public TempScale getInputScale() {return inputScale;}", "private int toScreenP(double x)\n\t\t{\n\t\tint h=getHeight();\n\t\treturn (int)(h*0.9 + x*scaleP*h);\n\t\t}", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setPhotoQuality((-2107));\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals((-2107), int0);\n }", "@Test\n public void projectMetrics() {\n assertProjectMetrics(340, 161, 179, 78054, 28422, 49632);\n }", "String getUnit();", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "public void xTileSize(int xCells)\n{\n if (m != null)\n m.getTileManager().setXCells(xCells);\n}" ]
[ "0.5661207", "0.5350825", "0.52429277", "0.5204506", "0.5122464", "0.5113736", "0.5112028", "0.5103469", "0.5095944", "0.50851905", "0.5014815", "0.4999616", "0.49875647", "0.49802348", "0.49723426", "0.4966661", "0.49612302", "0.494317", "0.48930484", "0.4878732", "0.48501045", "0.4849357", "0.48298162", "0.48149997", "0.4811461", "0.4806544", "0.47961265", "0.47934127", "0.47695974", "0.4766444", "0.47663152", "0.47629967", "0.4751642", "0.4732209", "0.4731193", "0.47308183", "0.47282904", "0.47214478", "0.47211716", "0.4716735", "0.47022623", "0.47022623", "0.47022623", "0.46997222", "0.46988326", "0.4679241", "0.46735752", "0.46675763", "0.46583214", "0.46546778", "0.46505824", "0.4647892", "0.46407866", "0.46395957", "0.4613721", "0.46128172", "0.46100426", "0.46079117", "0.46070883", "0.46046522", "0.46035865", "0.4600829", "0.459344", "0.45871222", "0.45778874", "0.45749417", "0.45668942", "0.4565135", "0.45633376", "0.45592192", "0.45578015", "0.4553093", "0.4552856", "0.4545235", "0.45410943", "0.45395494", "0.4538269", "0.45373905", "0.45338938", "0.45237222", "0.4522615", "0.45195106", "0.4514259", "0.45105162", "0.45052558", "0.45045102", "0.45008886", "0.44970736", "0.4492392", "0.44891697", "0.44881794", "0.44842544", "0.4484204", "0.44839418", "0.44794804", "0.44783124", "0.44779423", "0.44765666", "0.44674924", "0.4465009" ]
0.4820442
23
public static String BOLD_FONT_FILENAME = "BOLD_FONT_FILENAME"; public static String REGULAR_FONT_FILENAME = "REGULAR_FONT_FILENAME";
public static int getScreenWidth(Context context) { return context.getResources().getDisplayMetrics().widthPixels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFontFile(){\n\t\tif (fontFile == null){\n\t\t\tfontFile = escapeForVideoFilter(ResourcesManager.getResourcesManager().getOpenSansResource().location);\n\t\t}\n\t\treturn fontFile;\n\t}", "public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA = true;\n fontBolW = true;\n }", "private static void buildFonts() {\r\n fontSMALL = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_SM );\r\n fontMEDIUM = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_MD );\r\n fontLARGE = new Font( strDEFAULT_TYPEFACE, Font.BOLD, FONT_SIZE_LG );\r\n }", "FONT createFONT();", "public void GetFontS (){\n fontBolS = false;\n fontBol = true;\n fontBolA = true;\n fontBolW = true;\n }", "private void setFont() {\n\t}", "public BitmapFont loadBitmapFont(String fileFont, String fileImage);", "Font createFont();", "public void setFont(RMFont aFont) { }", "public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }", "public void GetFontA (){\n fontBolA = false;\n fontBolS = true;\n fontBol = true;\n fontBolW = true;\n }", "private void loadSettingFont() {\n\t\tSharedPreferences mysettings = getSharedPreferences(\n\t\t\t\tPREFERENCES_FILE_NAME, 0);\n\t\tindexFont = mysettings.getInt(\"indexFont\", 1);\n\t\tLog.d(\"indexFont\", indexFont + \"\");\n\t\tswitch (indexFont) {\n\t\tcase 0:\n\t\t\tmTypeface = Typeface.DEFAULT;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"SEGOEUI.TTF\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"tinhyeu.ttf\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"thuphap.ttf\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmTypeface = Typeface.createFromAsset(getApplicationContext()\n\t\t\t\t\t.getAssets(), \"SEGOEUI.TTF\");\n\t\t\tbreak;\n\t\t}\n\t}", "public String getFontName();", "public String getFontName();", "public String getFontName();", "public void fontLoader(){\n try {\n //create the font to use. Specify the size!\n customFont = Font.createFont(Font.TRUETYPE_FONT, new File(\".\\\\resources\\\\DS-DIGI.ttf\")).deriveFont(40f);\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n ge.registerFont(customFont);\n } catch (IOException e) {\n e.printStackTrace();\n } catch(FontFormatException e) {\n e.printStackTrace();\n }\n }", "private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n }\n }", "public void GetFontW (){\n fontBolW = false;\n fontBolS = true;\n fontBolA = true;\n fontBol = true;\n }", "private void initFonts() {\n Typeface typeFace = Typeface.createFromAsset(getAssets(), \"fonts/BuriedBeforeBB_Reg.otf\");\n\n TextView textViewScore = (TextView) findViewById(R.id.txtScore);\n TextView textViewLives = (TextView) findViewById(R.id.txtLives);\n TextView txtGameOver = (TextView) findViewById(R.id.txtGameOver);\n TextView txtGameOver2 = (TextView) findViewById(R.id.txtGameOver2);\n\n textViewScore.setTypeface(typeFace);\n textViewLives.setTypeface(typeFace);\n txtGameOver.setTypeface(typeFace);\n txtGameOver2.setTypeface(typeFace);\n txtNextLevel.setTypeface(typeFace);\n }", "private void loadFont() {\n\t\ttry {\n\t\t\tfont = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(\"assets/fonts/forced_square.ttf\"));\n\t\t} catch (Exception e) {\n\t\t\tfont = new Font(\"Helvetica\", Font.PLAIN, 22);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "static PDFont loadFont(PDDocument document) {\n Path fontPath = Paths.get(badgeResourcePath, \"/Bitstream - BankGothic Md BT Medium.ttf\");\n\n try (InputStream stream = new FileInputStream(fontPath.toFile())) {\n return PDType0Font.load(document, stream);\n } catch (IOException ex) {\n log.warn(\"Error, couldn't load font '{}'\", fontPath.toAbsolutePath());\n return PDType1Font.HELVETICA_BOLD;\n }\n }", "public static String getFontName() {\n return \"Comic Sans MS\";\n }", "public abstract Font getFont();", "private Font bloodBowlFont() throws FontFormatException, IOException {\r\n String fontFileName = \"/bloodbowl/resources/jblack.ttf\";\r\n return Font.createFont(Font.TRUETYPE_FONT, getClass().getResourceAsStream(fontFileName));\r\n }", "Font getFont(int style) {\n\tswitch (style) {\n\t\tcase SWT.BOLD:\n\t\t\tif (boldFont != null) return boldFont;\n\t\t\treturn boldFont = new Font(device, getFontData(style));\n\t\tcase SWT.ITALIC:\n\t\t\tif (italicFont != null) return italicFont;\n\t\t\treturn italicFont = new Font(device, getFontData(style));\n\t\tcase SWT.BOLD | SWT.ITALIC:\n\t\t\tif (boldItalicFont != null) return boldItalicFont;\n\t\t\treturn boldItalicFont = new Font(device, getFontData(style));\n\t\tdefault:\n\t\t\treturn regularFont;\n\t}\n}", "public void setFont(Font value) {\r\n this.font = value;\r\n }", "abstract Font getFont();", "private Typeface getFont() {\n Typeface fontText = Typeface.createFromAsset(SnapziApplication.getContext().getAssets(), \"fonts/GothamHTF-Book.ttf\");\n return fontText;\n }", "public String getMatchFontName();", "private void setupFonts()\r\n\t{\r\n\t\tSystem.out.println(\"In setupFonts()\");\r\n\t\t\r\n\t\t// set up the text fonts\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttextFont = Font.createFont(Font.TRUETYPE_FONT, AppletResourceLoader.getFileFromJar(GameConstants.PATH_FONTS + \"FOXLEY8_.ttf\"));\r\n\t\t\ttextFont = textFont.deriveFont(16.0f);\r\n\t\t\ttextFontBold = textFont.deriveFont(Font.BOLD, 16.0f);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"ERROR IN setupFonts(): \" + e.getClass().getName() + \" - \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public SlickRenderFont loadFont(final Graphics g, final String filename) throws SlickLoadFontException {\n try {\n Font javaFont = loadJavaFont(filename);\n \n if (javaFont == null) {\n throw new SlickLoadFontException(\"Loading TTF Font failed.\");\n }\n \n if (javaFont.getSize() == 1) {\n javaFont = javaFont.deriveFont(12.f);\n }\n \n final UnicodeFont uniFont = new UnicodeFont(javaFont);\n uniFont.addAsciiGlyphs();\n uniFont.getEffects().add(new ColorEffect());\n \n return new UnicodeSlickRenderFont(uniFont, javaFont);\n } catch (final Exception e) {\n throw new SlickLoadFontException(\"Loading the font failed.\", e);\n }\n }", "public FontConfig() {\n\t\tthis.name = \"Monospaced\";\n\t\tthis.style = FontStyle.PLAIN;\n\t\tthis.size = DEFAULT_SIZE;\n\t}", "public void setLabelFont(Font f);", "public void set_fonts(Graphics2D g2, float scale) {\n if ( XHSIPreferences.get_instance().get_bold_fonts() ) {\n this.font_statusbar = new Font(\"Verdana\", Font.PLAIN, 9);\n this.font_tiny = new Font( \"Verdana\", Font.BOLD, 10);\n this.font_small = new Font( \"Verdana\", Font.BOLD, 12);\n this.font_medium = new Font( \"Verdana\", Font.BOLD, 16);\n this.font_large = new Font( \"Verdana\", Font.PLAIN, 24);\n this.font_zl = new Font( \"Verdana\", Font.PLAIN, Math.round(64.0f * scale));\n this.font_yl = new Font( \"Verdana\", Font.PLAIN, Math.round(32.0f * scale));\n this.font_xxl = new Font( \"Verdana\", Font.BOLD, Math.round(24.0f * scale));\n this.font_xl = new Font( \"Verdana\", Font.BOLD, Math.round(21.0f * scale));\n this.font_l = new Font( \"Verdana\", Font.BOLD, Math.round(18.0f * scale));\n this.font_m = new Font( \"Verdana\", Font.BOLD, Math.round(16.0f * scale));\n this.font_s = new Font( \"Verdana\", Font.BOLD, Math.round(14.0f * scale));\n this.font_xs = new Font( \"Verdana\", Font.BOLD, Math.round(12.0f * scale));\n this.font_xxs = new Font( \"Verdana\", Font.BOLD, Math.round(10.0f * scale));\n this.font_normal = new Font( \"Verdana\", Font.BOLD, Math.round(14.0f * scale));\n } else {\n this.font_statusbar = new Font(\"Verdana\", Font.PLAIN, 9);\n this.font_tiny = new Font( \"Verdana\", Font.PLAIN, 10);\n this.font_small = new Font( \"Verdana\", Font.PLAIN, 12);\n this.font_medium = new Font( \"Verdana\", Font.PLAIN, 16);\n this.font_large = new Font( \"Verdana\", Font.PLAIN, 24);\n this.font_zl = new Font( \"Verdana\", Font.PLAIN, Math.round(64.0f * scale));\n this.font_yl = new Font( \"Verdana\", Font.PLAIN, Math.round(32.0f * scale));\n this.font_xxl = new Font( \"Verdana\", Font.PLAIN, Math.round(24.0f * scale));\n this.font_xl = new Font( \"Verdana\", Font.PLAIN, Math.round(21.0f * scale));\n this.font_l = new Font( \"Verdana\", Font.PLAIN, Math.round(18.0f * scale));\n this.font_m = new Font( \"Verdana\", Font.PLAIN, Math.round(16.0f * scale));\n this.font_s = new Font( \"Verdana\", Font.PLAIN, Math.round(14.0f * scale));\n this.font_xs = new Font( \"Verdana\", Font.PLAIN, Math.round(12.0f * scale));\n this.font_xxs = new Font( \"Verdana\", Font.PLAIN, Math.round(10.0f * scale));\n this.font_normal = new Font( \"Verdana\", Font.PLAIN, Math.round(14.0f * scale));\n }\n\n // calculate font metrics\n // W is probably the largest characher...\n FontMetrics fm;\n\n fm = g2.getFontMetrics(this.font_large);\n this.line_height_large = fm.getAscent();\n this.max_char_advance_large = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_large = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_medium);\n this.line_height_medium = fm.getAscent();\n this.max_char_advance_medium = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_medium = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_small);\n this.line_height_small = fm.getAscent();\n this.max_char_advance_small = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_small = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_tiny);\n this.line_height_tiny = fm.getAscent();\n this.max_char_advance_tiny = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_tiny = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_zl);\n this.line_height_zl = fm.getAscent();\n this.max_char_advance_zl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_zl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_yl);\n this.line_height_yl = fm.getAscent();\n this.max_char_advance_yl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_yl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xxl);\n this.line_height_xxl = fm.getAscent();\n this.max_char_advance_xxl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xxl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xl);\n this.line_height_xl = fm.getAscent();\n this.max_char_advance_xl = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xl = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_l);\n this.line_height_l = fm.getAscent();\n this.max_char_advance_l = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_l = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_m);\n this.line_height_m = fm.getAscent();\n this.max_char_advance_m = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_m = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_s);\n this.line_height_s = fm.getAscent();\n this.max_char_advance_s = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_s = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xs);\n this.line_height_xs = fm.getAscent();\n this.max_char_advance_xs = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xs = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_xxs);\n this.line_height_xxs = fm.getAscent();\n this.max_char_advance_xxs = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_xxs = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n fm = g2.getFontMetrics(this.font_normal);\n this.line_height_normal = fm.getAscent();\n this.max_char_advance_normal = fm.stringWidth(\"WW\") - fm.stringWidth(\"W\");\n this.digit_width_normal = fm.stringWidth(\"88\") - fm.stringWidth(\"8\");\n\n }", "public void saveFont()\r\n\t{\r\n\t\tsavedFont = g.getFont();\r\n\t}", "public String getMyFont() {\n return myFont.font; /*Fault:: return \"xx\"; */\n }", "public static Font getFont() {\n return getFont(12);\n }", "public Font getLabelFont();", "private void setupFont() {\n CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()\n .setDefaultFontPath(\"fonts/Montserrat-Regular.otf\")\n .setFontAttrId(R.attr.fontPath)\n .build()\n );\n }", "public static void setFont(String fontName, int fontSize, int style){\n\t\tGComponent.fGlobalFont = new Font(fontName, fontSize, style);\n\t}", "private void setFont() {\n Typeface font = Typeface.createFromAsset(getContext().getAssets(), mFontPath);\n setTypeface(font, Typeface.NORMAL);\n }", "private void setFonts() {\n fileTitle.setFont(MasterDisplay.titleFont);\n entryFileButton.setFont(MasterDisplay.tabAndButtonFont);\n entryFileLabel.setFont(MasterDisplay.tabAndButtonFont);\n itemFileButton.setFont(MasterDisplay.tabAndButtonFont);\n itemFileLabel.setFont(MasterDisplay.tabAndButtonFont);\n outputFolderButton.setFont(MasterDisplay.tabAndButtonFont);\n outputFolderLabel.setFont(MasterDisplay.tabAndButtonFont);\n }", "private Font getTitleFont() {\n\t\tFont f = lblTitle.getFont();\n\t\tf = f.deriveFont(Font.BOLD, PosUIManager.getTitleFontSize());\n\t\treturn f;\n\t}", "private void loadSystemFont(String font){\n mFont = new Font(font, mFontStyle, (int)mFontSize);\n }", "private void initFontAndChange(Context context) {\n changeFont(context);\n }", "public String getFont() {\n return font;\n }", "public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }", "void setFontFamily(ReaderFontSelection f);", "private static Font[] loadFonts() throws Exception {\r\n Font font = Font.createFont(Font.TRUETYPE_FONT, Class.class.getClass()\r\n .getResource(\"/language/fonts/code2000.ttf\").openStream());\r\n // since 1.6 we could register the font and use it by name\r\n // but using the font directly makes us 1.5 compatible\r\n // GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font);\r\n return new Font[]{font};\r\n }", "private java.awt.Font getFont(Feature feature, Font[] fonts) {\n if (fontFamilies == null) {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n fontFamilies = new HashSet();\n \n List f = Arrays.asList(ge.getAvailableFontFamilyNames());\n fontFamilies.addAll(f);\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"there are \" + fontFamilies.size() + \" fonts available\");\n }\n }\n \n java.awt.Font javaFont = null;\n \n int styleCode = 0;\n int size = 6;\n String requestedFont = \"\";\n \n for (int k = 0; k < fonts.length; k++) {\n requestedFont = fonts[k].getFontFamily().getValue(feature).toString();\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"trying to load \" + requestedFont);\n }\n \n if (loadedFonts.containsKey(requestedFont)) {\n javaFont = (java.awt.Font) loadedFonts.get(requestedFont);\n \n String reqStyle = (String) fonts[k].getFontStyle().getValue(feature);\n \n if (fontStyleLookup.containsKey(reqStyle)) {\n styleCode = ((Integer) fontStyleLookup.get(reqStyle)).intValue();\n } else {\n styleCode = java.awt.Font.PLAIN;\n }\n \n String reqWeight = (String) fonts[k].getFontWeight().getValue(feature);\n \n if (reqWeight.equalsIgnoreCase(\"Bold\")) {\n styleCode = styleCode | java.awt.Font.BOLD;\n }\n \n size = ((Number) fonts[k].getFontSize().getValue(feature)).intValue();\n \n return javaFont.deriveFont(styleCode, size);\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"not already loaded\");\n }\n \n if (fontFamilies.contains(requestedFont)) {\n String reqStyle = (String) fonts[k].getFontStyle().getValue(feature);\n \n if (fontStyleLookup.containsKey(reqStyle)) {\n styleCode = ((Integer) fontStyleLookup.get(reqStyle)).intValue();\n } else {\n styleCode = java.awt.Font.PLAIN;\n }\n \n String reqWeight = (String) fonts[k].getFontWeight().getValue(feature);\n \n if (reqWeight.equalsIgnoreCase(\"Bold\")) {\n styleCode = styleCode | java.awt.Font.BOLD;\n }\n \n size = ((Number) fonts[k].getFontSize().getValue(feature)).intValue();\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"requesting \" + requestedFont + \" \" + styleCode + \" \" + size);\n }\n \n javaFont = new java.awt.Font(requestedFont, styleCode, size);\n loadedFonts.put(requestedFont, javaFont);\n \n return javaFont;\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"not a system font\");\n }\n \n // may be its a file or url\n InputStream is = null;\n \n if (requestedFont.startsWith(\"http\") || requestedFont.startsWith(\"file:\")) {\n try {\n URL url = new URL(requestedFont);\n is = url.openStream();\n } catch (MalformedURLException mue) {\n // this may be ok - but we should mention it\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Bad url in java2drenderer\" + requestedFont + \"\\n\" + mue);\n }\n } catch (IOException ioe) {\n // we'll ignore this for the moment\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"IO error in java2drenderer \" + requestedFont + \"\\n\" + ioe);\n }\n }\n } else {\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"not a URL\");\n }\n \n File file = new File(requestedFont);\n \n //if(file.canRead()){\n try {\n is = new FileInputStream(file);\n } catch (FileNotFoundException fne) {\n // this may be ok - but we should mention it\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Bad file name in java2drenderer\" + requestedFont + \"\\n\" + fne);\n }\n }\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"about to load\");\n }\n \n if (is == null) {\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"null input stream\");\n }\n \n continue;\n }\n \n try {\n javaFont = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, is);\n } catch (FontFormatException ffe) {\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"Font format error in java2drender \" + requestedFont + \"\\n\" + ffe);\n }\n \n continue;\n } catch (IOException ioe) {\n // we'll ignore this for the moment\n if (LOGGER.isLoggable(Level.INFO)) {\n LOGGER.info(\"IO error in java2drenderer \" + requestedFont + \"\\n\" + ioe);\n }\n \n continue;\n }\n \n loadedFonts.put(requestedFont, javaFont);\n \n return javaFont;\n }\n \n return null;\n }", "static Font getFont(int style, int size) {\n\t\treturn new Font(\"Monospaced\", style, size);\n\t}", "FontMapperImpl() {\n/* 55 */ this.substitutes.put(\"Courier\", \n/* 56 */ Arrays.asList(new String[] { \"CourierNew\", \"CourierNewPSMT\", \"LiberationMono\", \"NimbusMonL-Regu\" }));\n/* 57 */ this.substitutes.put(\"Courier-Bold\", \n/* 58 */ Arrays.asList(new String[] { \"CourierNewPS-BoldMT\", \"CourierNew-Bold\", \"LiberationMono-Bold\", \"NimbusMonL-Bold\" }));\n/* */ \n/* 60 */ this.substitutes.put(\"Courier-Oblique\", \n/* 61 */ Arrays.asList(new String[] { \"CourierNewPS-ItalicMT\", \"CourierNew-Italic\", \"LiberationMono-Italic\", \"NimbusMonL-ReguObli\" }));\n/* */ \n/* 63 */ this.substitutes.put(\"Courier-BoldOblique\", \n/* 64 */ Arrays.asList(new String[] { \"CourierNewPS-BoldItalicMT\", \"CourierNew-BoldItalic\", \"LiberationMono-BoldItalic\", \"NimbusMonL-BoldObli\" }));\n/* */ \n/* 66 */ this.substitutes.put(\"Helvetica\", \n/* 67 */ Arrays.asList(new String[] { \"ArialMT\", \"Arial\", \"LiberationSans\", \"NimbusSanL-Regu\" }));\n/* 68 */ this.substitutes.put(\"Helvetica-Bold\", \n/* 69 */ Arrays.asList(new String[] { \"Arial-BoldMT\", \"Arial-Bold\", \"LiberationSans-Bold\", \"NimbusSanL-Bold\" }));\n/* */ \n/* 71 */ this.substitutes.put(\"Helvetica-Oblique\", \n/* 72 */ Arrays.asList(new String[] { \"Arial-ItalicMT\", \"Arial-Italic\", \"Helvetica-Italic\", \"LiberationSans-Italic\", \"NimbusSanL-ReguItal\" }));\n/* */ \n/* 74 */ this.substitutes.put(\"Helvetica-BoldOblique\", \n/* 75 */ Arrays.asList(new String[] { \"Arial-BoldItalicMT\", \"Helvetica-BoldItalic\", \"LiberationSans-BoldItalic\", \"NimbusSanL-BoldItal\" }));\n/* */ \n/* 77 */ this.substitutes.put(\"Times-Roman\", \n/* 78 */ Arrays.asList(new String[] { \"TimesNewRomanPSMT\", \"TimesNewRoman\", \"TimesNewRomanPS\", \"LiberationSerif\", \"NimbusRomNo9L-Regu\" }));\n/* */ \n/* 80 */ this.substitutes.put(\"Times-Bold\", \n/* 81 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldMT\", \"TimesNewRomanPS-Bold\", \"TimesNewRoman-Bold\", \"LiberationSerif-Bold\", \"NimbusRomNo9L-Medi\" }));\n/* */ \n/* */ \n/* 84 */ this.substitutes.put(\"Times-Italic\", \n/* 85 */ Arrays.asList(new String[] { \"TimesNewRomanPS-ItalicMT\", \"TimesNewRomanPS-Italic\", \"TimesNewRoman-Italic\", \"LiberationSerif-Italic\", \"NimbusRomNo9L-ReguItal\" }));\n/* */ \n/* */ \n/* 88 */ this.substitutes.put(\"Times-BoldItalic\", \n/* 89 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldItalicMT\", \"TimesNewRomanPS-BoldItalic\", \"TimesNewRoman-BoldItalic\", \"LiberationSerif-BoldItalic\", \"NimbusRomNo9L-MediItal\" }));\n/* */ \n/* */ \n/* 92 */ this.substitutes.put(\"Symbol\", Arrays.asList(new String[] { \"Symbol\", \"SymbolMT\", \"StandardSymL\" }));\n/* 93 */ this.substitutes.put(\"ZapfDingbats\", Arrays.asList(new String[] { \"ZapfDingbatsITC\", \"Dingbats\", \"MS-Gothic\" }));\n/* */ \n/* */ \n/* */ \n/* 97 */ for (String baseName : Standard14Fonts.getNames()) {\n/* */ \n/* 99 */ if (!this.substitutes.containsKey(baseName)) {\n/* */ \n/* 101 */ String mappedName = Standard14Fonts.getMappedFontName(baseName);\n/* 102 */ this.substitutes.put(baseName, copySubstitutes(mappedName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 110 */ String ttfName = \"/org/apache/pdfbox/resources/ttf/LiberationSans-Regular.ttf\";\n/* 111 */ InputStream ttfStream = FontMapper.class.getResourceAsStream(ttfName);\n/* 112 */ if (ttfStream == null)\n/* */ {\n/* 114 */ throw new IOException(\"Error loading resource: \" + ttfName);\n/* */ }\n/* 116 */ TTFParser ttfParser = new TTFParser();\n/* 117 */ this.lastResortFont = ttfParser.parse(ttfStream);\n/* */ }\n/* 119 */ catch (IOException e) {\n/* */ \n/* 121 */ throw new RuntimeException(e);\n/* */ } \n/* */ }", "private String getFallbackFontName(PDFontDescriptor fontDescriptor) {\n/* */ String fontName;\n/* 235 */ if (fontDescriptor != null) {\n/* */ \n/* */ \n/* 238 */ boolean isBold = false;\n/* 239 */ String name = fontDescriptor.getFontName();\n/* 240 */ if (name != null) {\n/* */ \n/* 242 */ String lower = fontDescriptor.getFontName().toLowerCase();\n/* */ \n/* */ \n/* 245 */ isBold = (lower.contains(\"bold\") || lower.contains(\"black\") || lower.contains(\"heavy\"));\n/* */ } \n/* */ \n/* */ \n/* 249 */ if (fontDescriptor.isFixedPitch()) {\n/* */ \n/* 251 */ fontName = \"Courier\";\n/* 252 */ if (isBold && fontDescriptor.isItalic())\n/* */ {\n/* 254 */ fontName = fontName + \"-BoldOblique\";\n/* */ }\n/* 256 */ else if (isBold)\n/* */ {\n/* 258 */ fontName = fontName + \"-Bold\";\n/* */ }\n/* 260 */ else if (fontDescriptor.isItalic())\n/* */ {\n/* 262 */ fontName = fontName + \"-Oblique\";\n/* */ }\n/* */ \n/* 265 */ } else if (fontDescriptor.isSerif()) {\n/* */ \n/* 267 */ fontName = \"Times\";\n/* 268 */ if (isBold && fontDescriptor.isItalic())\n/* */ {\n/* 270 */ fontName = fontName + \"-BoldItalic\";\n/* */ }\n/* 272 */ else if (isBold)\n/* */ {\n/* 274 */ fontName = fontName + \"-Bold\";\n/* */ }\n/* 276 */ else if (fontDescriptor.isItalic())\n/* */ {\n/* 278 */ fontName = fontName + \"-Italic\";\n/* */ }\n/* */ else\n/* */ {\n/* 282 */ fontName = fontName + \"-Roman\";\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 287 */ fontName = \"Helvetica\";\n/* 288 */ if (isBold && fontDescriptor.isItalic())\n/* */ {\n/* 290 */ fontName = fontName + \"-BoldOblique\";\n/* */ }\n/* 292 */ else if (isBold)\n/* */ {\n/* 294 */ fontName = fontName + \"-Bold\";\n/* */ }\n/* 296 */ else if (fontDescriptor.isItalic())\n/* */ {\n/* 298 */ fontName = fontName + \"-Oblique\";\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 305 */ fontName = \"Times-Roman\";\n/* */ } \n/* 307 */ return fontName;\n/* */ }", "public static void setDefaultFont(Font f) {\r\n defaultFont = f;\r\n }", "public static BitmapFont getDefault() {\r\n\t\treturn defaultFont;\r\n\t}", "private String getFontTag()\n\t{\n\t\treturn \"<\" + getFontName() + \" \" + getFontValue() + \">\";\n\t}", "public String getSoundFont() {\n\t\treturn soundFont;\n\t}", "public Font getFont(\n )\n {return font;}", "public void setMatchFontName(String matchFontName);", "public BitmapFont getFont(int style) {\r\n\t\treturn new BitmapFont(this, style);\r\n\t}", "@Override\n public void setTypeface() {\n mAppNameTxt.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\n CUSTOM_FONTS_ROOT + CUSTOM_FONT_NAME));\n }", "public void setTextFont(Font font);", "public Fuentes () {\n File filearcade = new File (RUTA_ARCADE_FONT);\n File filechess = new File (RUTA_CHESS_FONT);\n File fileinvaders = new File (RUTA_INVADERS_FONT);\n File filesafety = new File (RUTA_SAFETY_FONT);\n\n try {\n setArcadeFont (Font.createFont (Font.TRUETYPE_FONT, filearcade));\n setChessFont (Font.createFont (Font.TRUETYPE_FONT, filechess));\n setInvadersFont (Font.createFont (Font.TRUETYPE_FONT, fileinvaders));\n setSafetyFont (Font.createFont (Font.TRUETYPE_FONT, filesafety));\n\n } catch (FontFormatException | IOException e) {\n e.printStackTrace ();\n }\n }", "public void setFont(Font f) {\n font = f;\n compute();\n }", "@Test\n public void Test_Output_Font() throws Exception {\n String actual_value = \"\";\n String expected_value = \"1 0 obj \\n<< \\n/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] \\n\";\n expected_value += \"/Font \\n<< \\n/F2 \\n<< \\n/Type /Font \\n/BaseFont /Helvetica \\n/SubType /Type1 \\n\";\n expected_value += \">> \\n>> \\n>> \\n\";\n\n PdfResource resrc = new PdfResource();\n resrc.addFont(new PdfFont(PdfFont.HELVETICA, false, false));\n actual_value = new String(resrc.dumpInfo());\n \n assertThat(actual_value, equalTo(expected_value));\n }", "public Font setFontStyle(String font){\n\t\treturn new Font(font, Font.BOLD, 1);\r\n\t}", "public interface PocketWordConstants {\n /** File extension for Pocket Word files. */\n public static final String FILE_EXTENSION = \".psw\";\n \n /** Name of the default style. */\n public static final String DEFAULT_STYLE = \"Standard\";\n \n /** Family name for Paragraph styles. */\n public static final String PARAGRAPH_STYLE_FAMILY = \"paragraph\";\n \n /** Family name for Text styles. */\n public static final String TEXT_STYLE_FAMILY = \"text\";\n \n \n /** \n * Generic Pocket Word formatting code. \n *\n * Formatting codes are 0xEz, where z indicates the specific format code.\n */\n public static final byte FORMATTING_TAG = (byte)0xE0;\n \n /** Font specification tag. The two bytes following inidicate which font. */\n public static final byte FONT_TAG = (byte)0xE5;\n \n /** Font size tag. The two bytes following specify font size in points. */\n public static final byte FONT_SIZE_TAG = (byte)0xE6;\n \n /** Colour tag. Two bytes following index a 4-bit colour table. */\n public static final byte COLOUR_TAG = (byte)0xE7;\n \n /** Font weight tag. Two bytes following indicate weighting of font. */\n public static final byte FONT_WEIGHT_TAG = (byte)0xE8;\n \n /** Normal font weight value. */\n public static final byte FONT_WEIGHT_NORMAL = (byte)0x04;\n \n /** Fine font weight value. */\n public static final byte FONT_WEIGHT_FINE = (byte)0x01;\n \n /** Bold font weight value. */\n public static final byte FONT_WEIGHT_BOLD = (byte)0x07;\n \n /** Thick font weight value. */\n public static final byte FONT_WEIGHT_THICK = (byte)0x09;\n\n /** Italic tag. Single byte following indicates whether italic is on. */\n public static final byte ITALIC_TAG = (byte)0xE9;\n \n /** Underline tag. Single byte following indicates whether underline is on. */\n public static final byte UNDERLINE_TAG = (byte)0xEA;\n \n /** Strikethrough tag. Single byte following indicates whether strikethrough is on. */\n public static final byte STRIKETHROUGH_TAG = (byte)0XEB;\n \n /** Highlighting tag. Single byte following indicates whether highlighting is on. */\n public static final byte HIGHLIGHT_TAG = (byte)0xEC;\n \n}", "public RenderFontProcessing(PApplet app, PGraphics canvas, String filename) {\n\t\t\n\t\tthis.canvas = canvas;\n\t\tif (fileExists(filename)) {\n\t\t\tif ((filename.substring(filename.length() - 3)).equals(\"vlw\")) {\t\t\t\t\n\t\t\t\tthis.font = app.loadFont(filename);\n\t\t\t} else {\n\t\t\t\tSystem.err.println(filename + \" is an invalid filetype, only Processing VLW fonts are accepted.\");\n\t\t\t}\n\t\t} else {\t\t\t\n\t\t\tSystem.err.println(\"File \" + filename + \" not found.\");\n\t\t}\n\t}", "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 void setFont(Font newFont) {\n\tfont = newFont;\n }", "public BitmapFont loadBitmapFont(String fileFont, String fileImage, boolean flip);", "public static void setFont(Font font){\n\t\tGComponent.fGlobalFont = font;\n\t}", "public static Font getFont(String nm) {\n\treturn getFont(nm, null);\n }", "public void changeFonts(){\n Typeface typeFace = Typeface.createFromAsset (this.getAssets (), \"fonts/courier.ttf\");\n sloganTV.setTypeface (typeFace);\n }", "public void init() {\n\n /**\n * FontFile1 = A stream containing a Type 1 font program\n * FontFile2 = A stream containing a TrueType font program\n * FontFile3 = A stream containing a font program other than Type 1 or\n * TrueType. The format of the font program is specified by the Subtype entry\n * in the stream dictionary\n */\n try {\n\n // get an instance of our font factory\n FontFactory fontFactory = FontFactory.getInstance();\n\n if (entries.containsKey(FONT_FILE)) {\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE);\n if (fontStream != null) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TYPE_1);\n }\n }\n\n if (entries.containsKey(FONT_FILE_2)) {\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE_2);\n if (fontStream != null) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TRUE_TYPE);\n }\n }\n\n if (entries.containsKey(FONT_FILE_3)) {\n\n Stream fontStream = (Stream) library.getObject(entries, FONT_FILE_3);\n String subType = fontStream.getObject(\"Subtype\").toString();\n if (subType != null &&\n (subType.equals(FONT_FILE_3_TYPE_1C) ||\n subType.equals(FONT_FILE_3_CID_FONT_TYPE_0) ||\n subType.equals(FONT_FILE_3_CID_FONT_TYPE_0C))\n ) {\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_TYPE_1);\n }\n if (subType != null && subType.equals(FONT_FILE_3_OPEN_TYPE)) {\n// font = new NFontOpenType(fontStreamBytes);\n font = fontFactory.createFontFile(\n fontStream, FontFactory.FONT_OPEN_TYPE);\n }\n }\n }\n // catch everything, we can fall back to font substitution if a failure\n // occurs. \n catch (Throwable e) {\n logger.log(Level.FINE, \"Error Reading Embedded Font \", e);\n }\n\n }", "public WritingFont() {\n\t\tproperties.set(NAME, \"Untitled\");\n\t\tproperties.set(MEDIAN, .6f);\n\t\tproperties.set(DESCENT, .3f);\n\t\tproperties.set(LEADING, .1f);\n\t}", "public interface Constants {\n\n /**\n * 资源路径\n */\n String CONTENT_RESOURCES_PATH = \"content\";\n\n /**\n * 名师头像地址\n */\n String TEACHER_HEADE_IMG_PATH = \"teacher\";\n\n /**\n * 证书保存地址\n */\n String CERTIFICATE_IMG_PATH = \"certificate\";\n\n\n /**\n * 舞谱上传地址目录\n */\n String DANCE_BOOK_PATH = \"dance_book\";\n}", "public void assertCustomFonts()\n {\n Style root = getStyle(\"base\");\n assertFonts(root);\n }", "public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}", "public RMFont getFont()\n {\n return getStyle().getFont();\n }", "public String getFont()\n {\n return (String) getStateHelper().eval(PropertyKeys.font, null);\n }", "private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}", "public boolean isFontSet() { return false; }", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n\n super.onCreate(savedInstanceState);\n\n\n mTfRegular = Typeface.createFromAsset(getAssets(), \"OpenSans-Regular.ttf\");\n mTfLight = Typeface.createFromAsset(getAssets(), \"OpenSans-Light.ttf\");\n\n\n }", "public interface LibraryConstant {\n\n public interface LanguageConstant {\n\n public static String JAVA=\"JAVA\";\n public static String C=\"C\";\n public static String CPP=\"C++\";\n }\n\n public interface StyleConstant {\n\n //pre-defined Styles\n\n public static final String NORMAL=\"NORMAL\";\n public static final String BOLD=\"BOLD\";\n public static final String ITALIC=\"ITALIC\";\n public static final String UNDERLINE=\"UNDERLINE\";\n public static final String SUPERSCRIPT=\"SUPERSCRIPT\";\n public static final String SUBSCRIPT=\"SUBSCRIPT\";\n\n\n }\n}", "public void setFont(int fontId){\n this.fontId = fontId;\n }", "public void setLabelFont(Font value) {\n labelFont = value;\n }", "public String getFontName()\n {\n return font.getFontName();\n }", "public void init( )\n {\n metFont = new HersheyFont( getDocumentBase(), getParameter(\"font\"));\n }", "public static Font getDefaultFont() {\r\n return defaultFont;\r\n }", "private FontData() {\n }", "public void initializeText(){\n\t\tfont = new BitmapFont();\n\t\tfont1 = new BitmapFont();\n\t\tfont1.setColor(Color.BLUE);\n\t\tfont2 = new BitmapFont();\n\t\tfont2.setColor(Color.BLACK);\n\t}", "public Font GetFont(String name) { return FontList.get(name); }", "Font getBoldFont(Font font) {\n\tif (this.boldFont == null) {\n\t\tFontData[] fontData = (font==null ? JFaceResources.getDefaultFont() : font).getFontData();\n\t\tFontData boldFontData = new FontData(fontData[0].getName(), fontData[0].getHeight(), SWT.BOLD);\n\t\tthis.boldFont = new Font(this.display, boldFontData);\n\t}\n\treturn this.boldFont;\n}", "public interface TextConstant {\n String INPUT_INFO_DATA = \"input.string.data\";\n String INPUT_LAST_NAME=\"input.last.name.date\";\n String INPUT_FIRST_NAME = \"input.first.name.data\";\n String WRONG_INPUT_DATA = \"input.wrong.data\";\n String INPUT_LOGIN_DATA = \"input.login.data\";\n}", "FontMatch(FontInfo info) {\n/* 704 */ this.info = info;\n/* */ }", "protected String createFontReference(Font font)\n {\n String fontName = font.getName();\n\n StringBuffer psFontName = new StringBuffer();\n for (int i = 0; i < fontName.length(); i++)\n {\n char c = fontName.charAt(i);\n if (!Character.isWhitespace(c))\n {\n psFontName.append(c);\n }\n }\n\n boolean hyphen = false;\n if (font.isBold())\n {\n hyphen = true;\n psFontName.append(\"-Bold\");\n }\n if (font.isItalic())\n {\n psFontName.append((hyphen ? \"\" : \"-\") + \"Italic\");\n }\n\n fontName = psFontName.toString();\n fontName = psFontNames.getProperty(fontName, fontName);\n return fontName;\n }", "public abstract interface SummaryConstants\n{\n public static final Font FONT = new Font(\"Verdana\", 1, 12);\n public static final Color BACKGROUND_COLOR = new Color(205, 220, 242);\n public static final Color FOREGROUND_COLOR = new Color(6, 22, 157);\n}", "@Test\n public final void test45338() throws IOException {\n Workbook wb = _testDataProvider.createWorkbook();\n int num0 = wb.getNumberOfFonts();\n\n Sheet s = wb.createSheet();\n s.createRow(0);\n s.createRow(1);\n s.getRow(0).createCell(0);\n s.getRow(1).createCell(0);\n\n //default font\n Font f1 = wb.getFontAt((short)0);\n assertFalse(f1.getBold());\n\n // Check that asking for the same font\n // multiple times gives you the same thing.\n // Otherwise, our tests wouldn't work!\n assertSame(wb.getFontAt((short)0), wb.getFontAt((short)0));\n\n // Look for a new font we have\n // yet to add\n assertNull(\n wb.findFont(\n true, (short)123, (short)(22*20),\n \"Thingy\", false, true, (short)2, (byte)2\n )\n );\n\n Font nf = wb.createFont();\n short nfIdx = nf.getIndex();\n assertEquals(num0 + 1, wb.getNumberOfFonts());\n\n assertSame(nf, wb.getFontAt(nfIdx));\n\n nf.setBold(true);\n nf.setColor((short)123);\n nf.setFontHeightInPoints((short)22);\n nf.setFontName(\"Thingy\");\n nf.setItalic(false);\n nf.setStrikeout(true);\n nf.setTypeOffset((short)2);\n nf.setUnderline((byte)2);\n\n assertEquals(num0 + 1, wb.getNumberOfFonts());\n assertEquals(nf, wb.getFontAt(nfIdx));\n\n assertEquals(wb.getFontAt(nfIdx), wb.getFontAt(nfIdx));\n assertTrue(wb.getFontAt((short)0) != wb.getFontAt(nfIdx));\n\n // Find it now\n assertNotNull(\n wb.findFont(\n true, (short)123, (short)(22*20),\n \"Thingy\", false, true, (short)2, (byte)2\n )\n );\n assertSame(nf,\n wb.findFont(\n true, (short)123, (short)(22*20),\n \"Thingy\", false, true, (short)2, (byte)2\n )\n );\n wb.close();\n }", "public FontUIResource getControlTextFont() { return fControlFont;}", "public interface constants {\n String BREAK1=\"α\";\n String BREAK2=\"Σ\";\n String BREAK3=\"æ\";\n}" ]
[ "0.6787669", "0.65689504", "0.6494331", "0.64023304", "0.63499415", "0.632702", "0.6259601", "0.6247883", "0.62477124", "0.6245618", "0.61436206", "0.61207205", "0.6077395", "0.6077395", "0.6077395", "0.602686", "0.5979108", "0.5969584", "0.5966961", "0.59623253", "0.5925641", "0.5917704", "0.59081256", "0.5868089", "0.5817267", "0.5795361", "0.5775636", "0.57476324", "0.57378787", "0.57376194", "0.5733687", "0.57224846", "0.5722299", "0.5714342", "0.5710722", "0.5703247", "0.56979173", "0.5667161", "0.5645562", "0.5624685", "0.5610316", "0.5606868", "0.5601752", "0.557625", "0.5549046", "0.55428404", "0.552614", "0.5518929", "0.5511363", "0.5507906", "0.55033374", "0.5495829", "0.5480743", "0.5461357", "0.54525506", "0.54518527", "0.54427814", "0.5423307", "0.5421928", "0.5417892", "0.54164594", "0.54149866", "0.5404017", "0.53910637", "0.53874993", "0.5380077", "0.5368289", "0.5357693", "0.5356988", "0.53568655", "0.5352015", "0.5347494", "0.5346753", "0.53373295", "0.5336854", "0.5334481", "0.53134316", "0.5311833", "0.5309217", "0.529627", "0.52961504", "0.5295707", "0.5290224", "0.5287631", "0.5285201", "0.5282423", "0.5275522", "0.52751285", "0.5268433", "0.5268103", "0.5267292", "0.5260371", "0.525824", "0.5255512", "0.5250121", "0.52439904", "0.5240983", "0.52396905", "0.52218115", "0.5211415", "0.52107596" ]
0.0
-1
Get rounded corner Bitmap depending upon the roundPx value
public static Bitmap getRoundedCornerBitmap(final Bitmap bitmap, final float roundPx) { if (bitmap != null) { try { final Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(output); final Paint paint = new Paint(); final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); final RectF rectF = new RectF(rect); paint.setAntiAlias(true); canvas.drawARGB(0, 0, 0, 0); canvas.drawRoundRect(rectF, roundPx, roundPx, paint); paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); canvas.drawBitmap(bitmap, rect, rect, paint); return output; } catch (OutOfMemoryError e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } } return bitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Bitmap getRoundedCornerBitmap(final Bitmap bitmap,\n\t\t\tfinal float roundPx) {\n\n\t\tif (bitmap != null) {\n\t\t\ttry {\n\t\t\t\tfinal Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),\n\t\t\t\t\t\tbitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\t\t\t\tCanvas canvas = new Canvas(output);\n\n\t\t\t\tfinal Paint paint = new Paint();\n\t\t\t\tfinal Rect rect = new Rect(0, 0, bitmap.getWidth(),\n\t\t\t\t\t\tbitmap.getHeight());\n\t\t\t\tfinal RectF rectF = new RectF(rect);\n\n\t\t\t\tpaint.setAntiAlias(true);\n\t\t\t\tcanvas.drawARGB(0, 0, 0, 0);\n\t\t\t\tcanvas.drawRoundRect(rectF, roundPx, roundPx, paint);\n\n\t\t\t\tpaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n\t\t\t\tcanvas.drawBitmap(bitmap, rect, rect, paint);\n\n\t\t\t\treturn output;\n\n\t\t\t} catch (OutOfMemoryError e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn bitmap;\n\t}", "public Bitmap roundImage(Bitmap bm){\n\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\n Bitmap bitmap = bm;\n\n Bitmap bitmapRounded = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());\n Canvas canvas = new Canvas(bitmapRounded);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setShader(new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));\n canvas.drawRoundRect((new RectF(0.0f, 0.0f, bitmap.getWidth(), bitmap.getHeight())), 80, 80, paint);\n\n return bitmapRounded;\n }", "public static RoundedBitmapDrawable getRoundedBitmap(Resources res, byte[] imgInBytes) {\n Bitmap srcBitmap = BitmapFactory.decodeByteArray(imgInBytes, 0, imgInBytes.length);\n return getRoundedBitmap(res, srcBitmap);\n }", "public Bitmap roundBitmap(Bitmap inBitmap) {\n\n Bitmap bitmap = Bitmap.createScaledBitmap(inBitmap, 200, 200, false);\n\n Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\n Canvas canvas = new Canvas(output);\n\n final Paint painter = new Paint();\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n canvas.drawCircle(bitmap.getWidth() / 2, bitmap.getHeight() / 2, bitmap.getWidth() / 2, painter);\n painter.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rect, rect, painter);\n\n return output;\n }", "public static RoundedBitmapDrawable getRoundedBitmap(Resources res, Bitmap srcBitmap) {\n RoundedBitmapDrawable bitmapDrawable = RoundedBitmapDrawableFactory.create(res, srcBitmap);\n\n int radius = Math.min(srcBitmap.getWidth(), srcBitmap.getHeight());\n bitmapDrawable.setCornerRadius(radius);\n bitmapDrawable.setAntiAlias(true);\n\n return bitmapDrawable;\n }", "public Bitmap getRoundedShape(Bitmap scaleBitmapImage) {\n int targetWidth = 200;\n int targetHeight = 200;\n Bitmap targetBitmap = Bitmap.createBitmap(targetWidth,\n targetHeight,Bitmap.Config.ARGB_8888);\n\n Canvas canvas = new Canvas(targetBitmap);\n Path path = new Path();\n path.addCircle(((float) targetWidth - 1) / 2,\n ((float) targetHeight - 1) / 2,\n (Math.min(((float) targetWidth),\n ((float) targetHeight)) / 2),\n Path.Direction.CCW);\n\n canvas.clipPath(path);\n Bitmap sourceBitmap = scaleBitmapImage;\n canvas.drawBitmap(sourceBitmap,\n new Rect(0, 0, sourceBitmap.getWidth(),\n sourceBitmap.getHeight()),\n new Rect(0, 0, targetWidth, targetHeight), null);\n return targetBitmap;\n }", "public static RoundedBitmapDrawable getRoundedBitmap(Resources res, int drawableId) {\n try {\n Bitmap srcBitmap = BitmapFactory.decodeResource(res, drawableId);\n return getRoundedBitmap(res, srcBitmap);\n } catch (Exception e) {\n return null;\n }\n\n }", "public Bitmap roundImage(Bitmap bitmap, int pixels) {\n\t \t\t\t\n\t\t\tBitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\t Canvas canvas = new Canvas(output);\n\n\t final int color = 0xff424242;\n\t final Paint paint = new Paint();\n\t final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\t final RectF rectF = new RectF(rect);\n\t final float roundPx = pixels;\n\n\t paint.setAntiAlias(true);\n\t canvas.drawARGB(0, 0, 0, 0);\n\t paint.setColor(color);\n\t canvas.drawRoundRect(rectF, roundPx, roundPx, paint);\n\n\t \n\t paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n\t canvas.drawBitmap(bitmap, rect, rect, paint);\n\n\t return output;\n\t }", "abstract BufferedImage getBackround();", "public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);", "public static Drawable getRoundedShape(Resources resources, Bitmap scaleBitmapImage) {\n final int shadowSize = resources.getDimensionPixelSize(R.dimen.shadow_size);\n final int shadowColor = resources.getColor(R.color.background_color);\n\n int targetWidth = scaleBitmapImage.getWidth();\n int targetHeight = scaleBitmapImage.getHeight();\n Bitmap targetBitmap =\n Bitmap.createBitmap(targetWidth, targetHeight, Bitmap.Config.ARGB_8888);\n\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setDither(true);\n Paint shadowPaint = new Paint(paint);\n RectF rectF = new RectF(0, 0, targetWidth, targetHeight);\n\n Canvas canvas = new Canvas(targetBitmap);\n\n final BitmapShader shader =\n new BitmapShader(scaleBitmapImage, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);\n paint.setShader(shader);\n\n // Only apply shadow if the icon is large enough.\n if (scaleBitmapImage.getWidth() >\n resources.getDimensionPixelSize(R.dimen.notification_icon_size)) {\n rectF.inset(shadowSize, shadowSize);\n shadowPaint.setShadowLayer(shadowSize, 0f, 0f, shadowColor);\n shadowPaint.setColor(Color.BLACK);\n canvas.drawOval(rectF, shadowPaint);\n }\n\n canvas.drawOval(rectF, paint);\n\n return new BitmapDrawable(resources, targetBitmap);\n }", "public IconBuilder round() {\n\t\tthis.shape = IconShape.ROUND;\n\t\treturn this;\n\t}", "@Override\n protected float getCurrentBottomCornerRadius() {\n return getCurrentTopCornerRadius();\n }", "public static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) {\n\t int w = image.getWidth();\n\t int h = image.getHeight();\n\t BufferedImage output = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\n\t Graphics2D g2 = output.createGraphics();\n\t g2.setComposite(AlphaComposite.Src);\n\t g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t g2.fill(new RoundRectangle2D.Float(0, 0, w, h, cornerRadius, cornerRadius));\n\t g2.setComposite(AlphaComposite.SrcIn);\n\t g2.drawImage(image, 0, 0, null);\n\t g2.dispose();\n\n\t return output;\n\t}", "public void fillRoundRectangle(int x, int y, int width, int height, int radius);", "WorldImage drawPiece(GamePiece power, int radius) {\n WorldImage result = SQUARE;\n WorldImage par = new RectangleImage(GAMEPIECE_SIZE / 2 + 2, GAMEPIECE_SIZE / 10,\n OutlineMode.SOLID, this.chooseColor(power, radius));\n WorldImage perp = new RectangleImage(GAMEPIECE_SIZE / 10, GAMEPIECE_SIZE / 2 + 2,\n OutlineMode.SOLID, this.chooseColor(power, radius));\n if (this.left) {\n result = new OverlayOffsetAlign(AlignModeX.LEFT, AlignModeY.MIDDLE, par, 0, 0, result);\n }\n if (this.right) {\n result = new OverlayOffsetAlign(AlignModeX.RIGHT, AlignModeY.MIDDLE, par, 0, 0, result);\n }\n if (this.up) {\n result = new OverlayOffsetAlign(AlignModeX.CENTER, AlignModeY.TOP, perp, 0, 0, result);\n }\n if (this.down) {\n result = new OverlayOffsetAlign(AlignModeX.CENTER, AlignModeY.BOTTOM, perp, 0, 0, result);\n }\n if (this.powerStation) {\n result = new OverlayImage(POWER_STATION, result);\n }\n return result;\n }", "private android.graphics.Bitmap getMaskBitmap() {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.f5066b;\n if (r1 == 0) goto L_0x0009;\n L_0x0006:\n r1 = r0.f5066b;\n return r1;\n L_0x0009:\n r1 = r0.f5069f;\n r2 = r20.getWidth();\n r1 = r1.m6537a(r2);\n r2 = r0.f5069f;\n r3 = r20.getHeight();\n r2 = r2.m6539b(r3);\n r3 = m6543a(r1, r2);\n r0.f5066b = r3;\n r4 = new android.graphics.Canvas;\n r3 = r0.f5066b;\n r4.<init>(r3);\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5049a;\n r5 = r0.f5069f;\n r5 = r5.f5059i;\n r5 = r5.ordinal();\n r3 = r3[r5];\n r5 = 4611686018427387904; // 0x4000000000000000 float:0.0 double:2.0;\n r7 = 2;\n if (r3 == r7) goto L_0x0074;\n L_0x003b:\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5050b;\n r8 = r0.f5069f;\n r8 = r8.f5051a;\n r8 = r8.ordinal();\n r3 = r3[r8];\n r8 = 0;\n switch(r3) {\n case 2: goto L_0x0055;\n case 3: goto L_0x0051;\n case 4: goto L_0x004f;\n default: goto L_0x004b;\n };\n L_0x004b:\n r9 = r1;\n r3 = 0;\n L_0x004d:\n r10 = 0;\n goto L_0x0058;\n L_0x004f:\n r3 = r2;\n goto L_0x0053;\n L_0x0051:\n r8 = r1;\n r3 = 0;\n L_0x0053:\n r9 = 0;\n goto L_0x004d;\n L_0x0055:\n r10 = r2;\n r3 = 0;\n r9 = 0;\n L_0x0058:\n r19 = new android.graphics.LinearGradient;\n r12 = (float) r8;\n r13 = (float) r3;\n r14 = (float) r9;\n r15 = (float) r10;\n r3 = r0.f5069f;\n r16 = r3.m6538a();\n r3 = r0.f5069f;\n r17 = r3.m6540b();\n r18 = android.graphics.Shader.TileMode.REPEAT;\n r11 = r19;\n r11.<init>(r12, r13, r14, r15, r16, r17, r18);\n r3 = r19;\n goto L_0x009c;\n L_0x0074:\n r3 = r1 / 2;\n r8 = r2 / 2;\n r16 = new android.graphics.RadialGradient;\n r10 = (float) r3;\n r11 = (float) r8;\n r3 = java.lang.Math.max(r1, r2);\n r8 = (double) r3;\n r12 = java.lang.Math.sqrt(r5);\n r8 = r8 / r12;\n r12 = (float) r8;\n r3 = r0.f5069f;\n r13 = r3.m6538a();\n r3 = r0.f5069f;\n r14 = r3.m6540b();\n r15 = android.graphics.Shader.TileMode.REPEAT;\n r9 = r16;\n r9.<init>(r10, r11, r12, r13, r14, r15);\n r3 = r16;\n L_0x009c:\n r8 = r0.f5069f;\n r8 = r8.f5052b;\n r9 = r1 / 2;\n r9 = (float) r9;\n r10 = r2 / 2;\n r10 = (float) r10;\n r4.rotate(r8, r9, r10);\n r9 = new android.graphics.Paint;\n r9.<init>();\n r9.setShader(r3);\n r5 = java.lang.Math.sqrt(r5);\n r3 = java.lang.Math.max(r1, r2);\n r10 = (double) r3;\n r5 = r5 * r10;\n r3 = (int) r5;\n r3 = r3 / r7;\n r5 = -r3;\n r6 = (float) r5;\n r1 = r1 + r3;\n r7 = (float) r1;\n r2 = r2 + r3;\n r8 = (float) r2;\n r5 = r6;\n r4.drawRect(r5, r6, r7, r8, r9);\n r1 = r0.f5066b;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.getMaskBitmap():android.graphics.Bitmap\");\n }", "public Bitmap getShapesImage();", "public static Bitmap fastBlur(Bitmap sentBitmap, float scale, int radius) {\n int width = Math.round(sentBitmap.getWidth() * scale);\n int height = Math.round(sentBitmap.getHeight() * scale);\n sentBitmap = Bitmap.createScaledBitmap(sentBitmap, width, height, false);\n\n Bitmap bitmap = sentBitmap.copy(sentBitmap.getConfig(), true);\n\n if (radius < 1) {\n return (null);\n }\n\n int w = bitmap.getWidth();\n int h = bitmap.getHeight();\n\n int[] pix = new int[w * h];\n Log.e(\"pix\", w + \" \" + h + \" \" + pix.length);\n bitmap.getPixels(pix, 0, w, 0, 0, w, h);\n\n int wm = w - 1;\n int hm = h - 1;\n int wh = w * h;\n int div = radius + radius + 1;\n\n int r[] = new int[wh];\n int g[] = new int[wh];\n int b[] = new int[wh];\n int rsum, gsum, bsum, x, y, i, p, yp, yi, yw;\n int vmin[] = new int[Math.max(w, h)];\n\n int divsum = (div + 1) >> 1;\n divsum *= divsum;\n int dv[] = new int[256 * divsum];\n for (i = 0; i < 256 * divsum; i++) {\n dv[i] = (i / divsum);\n }\n\n yw = yi = 0;\n\n int[][] stack = new int[div][3];\n int stackpointer;\n int stackstart;\n int[] sir;\n int rbs;\n int r1 = radius + 1;\n int routsum, goutsum, boutsum;\n int rinsum, ginsum, binsum;\n\n for (y = 0; y < h; y++) {\n rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;\n for (i = -radius; i <= radius; i++) {\n p = pix[yi + Math.min(wm, Math.max(i, 0))];\n sir = stack[i + radius];\n sir[0] = (p & 0xff0000) >> 16;\n sir[1] = (p & 0x00ff00) >> 8;\n sir[2] = (p & 0x0000ff);\n rbs = r1 - Math.abs(i);\n rsum += sir[0] * rbs;\n gsum += sir[1] * rbs;\n bsum += sir[2] * rbs;\n if (i > 0) {\n rinsum += sir[0];\n ginsum += sir[1];\n binsum += sir[2];\n } else {\n routsum += sir[0];\n goutsum += sir[1];\n boutsum += sir[2];\n }\n }\n stackpointer = radius;\n\n for (x = 0; x < w; x++) {\n\n r[yi] = dv[rsum];\n g[yi] = dv[gsum];\n b[yi] = dv[bsum];\n\n rsum -= routsum;\n gsum -= goutsum;\n bsum -= boutsum;\n\n stackstart = stackpointer - radius + div;\n sir = stack[stackstart % div];\n\n routsum -= sir[0];\n goutsum -= sir[1];\n boutsum -= sir[2];\n\n if (y == 0) {\n vmin[x] = Math.min(x + radius + 1, wm);\n }\n p = pix[yw + vmin[x]];\n\n sir[0] = (p & 0xff0000) >> 16;\n sir[1] = (p & 0x00ff00) >> 8;\n sir[2] = (p & 0x0000ff);\n\n rinsum += sir[0];\n ginsum += sir[1];\n binsum += sir[2];\n\n rsum += rinsum;\n gsum += ginsum;\n bsum += binsum;\n\n stackpointer = (stackpointer + 1) % div;\n sir = stack[(stackpointer) % div];\n\n routsum += sir[0];\n goutsum += sir[1];\n boutsum += sir[2];\n\n rinsum -= sir[0];\n ginsum -= sir[1];\n binsum -= sir[2];\n\n yi++;\n }\n yw += w;\n }\n for (x = 0; x < w; x++) {\n rinsum = ginsum = binsum = routsum = goutsum = boutsum = rsum = gsum = bsum = 0;\n yp = -radius * w;\n for (i = -radius; i <= radius; i++) {\n yi = Math.max(0, yp) + x;\n\n sir = stack[i + radius];\n\n sir[0] = r[yi];\n sir[1] = g[yi];\n sir[2] = b[yi];\n\n rbs = r1 - Math.abs(i);\n\n rsum += r[yi] * rbs;\n gsum += g[yi] * rbs;\n bsum += b[yi] * rbs;\n\n if (i > 0) {\n rinsum += sir[0];\n ginsum += sir[1];\n binsum += sir[2];\n } else {\n routsum += sir[0];\n goutsum += sir[1];\n boutsum += sir[2];\n }\n\n if (i < hm) {\n yp += w;\n }\n }\n yi = x;\n stackpointer = radius;\n for (y = 0; y < h; y++) {\n // Preserve alpha channel: ( 0xff000000 & pix[yi] )\n pix[yi] = ( 0xff000000 & pix[yi] ) | ( dv[rsum] << 16 ) | ( dv[gsum] << 8 ) | dv[bsum];\n\n rsum -= routsum;\n gsum -= goutsum;\n bsum -= boutsum;\n\n stackstart = stackpointer - radius + div;\n sir = stack[stackstart % div];\n\n routsum -= sir[0];\n goutsum -= sir[1];\n boutsum -= sir[2];\n\n if (x == 0) {\n vmin[y] = Math.min(y + r1, hm) * w;\n }\n p = x + vmin[y];\n\n sir[0] = r[p];\n sir[1] = g[p];\n sir[2] = b[p];\n\n rinsum += sir[0];\n ginsum += sir[1];\n binsum += sir[2];\n\n rsum += rinsum;\n gsum += ginsum;\n bsum += binsum;\n\n stackpointer = (stackpointer + 1) % div;\n sir = stack[stackpointer];\n\n routsum += sir[0];\n goutsum += sir[1];\n boutsum += sir[2];\n\n rinsum -= sir[0];\n ginsum -= sir[1];\n binsum -= sir[2];\n\n yi += w;\n }\n }\n\n Log.e(\"pix\", w + \" \" + h + \" \" + pix.length);\n bitmap.setPixels(pix, 0, w, 0, 0, w, h);\n return (bitmap);\n }", "public IconBuilder roundRect(int radius) {\n\t\tthis.shape = IconShape.ROUNDED;\n\t\tthis.radius = radius;\n\t\treturn this;\n\t}", "public Bitmap getFinalShapesImage();", "public static BufferedImage createImageMaskStroke(BufferedImage img, int width, Pixel start, Pixel end, boolean rounded) {\r\n\r\n BufferedImage mask = Imager.getNewVideoImage();\r\n\r\n Graphics2D g = mask.createGraphics();\r\n\r\n g.setColor(Color.white);\r\n if(rounded)\r\n g.setStroke(new BasicStroke(width, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));\r\n else\r\n g.setStroke(new BasicStroke(width, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL));\r\n g.drawLine(start.col,start.row,end.col,end.row);\r\n\r\n AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_IN);\r\n g.setComposite(ac);\r\n g.drawImage(img, 0, 0, 640, 480, null, null);\r\n g.dispose();\r\n\r\n return mask;\r\n\r\n }", "public int rConst(int round) {\n\n int rci = 0;\n\n if(round == 1) rci = 1;\n else if(round > 1 && rConst(round-1) < 0x80) rci = ((2 * rConst(round-1)));\n else if(round > 1 && rConst(round-1) >= 0x80) rci = (byte)((2 * rConst(round-1)) ^ 0x1b);\n else rci = 0;\n\n return rci;\n }", "public Bitmap saveBitmap(int sampleSize, int radius, int strokeWidth) {\n\r\n try {\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = true; //Chỉ đọc thông tin ảnh, không đọc dữ liwwuj\r\n BitmapFactory.decodeFile(pathImage, options); //Đọc thông tin ảnh\r\n options.inSampleSize = sampleSize; //Scale bitmap xuống 1 lần\r\n options.inJustDecodeBounds = false; //Cho phép đọc dữ liệu ảnh ảnh\r\n Bitmap originalSizeBitmap = BitmapFactory.decodeFile(pathImage, options);\r\n\r\n Bitmap mutableBitmap = originalSizeBitmap.copy(Bitmap.Config.ARGB_8888, true);\r\n RectF originalRect =\r\n new RectF(0, 0, mutableBitmap.getWidth(), mutableBitmap.getHeight());\r\n\r\n originalSizeBitmap.recycle();\r\n originalSizeBitmap = null;\r\n System.gc();\r\n\r\n Canvas canvas = new Canvas(mutableBitmap);\r\n\r\n float[] originXy = getOriginalPoint(originalRect);\r\n circlePaint.setStrokeWidth(strokeWidth);\r\n canvas.drawCircle(originXy[0], originXy[1], radius, circlePaint);\r\n return mutableBitmap;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n Toast.makeText(getContext(), \"can not draw original bitmap\", Toast.LENGTH_SHORT)\r\n .show();\r\n return getBitmapScreenShot();\r\n }\r\n }", "public static void roundPicture(@NotNull ImageView v, @NotNull Context context) {\n Bitmap bitmap = ((BitmapDrawable) v.getDrawable()).getBitmap();\n RoundedBitmapDrawable roundedBitmapDrawable = RoundedBitmapDrawableFactory.create(\n context.getResources(), bitmap);\n roundedBitmapDrawable.setCircular(true);\n roundedBitmapDrawable.setCornerRadius(Math.max(bitmap.getWidth(), bitmap.getHeight()) / 2f);\n v.setImageDrawable(roundedBitmapDrawable);\n }", "public void drawRoundedRect(int x, int y, int width, int height, int roundSize, Color color) {\n implementation.devDrawRoundedRect(x, y, width, height, roundSize, roundSize, color);\n }", "private Drawable rezizedDrawable() {\n Drawable logo = getResources().getDrawable(R.drawable.logo_compact);\n Bitmap mp = ((BitmapDrawable) logo).getBitmap();\n\n return new BitmapDrawable(getResources(), Bitmap.createScaledBitmap(mp, 100, 100, true));\n }", "public PaxosRound getRound(int a_round)\n {\n PaxosRound result = (PaxosRound) m_rounds.get(new Integer(a_round));\n return result;\n }", "private Corners findCorners(ArrayList<MatOfPoint> markers) {\n ArrayList<Point> corners = new ArrayList<>();\n for (MatOfPoint mrk : markers) {\n List<Point> list = mrk.toList();\n mrk.release();\n double sumx = 0, sumy = 0;\n for (Point p : list) {\n sumx += p.x;\n sumy += p.y;\n }\n corners.add(new Point(sumx/list.size(), sumy/list.size()));\n // System.out.println(list.size());\n }\n sortCorners(corners);\n // for (Point p : corners) System.out.println(p.x + \" \" + p.y);\n for (int i = 0; i < corners.size(); i++) {\n corners.get(i).x /= width;\n corners.get(i).y /= height;\n }\n if (corners.size() == 4) {\n return new Corners(corners.get(0), corners.get(1), corners.get(3), corners.get(2));\n }\n return null;\n }", "public void setTopLeftPadding(int roundImgPadding) {\n\t\tthis.mTopLeftPadding = roundImgPadding;\n\t}", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public Image getNine();", "public void strokeRoundRectangle(int x, int y, int width, int height, int radius);", "private double getRadius() {\n\t\treturn Math.min(getWidth(), getHeight()) / 2.0 * RADIUS_MODIFIER;\n\t}", "public Image getSharp();", "public static Bitmap getCroppedBitmap(Bitmap bitmap) {\n Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),\n bitmap.getHeight(), Config.ARGB_8888);\n\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n Canvas canvas = new Canvas(output);\n\n final Paint paint = new Paint();\n paint.setAntiAlias(true);\n\n int halfWidth = bitmap.getWidth() / 2;\n int halfHeight = bitmap.getHeight() / 2;\n\n canvas.drawCircle(halfWidth, halfHeight,\n Math.max(halfWidth, halfHeight), paint);\n paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rect, rect, paint);\n return output;\n }", "public static Bitmap getCircularBitmap(Bitmap bitmap) {\r\n Bitmap output;\r\n\r\n if (bitmap.getWidth() > bitmap.getHeight()) {\r\n output = Bitmap.createBitmap(bitmap.getHeight(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\r\n } else {\r\n output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getWidth(), Bitmap.Config.ARGB_8888);\r\n }\r\n\r\n Canvas canvas = new Canvas(output);\r\n\r\n final int color = 0xff424242;\r\n final Paint paint = new Paint();\r\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\r\n\r\n float r = 0;\r\n\r\n if (bitmap.getWidth() > bitmap.getHeight()) {\r\n r = bitmap.getHeight() / 2;\r\n } else {\r\n r = bitmap.getWidth() / 2;\r\n }\r\n\r\n paint.setAntiAlias(true);\r\n canvas.drawARGB(0, 0, 0, 0);\r\n paint.setColor(color);\r\n canvas.drawCircle(r, r, r, paint);\r\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\r\n canvas.drawBitmap(bitmap, rect, rect, paint);\r\n return output;\r\n }", "public void fillRoundRectangle(RectangleShape rectangle, int radius);", "private Bitmap m6552d() {\n if (this.f5072i == null) {\n this.f5072i = m6555f();\n }\n return this.f5072i;\n }", "private Bitmap getBitmap(int drawableRes) {\n Drawable drawable = ResourcesCompat.getDrawable(getResources(), drawableRes, null);\n Canvas canvas = new Canvas();\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\n canvas.setBitmap(bitmap);\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\n drawable.draw(canvas);\n\n return bitmap;\n }", "public Bitmap generateBackground()\n {\n Bitmap bg = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n Canvas temp = new Canvas(bg);\n for (int i = 0; i < width/blockWidth; i++)\n {\n for (int j = 0; j < height/blockHeight; j++)\n {\n Random rand = new Random();\n int val = rand.nextInt(5);\n\n if (val == 0)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_1), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n\n }\n else if (val == 1)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_2), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 2)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_3), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 3)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_4), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 4)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_5), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n\n }\n }\n\n return bg;\n\n }", "private void randHelper(){\r\n Bitmap imageViewBitmap = _imageView.getDrawingCache();\r\n Random rand = new Random();\r\n float touchX = rand.nextInt(imageViewBitmap.getWidth());\r\n float touchY = rand.nextInt(imageViewBitmap.getHeight());\r\n int x = (int) touchX;\r\n int y = (int) touchY;\r\n\r\n int[] viewCoor = new int[2];\r\n getLocationOnScreen(viewCoor);\r\n //shouldn't be out of bounds, but just in case make sure it is\r\n if (getBitmapPositionInsideImageView(_imageView).contains(x, y)) {\r\n //randomly generate points and brush size\r\n float dx = rand.nextFloat()*(2);\r\n //randomly decide if dx is negative\r\n if(rand.nextBoolean()){\r\n dx *= -1;\r\n }\r\n float dy = rand.nextFloat()*2;\r\n //randomly decide if dy is negative\r\n if(rand.nextBoolean()){\r\n dy *= -1;\r\n }\r\n\r\n //the range the brush can be is 10 to 50px to prevent it from being obnoxiously big or miniscule\r\n float width = (_paint.getStrokeWidth() + 10) * (float) Math.hypot(dx, dy) < 50 ? (_paint.getStrokeWidth() + 10) * (float) Math.hypot(dx, dy) : 50;\r\n width = width < 10 ? 10 : width;\r\n //get color of corresponding pixel in image\r\n int color = imageViewBitmap.getPixel(x, y);\r\n _paint.setColor(color);\r\n\r\n //logic of drawing based on brush type\r\n if (_brushType == BrushType.Square) {\r\n _offScreenCanvas.drawRect(touchX - width, touchY - width, touchX + width, touchY + width, _paint);\r\n } else if (_brushType == BrushType.Circle) {\r\n _offScreenCanvas.drawCircle(touchX, touchY, width, _paint);\r\n } else if (_brushType == BrushType.Line) {\r\n if (dx < 0) {\r\n if (dy < 0) {\r\n _offScreenCanvas.drawLine(touchX - width, touchY + width, touchX + width, touchY - width, _paint);\r\n } else {\r\n _offScreenCanvas.drawLine(touchX - width, touchY - width, touchX + width, touchY + width, _paint);\r\n }\r\n } else {\r\n if (dy < 0) {\r\n _offScreenCanvas.drawLine(touchX + width, touchY + width, touchX - width, touchY - width, _paint);\r\n } else {\r\n _offScreenCanvas.drawLine(touchX + width, touchY - width, touchX - width, touchY + width, _paint);\r\n }\r\n }\r\n }\r\n }\r\n }", "public static Bitmap getCircleBitmap(Bitmap bitmap) {\n Bitmap output;\n\n if (bitmap.getWidth() > bitmap.getHeight()) {\n output = Bitmap.createBitmap(bitmap.getHeight(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\n } else {\n output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getWidth(), Bitmap.Config.ARGB_8888);\n }\n\n Canvas canvas = new Canvas(output);\n\n final int color = 0xff424242;\n final Paint paint = new Paint();\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n float r = 0;\n\n if (bitmap.getWidth() > bitmap.getHeight()) {\n r = bitmap.getHeight() / 2;\n } else {\n r = bitmap.getWidth() / 2;\n }\n\n paint.setAntiAlias(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(color);\n canvas.drawCircle(r, r, r, paint);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rect, rect, paint);\n return output;\n }", "public void roundedRect(ShapeRenderer sr, float x, float y, float width, float height, float radius) {\n if(radius <= 0) {\n sr.rect(x, y, width, height);\n } else {\n // Central rectangle\n sr.rect(x + radius, y + radius, width - 2 * radius, height - 2 * radius);\n\n // Four side rectangles, in clockwise order\n sr.rect(x + radius, y, width - 2 * radius, radius);\n sr.rect(x + width - radius, y + radius, radius, height - 2 * radius);\n sr.rect(x + radius, y + height - radius, width - 2 * radius, radius);\n sr.rect(x, y + radius, radius, height - 2 * radius);\n\n // Four arches, clockwise too\n sr.arc(x + radius, y + radius, radius, 180f, 90f);\n sr.arc(x + width - radius, y + radius, radius, 270f, 90f);\n sr.arc(x + width - radius, y + height - radius, radius, 0f, 90f);\n sr.arc(x + radius, y + height - radius, radius, 90f, 90f);\n }\n }", "@Override\n\t\tpublic void drawRoundRect(@NonNull Canvas canvas, @Nullable RectF rect, float rx, float ry,\n\t\t @Nullable Paint paint) {\n\t\t\tif (rect != null) {\n\t\t\t\tfinal float twoRx = rx * 2;\n\t\t\t\tfinal float twoRy = ry * 2;\n\t\t\t\tfinal float innerWidth = rect.width() - twoRx;\n\t\t\t\tfinal float innerHeight = rect.height() - twoRy;\n\t\t\t\tmCornerRect.set(rect.left, rect.top, rect.left + twoRx, rect.top + twoRy);\n\n\t\t\t\tcanvas.drawArc(mCornerRect, 180, 90, true, paint);\n\t\t\t\tmCornerRect.offset(innerWidth, 0);\n\t\t\t\tcanvas.drawArc(mCornerRect, 270, 90, true, paint);\n\t\t\t\tmCornerRect.offset(0, innerHeight);\n\t\t\t\tcanvas.drawArc(mCornerRect, 0, 90, true, paint);\n\t\t\t\tmCornerRect.offset(-innerWidth, 0);\n\t\t\t\tcanvas.drawArc(mCornerRect, 90, 90, true, paint);\n\n\t\t\t\t//draw top and bottom pieces\n\t\t\t\tcanvas.drawRect(rect.left + rx, rect.top, rect.right - rx, rect.top + ry, paint);\n\t\t\t\tcanvas.drawRect(rect.left + rx, rect.bottom - ry, rect.right - rx, rect.bottom,\n\t\t\t\t\t\tpaint);\n\n\t\t\t\t//center\n\t\t\t\tcanvas.drawRect(rect.left, (float) Math.floor(rect.top + ry), rect.right,\n\t\t\t\t\t\t(float) Math.ceil(rect.bottom - ry), paint);\n\t\t\t}\n\t\t}", "private int xRounded(Summit s, PanoramaParameters p) {\n GeoPoint obsPos = p.observerPosition();\n double azimuthToSummit = obsPos.azimuthTo(s.position());\n return (int) round(p.xForAzimuth(azimuthToSummit));\n }", "public static Bitmap ratingToHollowBitmap( double rating, boolean isSelected )\n {\n if ( rating == 0)\n {\n return spotsBmpHollow.get( 3 ); //return gray circle\n }\n else if ( rating < RED_THRESHOLD )\n {\n return spotsBmpHollow.get( 0 );\n }\n else if ( rating < YELLOW_THRESHOLD )\n {\n return spotsBmpHollow.get( 1 );\n }\n \n return spotsBmpHollow.get( 2 );\n }", "private int getTouchedCorner(MotionEvent motionEvent) {\n PointF currentTouchPos = new PointF(motionEvent.getX(), motionEvent.getY());\n if (cropRect == null) {\n return NO_CORNER;\n }\n PointF topLeft = sourceToViewCoord(cropRect.left, cropRect.top);\n PointF bottomRight = sourceToViewCoord(cropRect.right, cropRect.bottom);\n Rect cropRect = new Rect((int) topLeft.x, (int) topLeft.y,\n (int) bottomRight.x, (int) bottomRight.y);\n\n if (currentTouchPos.x > cropRect.left - touchDelta\n && currentTouchPos.x < cropRect.left + touchDelta\n && currentTouchPos.y > cropRect.top - touchDelta\n && currentTouchPos.y < cropRect.top + touchDelta) {\n return TOP_LEFT;\n }\n\n if (currentTouchPos.x > cropRect.right - touchDelta\n && currentTouchPos.x < cropRect.right + touchDelta\n && currentTouchPos.y > cropRect.top - touchDelta\n && currentTouchPos.y < cropRect.top + touchDelta) {\n return TOP_RIGHT;\n }\n\n if (currentTouchPos.x > cropRect.right - touchDelta\n && currentTouchPos.x < cropRect.right + touchDelta\n && currentTouchPos.y > cropRect.bottom - touchDelta\n && currentTouchPos.y < cropRect.bottom + touchDelta) {\n return BOTTOM_RIGHT;\n }\n\n if (currentTouchPos.x > cropRect.left - touchDelta\n && currentTouchPos.x < cropRect.left + touchDelta\n && currentTouchPos.y > cropRect.bottom - touchDelta\n && currentTouchPos.y < cropRect.bottom + touchDelta) {\n return BOTTOM_LEFT;\n }\n\n return NO_CORNER;\n }", "Drawable getPhotoDrawableBySub(long subId);", "private void decorateBitmap() {\n\n RectF roundedRect = new RectF(2, 2, mBitmap.getWidth() - 2, mBitmap.getHeight() - 2);\n float cornerRadius = mBitmap.getHeight() * CORNER_RADIUS_SIZE;\n\n // Alpha canvas with white rounded rect\n Bitmap maskBitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(),\n Bitmap.Config.ARGB_8888);\n Canvas maskCanvas = new Canvas(maskBitmap);\n maskCanvas.drawColor(Color.TRANSPARENT);\n Paint maskPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n maskPaint.setColor(Color.BLACK);\n maskPaint.setStyle(Paint.Style.FILL);\n maskCanvas.drawRoundRect(roundedRect, cornerRadius, cornerRadius, maskPaint);\n\n Paint paint = new Paint();\n paint.setFilterBitmap(false);\n\n // Draw mask onto mBitmap\n Canvas canvas = new Canvas(mBitmap);\n\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n canvas.drawBitmap(maskBitmap, 0, 0, paint);\n\n // Now re-use the above bitmap to do a shadow.\n paint.setXfermode(null);\n\n maskBitmap.recycle();\n }", "private Rect getNewRect(float x, float y) {\n PointF currentTouchPos = viewToSourceCoord(x, y);\n\n boolean freeAspectRatio = aspectRatio < 0.0;\n\n if (freeAspectRatio) {\n if (touchedCorner == TOP_LEFT) {\n return checkRectBounds(new Rect((int) currentTouchPos.x, (int) currentTouchPos.y,\n cropRect.right, cropRect.bottom), true);\n } else if (touchedCorner == TOP_RIGHT) {\n return checkRectBounds(new Rect(cropRect.left, (int) currentTouchPos.y,\n (int) currentTouchPos.x, cropRect.bottom), true);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n return checkRectBounds(new Rect(cropRect.left, cropRect.top,\n (int) currentTouchPos.x, (int) currentTouchPos.y), true);\n } else if (touchedCorner == BOTTOM_LEFT) {\n return checkRectBounds(new Rect((int) currentTouchPos.x, cropRect.top,\n cropRect.right, (int) currentTouchPos.y), true);\n }\n } else {\n // fixed aspectRatio\n if (touchedCorner == TOP_LEFT) {\n int delta = (int) Math.max(currentTouchPos.x - cropRect.left,\n currentTouchPos.y - cropRect.top);\n return checkRectBounds(new Rect((int) Math.round(cropRect.left\n + delta * aspectRatio), cropRect.top + delta,\n cropRect.right, cropRect.bottom), true);\n } else if (touchedCorner == TOP_RIGHT) {\n int delta = (int) Math.max(cropRect.right - currentTouchPos.x,\n currentTouchPos.y - cropRect.top);\n return checkRectBounds(new Rect(cropRect.left, cropRect.top + delta,\n (int) Math.round(cropRect.right - delta * aspectRatio),\n cropRect.bottom), true);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n int delta = (int) Math.max(cropRect.right - currentTouchPos.x,\n cropRect.bottom - currentTouchPos.y);\n return checkRectBounds(new Rect(cropRect.left, cropRect.top,\n (int) Math.round(cropRect.right - delta * aspectRatio),\n cropRect.bottom - delta), true);\n } else if (touchedCorner == BOTTOM_LEFT) {\n int delta = (int) Math.max(currentTouchPos.x - cropRect.left,\n cropRect.bottom - currentTouchPos.y);\n return checkRectBounds(new Rect((int) Math.round(cropRect.left\n + delta * aspectRatio), cropRect.top,\n cropRect.right, cropRect.bottom - delta), true);\n }\n }\n\n return null;\n }", "public PaxosRound createRound()\n {\n return createRound(0);\n }", "public static void testRoundDown(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.explore();\n\t wall.roundDownToMultOf8();\n\t wall.explore();\n }", "public Rect getScaledFinder() {\n float sw = getWidthScaleFactor();\n float sh = getHeightScaleFactor();\n\n return new Rect((int)(mFinderRoi.left/sw), (int)(mFinderRoi.top/sh),\n (int)(mFinderRoi.right/sw), (int)(mFinderRoi.bottom/sh));\n }", "void resetRoundHitbox() {\n setRoundHitbox((_w+_h)/4);\n }", "public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }", "private void drawThumbnail()\n\t{\n\t\t int wCurrentWidth = mBackImage.getWidth();\n\t\t int wCurrentHeight = mBackImage.getHeight();\n\t\t \n \n float scaleWidth = ((float) mThumbnailWidth) / wCurrentWidth;\n float scaleHeight = ((float) mThumbnailHeight) / wCurrentHeight;\n Matrix matrix = new Matrix();\n matrix.postScale(scaleWidth, scaleHeight);\n // create the new Bitmap object\n Bitmap resizedBitmap = Bitmap.createBitmap(mBackImage, 0, 0 , wCurrentWidth, wCurrentHeight, matrix, true);\n \n Bitmap output = Bitmap.createBitmap(resizedBitmap.getWidth()+(2*cmColorPadding+2*cmBorderPadding), resizedBitmap.getHeight()+(2*cmColorPadding+2*cmBorderPadding), Config.ARGB_8888);\n Canvas canvas = new Canvas(output);\n \n final int wRectBorderLeft = 0;\n final int wRectColorLeft = wRectBorderLeft + cmBorderPadding;\n final int wRectThumbnailLeft = wRectColorLeft + cmColorPadding;\n final int wRectBorderTop = 0;\n final int wRectColorTop = wRectBorderTop + cmBorderPadding;\n final int wRectThumbnailTop = wRectColorTop + cmColorPadding;\n\n final int wRectThumbnailRight = wRectThumbnailLeft + resizedBitmap.getWidth();\t \n final int wRectColorRight = wRectThumbnailRight + cmColorPadding;\n final int wRectBorderRight = wRectColorRight + cmBorderPadding;\n final int wRectThumbnailBottom = wRectThumbnailTop + resizedBitmap.getHeight();\t \n final int wRectColorBottom = wRectThumbnailBottom + cmColorPadding;\n final int wRectBorderBottom = wRectColorBottom + cmBorderPadding;\n \n \n final int wThumbColor = 0xff424242;\n final int wBorderColor = 0xffBBBBBB;\n final Paint paint = new Paint();\n final Rect wThumbRectangle = new Rect(wRectThumbnailLeft, wRectThumbnailTop, wRectThumbnailRight, wRectThumbnailBottom);\n final Rect wColorRectangle = new Rect(wRectColorLeft, wRectColorTop, wRectColorRight, wRectColorBottom);\n final Rect wBorderRectangle = new Rect(wRectBorderLeft, wRectBorderTop, wRectBorderRight, wRectBorderBottom);\n final RectF wThumbRoundRectangle = new RectF(wThumbRectangle);\n final RectF wColorRoundRectangle = new RectF(wColorRectangle);\n final RectF wBorderRoundRectangle = new RectF(wBorderRectangle);\n final float roundPx = 3.0f;\n\n paint.setAntiAlias(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(wBorderColor);\n canvas.drawRoundRect(wBorderRoundRectangle, roundPx, roundPx, paint);\n paint.setColor(getLevelColor());\n canvas.drawRoundRect(wColorRoundRectangle, roundPx, roundPx, paint);\n paint.setColor(wThumbColor);\n canvas.drawRoundRect(wThumbRoundRectangle, roundPx, roundPx, paint);\n\n paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));\n canvas.drawBitmap(resizedBitmap, null, wThumbRectangle, paint);\n \n BitmapDrawable bmd = new BitmapDrawable(output);\n \n\t\t mCurrentImage.setImageDrawable(bmd);\n\t}", "public static Drawable generateRoundBorderDrawable(Resources res, float radii, float borderWidth, int pressColor, int defaultColor) {\n\n radii = dpToPx(res, radii);\n borderWidth = dpToPx(res, borderWidth);\n\n //外环的圆角矩形\n float[] outRadii = new float[]{radii, radii, radii, radii, radii, radii, radii, radii};//四个角的 圆角幅度,8个可以设置的值,每个角都有2个边 2*4=8个\n\n //与内环的距离\n RectF inset = new RectF(borderWidth, borderWidth, borderWidth, borderWidth);\n\n //按下状态\n Shape roundRectShape = new RoundRectShape(outRadii, inset, null);//圆角背景\n ShapeDrawable shopDrawablePress = new ShapeDrawable(roundRectShape);//圆角shape\n shopDrawablePress.getPaint().setColor(pressColor);//设置颜色\n\n //正常状态\n Shape roundRectShapeNormal = new RoundRectShape(outRadii, inset, null);\n ShapeDrawable shopDrawableNormal = new ShapeDrawable(roundRectShapeNormal);\n shopDrawableNormal.getPaint().setColor(defaultColor);\n\n StateListDrawable bgStateDrawable = new StateListDrawable();//状态shape\n bgStateDrawable.addState(new int[]{android.R.attr.state_pressed}, shopDrawablePress);//按下状态\n bgStateDrawable.addState(new int[]{}, shopDrawableNormal);//其他状态\n\n return bgStateDrawable;\n }", "private static android.graphics.Bitmap a(android.graphics.Bitmap r6, int r7, int r8) {\n /*\n r5 = 1;\n r4 = 0;\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r6 != 0) goto L_0x0008;\n L_0x0006:\n r6 = 0;\n L_0x0007:\n return r6;\n L_0x0008:\n r0 = r6.getWidth();\n r0 = (float) r0;\n r2 = (float) r7;\n r0 = r0 / r2;\n r2 = r6.getHeight();\n r2 = (float) r2;\n r3 = (float) r8;\n r2 = r2 / r3;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0040;\n L_0x001a:\n r0 = r6.getWidth();\n r0 = (float) r0;\n r0 = r0 / r2;\n r0 = (int) r0;\n if (r0 <= 0) goto L_0x003d;\n L_0x0023:\n if (r8 <= 0) goto L_0x003d;\n L_0x0025:\n if (r7 <= 0) goto L_0x003d;\n L_0x0027:\n r2 = android.graphics.Bitmap.createScaledBitmap(r6, r0, r8, r5);\n r0 = r2.getWidth();\n r0 = r0 - r7;\n r0 = r0 / 2;\n r0 = android.graphics.Bitmap.createBitmap(r2, r0, r4, r7, r8);\n if (r0 == r2) goto L_0x003b;\n L_0x0038:\n r2.recycle();\t Catch:{ RuntimeException -> 0x006c }\n L_0x003b:\n if (r1 == 0) goto L_0x003e;\n L_0x003d:\n r0 = r6;\n L_0x003e:\n if (r1 == 0) goto L_0x006a;\n L_0x0040:\n r0 = r6.getHeight();\n r0 = (float) r0;\n r2 = (float) r7;\n r0 = r0 * r2;\n r2 = r6.getWidth();\n r2 = (float) r2;\n r0 = r0 / r2;\n r0 = (int) r0;\n if (r0 <= 0) goto L_0x0007;\n L_0x0050:\n if (r8 <= 0) goto L_0x0007;\n L_0x0052:\n if (r7 <= 0) goto L_0x0007;\n L_0x0054:\n r2 = android.graphics.Bitmap.createScaledBitmap(r6, r7, r0, r5);\n r0 = r2.getHeight();\n r0 = r0 - r8;\n r0 = r0 / 2;\n r0 = android.graphics.Bitmap.createBitmap(r2, r4, r0, r7, r8);\n if (r0 == r2) goto L_0x0068;\n L_0x0065:\n r2.recycle();\t Catch:{ RuntimeException -> 0x006e }\n L_0x0068:\n if (r1 != 0) goto L_0x0007;\n L_0x006a:\n r6 = r0;\n goto L_0x0007;\n L_0x006c:\n r0 = move-exception;\n throw r0;\n L_0x006e:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.graphics.Bitmap, int, int):android.graphics.Bitmap\");\n }", "public static Paint newSurroundingAreaOverlayPaint() {\n\n final Paint paint = new Paint();\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));\n paint.setAntiAlias(true);\n\n return paint;\n }", "public abstract double getBoundingCircleRadius();", "public static Bitmap GetBasicCardNumberBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_BasicCardNumberBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_BasicCardNumberBitmap = BitmapFactory.decodeResource(res, R.drawable.number);\r\n\t\t\t}\r\n\t image = m_BasicCardNumberBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}", "private int guessRoundedSegments(float radius) {\n\t\tint segments;\n\t\tif (radius < 4)\n\t\t\tsegments = 0;\n\t\telse if (radius < 10)\n\t\t\tsegments = 2;\n\t\telse\n\t\t\tsegments = 4;\n\t\treturn segments;\n\t}", "private LayerDrawable buildPinIcon(String iconPath, int iconColor) {\n\n LayerDrawable result = null;\n\n BitmapFactory.Options myOptions = new BitmapFactory.Options();\n myOptions.inDither = true;\n myOptions.inScaled = false;\n myOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;// important\n myOptions.inPurgeable = true;\n\n Bitmap bitmap = null;\n try {\n bitmap = BitmapFactory.decodeStream(container.getContext().getAssets().open(iconPath), null, myOptions);\n\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }catch (Exception e) {\n //Crashlytics.logException(e);\n\n }\n\n\n Bitmap workingBitmap = Bitmap.createBitmap(100, 100, bitmap.getConfig()); //Bitmap.createBitmap(bitmap);\n Bitmap mutableBitmap = workingBitmap.copy(Bitmap.Config.ARGB_8888, true);\n\n\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setDither(false);\n\n paint.setColor(iconColor);\n\n Canvas canvas = new Canvas(mutableBitmap);\n canvas.drawCircle(bitmap.getWidth()/2 + 10, bitmap.getHeight()/2 + 10, 32, paint);\n\n //\t canvas.drawBitmap(bitmap, 10, 10, null);\n\n if (!iconPath.isEmpty()) {\n\n try {\n result = new LayerDrawable(\n new Drawable[] {\n\t\t\t\t\t\t\t\t/*pincolor*/ new BitmapDrawable(mutableBitmap),\n new BitmapDrawable(BitmapFactory.decodeStream(container.getContext().getAssets().open(iconPath)))});\n\n } catch (Resources.NotFoundException 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 }\n\n\n\n return result;\n\n }", "public static Drawable generateRoundDrawable(Resources res, float radii, int pressColor, int defaultColor) {\n\n radii = dpToPx(res, radii);\n\n //外环的圆角矩形\n float[] outRadii = new float[]{radii, radii, radii, radii, radii, radii, radii, radii};//四个角的 圆角幅度,8个可以设置的值,每个角都有2个边 2*4=8个\n\n //按下状态\n Shape roundRectShape = new RoundRectShape(outRadii, null, null);//圆角背景\n ShapeDrawable shopDrawablePress = new ShapeDrawable(roundRectShape);//圆角shape\n shopDrawablePress.getPaint().setColor(pressColor);//设置颜色\n\n //正常状态\n Shape roundRectShapeNormal = new RoundRectShape(outRadii, null, null);\n ShapeDrawable shopDrawableNormal = new ShapeDrawable(roundRectShapeNormal);\n shopDrawableNormal.getPaint().setColor(defaultColor);\n\n StateListDrawable bgStateDrawable = new StateListDrawable();//状态shape\n bgStateDrawable.addState(new int[]{android.R.attr.state_pressed}, shopDrawablePress);//按下状态\n bgStateDrawable.addState(new int[]{}, shopDrawableNormal);//其他状态\n\n return bgStateDrawable;\n }", "private GPoint findOuterCorner(double r) {\n\t\trIsNegative = false;\n\t\tif (r < 0) rIsNegative = true;\n\t\t//double cornerX = (lastClick.getX() + x)/2.0 - r;\n\t\t//double cornerY = lastClick.getY() - r;\n\t\t//GPoint point = new GPoint(cornerX,cornerY);\n\t\t//return point;\n\t\t//double cornerX = \n\t\tdouble centerX = (centerCircle.getWidth() / 2.0) + centerCircle.getX();\n\t\tdouble centerY = (centerCircle.getHeight() / 2.0) + centerCircle.getY();\n\t\tdouble x;\n\t\tif (!rIsNegative) {\n\t\t\tx = centerX + (centerCircle.getWidth() / 2.0);\n\t\t} else {\n\t\t\tx = centerX + (centerCircle.getWidth() / 2.0) + r*2.0;\n\t\t}\n\t\tdouble y = centerY - Math.abs(r);\n\t\tGPoint point = new GPoint(x,y);\n\t\treturn point;\n\t}", "private static Bitmap drawableToBitmap(Drawable drawable) {\n if (drawable == null) {\n return null;\n } else if (drawable instanceof BitmapDrawable) {\n return ((BitmapDrawable) drawable).getBitmap();\n }\n\n //Avoid Color Drawable special case\n int width = drawable.getIntrinsicWidth();\n width = width > 0 ? width : 1;\n int height = drawable.getIntrinsicHeight();\n height = height > 0 ? height : 1;\n\n Bitmap bitmap;\n try {\n bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n } catch (OutOfMemoryError e) {\n Log.e(\"PolygonImageView\", \"OutOfMemory during bitmap creation\");\n return null;\n }\n\n Canvas canvas = new Canvas(bitmap);\n drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());\n drawable.draw(canvas);\n\n return bitmap;\n }", "public Image getFlat();", "public int getImageResource() {\n switch (id) {\n case 0: return R.drawable.aatrox_square_0;\n case 1: return R.drawable.ahri_square_0;\n case 2: return R.drawable.akali_square_0;\n case 3: return R.drawable.alistar_square_0;\n case 4: return R.drawable.amumu_square_0;\n case 5: return R.drawable.anivia_square_0;\n case 6: return R.drawable.annie_square_0;\n case 7: return R.drawable.ashe_square_0;\n case 8: return R.drawable.azir_square_0;\n case 9: return R.drawable.bard_square_0;\n case 10: return R.drawable.blitzcrank_square_0;\n case 11: return R.drawable.brand_square_0;\n case 12: return R.drawable.braum_square_0;\n case 13: return R.drawable.caitlyn_square_0;\n case 14: return R.drawable.cassiopeia_square_0;\n case 15: return R.drawable.chogath_square_0;\n case 16: return R.drawable.corki_square_0;\n case 17: return R.drawable.darius_square_0;\n case 18: return R.drawable.diana_square_0;\n case 19: return R.drawable.draven_square_0;\n case 20: return R.drawable.drmundo_square_0;\n default:\n return R.drawable.fizz_square_0;\n }\n }", "public static Drawable generateRoundDrawable(float radii, int pressColor, int defaultColor) {\n //圆角\n Shape roundRectShape = new RoundRectShape(new float[]{radii, radii, radii, radii, radii, radii, radii, radii}, null, null);//圆角背景\n\n //按下状态\n ShapeDrawable shopDrawablePress = new ShapeDrawable(roundRectShape);//圆角shape\n shopDrawablePress.getPaint().setColor(pressColor);//设置颜色\n\n //正常状态\n ShapeDrawable shopDrawableNormal = new ShapeDrawable(roundRectShape);\n shopDrawableNormal.getPaint().setColor(defaultColor);\n\n StateListDrawable bgStateDrawable = new StateListDrawable();//状态shape\n bgStateDrawable.addState(new int[]{android.R.attr.state_pressed}, shopDrawablePress);//按下状态\n bgStateDrawable.addState(new int[]{-android.R.attr.state_enabled}, shopDrawablePress);\n bgStateDrawable.addState(new int[]{}, shopDrawableNormal);//其他状态\n\n return bgStateDrawable;\n }", "private Rectangle computeGrabRect() {\n\t\tint grabWidth = (int) ((double) magnifierSize.width / zoom);\n\t\tint grabHeight = (int) ((double) magnifierSize.height / zoom);\n\t\t// upper left corner is current point\n\t\treturn new Rectangle(point.x-grabWidth/2, point.y-grabHeight/2, grabWidth, grabHeight);\n\t}", "static public Fits do_crop(Fits fits, WorldPt wpt, double radius)\n throws FitsException, IOException, ProjectionException {\n ImageHDU h = (ImageHDU) fits.readHDU();\n Header old_header = h.getHeader();\n ImageHeader temp_hdr = new ImageHeader(old_header);\n CoordinateSys in_coordinate_sys = CoordinateSys.makeCoordinateSys(\n temp_hdr.getJsys(), temp_hdr.file_equinox);\n Projection in_proj = temp_hdr.createProjection(in_coordinate_sys);\n ProjectionPt ipt = in_proj.getImageCoords(wpt.getLon(), wpt.getLat());\n double x = ipt.getFsamp();\n double y = ipt.getFline();\n double x_size = 2 * radius / Math.abs(temp_hdr.cdelt1);\n if (SUTDebug.isDebug()) {\n System.out.println(\"x = \" + x + \" y = \" + y + \" x_size = \" + x_size);\n\n }\n Fits out_fits = common_crop(h, old_header,\n (int) x, (int) y, (int) x_size, (int) x_size);\n return (out_fits);\n }", "protected void isotrop()\r\n {\r\n Dimension d = getSize();\r\n int maxX = d.width - 1, maxY = d.height - 1;\r\n\tpSize = Math.max(width / maxX, height / maxY);\r\n\tcX = maxX / 2;\r\n\tcY = maxY / 2;\r\n\r\n\t// Since pixel size is max of width/height over their device sizes, one of these\r\n\t// values will actually be larger. This should be used to use all of the canvas\r\n\tactualWidth = maxX * pSize;\r\n\tactualHeight = maxY * pSize;\r\n }", "public static Bitmap GetCardSoruceBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(IsPortraitMode())\r\n\t\t\t{\r\n\t\t\t\tif(m_CardBitmapProtrait == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tm_CardBitmapProtrait = BitmapFactory.decodeResource(res, R.drawable.card);\r\n\t\t\t\t}\r\n\t\t\t\timage = m_CardBitmapProtrait;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(m_CardBitmapLandscape == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tm_CardBitmapLandscape = BitmapFactory.decodeResource(res, R.drawable.card2);\r\n\t\t\t\t}\r\n\t\t\t\timage = m_CardBitmapLandscape;\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn image;\r\n\t}", "public int getCoverMask()\r\n/* 192: */ {\r\n/* 193:150 */ return this.CoverSides;\r\n/* 194: */ }", "private Rect getMinCropRect() {\n return new Rect(0, 0,\n aspectRatio < 0.0 ? minCropRectSize : (int) (minCropRectSize * aspectRatio),\n minCropRectSize);\n }", "private Bitmap getMemberLocationBitmapFromView(View view) {\n view.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);\n view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());\n Bitmap returnedBitmap = Bitmap.createBitmap(view.getMeasuredWidth(), view.getMeasuredHeight(),\n Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(returnedBitmap);\n canvas.drawColor(Color.WHITE, PorterDuff.Mode.SRC_IN);\n Drawable drawable = view.getBackground();\n if (drawable != null)\n drawable.draw(canvas);\n view.draw(canvas);\n return returnedBitmap;\n }", "public PaxosRound createRound(int a_round)\n {\n PaxosRound result = new PaxosRound(this, a_round, getNextRoundLeader(a_round));\n m_rounds.put(new Integer(a_round), result);\n return result;\n }", "private BufferedImage makeSquare(BufferedImage photo) {\n int width = photo.getWidth();\n int height = photo.getHeight();\n int size = Math.min(width, height);\n\n return photo.getSubimage((width/2) - (size/2), (height/2) - (size/2), size, size);\n }", "long getRadius();", "public float getWindowCornerRadius() {\n return this.mWindowCornerRadius;\n }", "public ImageView getAdjustedTurtleImageView(double xLeftCorner, double yLeftCorner) {\n ImageView returnedTurtle = new ImageView();\n updateTurtleImageView(returnedTurtle);\n returnedTurtle.setX(returnedTurtle.getX()+xLeftCorner);\n returnedTurtle.setY(returnedTurtle.getY()+yLeftCorner);\n return returnedTurtle;\n }", "private Corner makeCorner(Map<BaseVector2f, Corner> pointCornerMap, Rect2f srcRc, BaseVector2f orgPt) {\n\n Corner exist = pointCornerMap.get(orgPt);\n if (exist != null) {\n return exist;\n }\n\n Vector2f p = transform(srcRc, realBounds, orgPt);\n\n Corner c = new Corner(new ImmutableVector2f(p));\n corners.add(c);\n pointCornerMap.put(orgPt, c);\n float diff = 0.01f;\n boolean onLeft = closeEnough(p.getX(), realBounds.minX(), diff);\n boolean onTop = closeEnough(p.getY(), realBounds.minY(), diff);\n boolean onRight = closeEnough(p.getX(), realBounds.maxX(), diff);\n boolean onBottom = closeEnough(p.getY(), realBounds.maxY(), diff);\n if (onLeft || onTop || onRight || onBottom) {\n c.setBorder(true);\n }\n\n return c;\n }", "List<Bitmap> getRecipeImgSmall();", "public static Bitmap GetTempCardNumberBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_TempCardNumberBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_TempCardNumberBitmap = BitmapFactory.decodeResource(res, R.drawable.z);\r\n\t\t\t}\r\n\t\t\timage = m_TempCardNumberBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}", "private Point findBottomRightCornerPoint() {\n return new Point(origin.getX() + width, origin.getY());\n }", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "public Bitmap mo8554a(BitmapPool bitmapPool, Bitmap bitmap, int i, int i2) {\n float f;\n C12932j.m33818b(bitmapPool, \"pool\");\n C12932j.m33818b(bitmap, \"srcBmp\");\n Bitmap bitmap2 = bitmapPool.get(i, i2, bitmap.getConfig());\n C12932j.m33815a((Object) bitmap2, \"pool.get(outWidth, outHeight, srcBmp.config)\");\n Matrix matrix = new Matrix();\n int i3 = this.f7488e;\n float f2 = (float) i;\n float f3 = (float) i2;\n matrix.setScale(1.0f - ((((float) i3) * 2.0f) / f2), 1.0f - ((((float) i3) * 2.0f) / f3), f2 / 2.0f, f3 / 2.0f);\n C1334a aVar = this.f7487d;\n if (aVar instanceof C1336b) {\n f = ((C1336b) aVar).mo6551b() * ((float) Math.min(i, i2));\n } else if (aVar instanceof C1335a) {\n f = ((C1335a) aVar).mo6547b();\n } else {\n throw new NoWhenBranchMatchedException();\n }\n C7780a aVar2 = new C7780a();\n aVar2.mo19991c(0.0f);\n aVar2.mo19994e(0.0f);\n aVar2.mo19993d(f2);\n aVar2.mo19985a(f3);\n aVar2.mo19989b(f);\n Path a = C7780a.m18885a(aVar2, null, 1, null);\n Canvas canvas = new Canvas(bitmap2);\n canvas.drawPath(a, this.f7485b);\n canvas.drawBitmap(bitmap, matrix, this.f7486c);\n return bitmap2;\n }", "public ArrayList<Move> getRound(int round) {\r\n\t\tint startIndex;\r\n\t\tint endIndex;\r\n\t\t\r\n\t\tArrayList<Move> moves = new ArrayList<Move>();\r\n\t\t\r\n\t\t// Guard against negatives\r\n\t\tif (round < 0) {\r\n\t\t\tround = 0;\r\n\t\t}\r\n\t\t\r\n\t\tif (round >= offsets.size()) {\r\n\t\t\tround = offsets.size() - 1;\r\n\t\t\tendIndex = offsets.size();\r\n\t\t} else {\r\n\t\t\tendIndex = offsets.get(round+1);\r\n\t\t}\r\n\t\t\r\n\t\tstartIndex = offsets.get(round);\r\n\t\t\r\n\t\tfor(int i = startIndex; i < endIndex; i++) {\r\n\t\t\tmoves.add(this.getResults().get(i));\r\n\t\t}\r\n\t\t\r\n\t\treturn moves;\r\n\t}", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "private int caculateInSampleSize(BitmapFactory.Options options, int width, int height) {\r\n int outWidth = options.outWidth;\r\n int outHeight = options.outHeight;\r\n int inSampleSize=1;\r\n if (outWidth>width||outHeight>height){\r\n int widthRadio= Math.round(outWidth*1.0f/width);\r\n int heightRadio= Math.round(outHeight*1.0f/height);\r\n inSampleSize= Math.max(widthRadio,heightRadio);\r\n }\r\n\r\n return inSampleSize;\r\n }", "Baby(int centerX, int centerY, Resources res) {\n paint = new Paint();\n babyImg = BitmapFactory.decodeResource(res, R.drawable.baby);\n\n // width and height needs to be changed to dynamically scaled depending on holder width/height\n babyImg = Bitmap.createScaledBitmap(babyImg, 640, 1280, false);\n width = babyImg.getWidth();\n height = babyImg.getHeight();\n x = centerX - (width / 2);\n y = centerY - (height / 2);\n }", "public static Bitmap cropImage(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n \t int x=5;\n\t\tint y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of combineImg.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n boolean template = false;\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n // Check upper-right section of combineImage.\n x2 = wfMid;\n template = false;\n for ( x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the top-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 >= 0; y3--) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n boolean template = false;\n // Check bottom-left section of combineImage.\n for (x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n template = false;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the bottom-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 < finalBm.getHeight(); y3++) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public Image drawOnImage(Mat binary, Mat image) {\n Raster binaryRaster = toBufferedImage(binary).getData();\n int radius = 6;\n int diameter = radius * 2;\n\n BufferedImage imageBI = toBufferedImage(image);\n int width = imageBI.getWidth();\n int height = imageBI.getHeight();\n Graphics2D g2d = (Graphics2D) imageBI.getGraphics();\n g2d.setColor(Color.WHITE);\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int v = binaryRaster.getSample(x, y, 0);\n if (v == 0) {\n g2d.draw(new Ellipse2D.Double(x - radius, y - radius, diameter, diameter));\n }\n }\n }\n\n return imageBI;\n }", "public Bitmap buildResultBitmap() {\n if(mTempBitmap!=null) return mTempBitmap;\n Bitmap bitmap ;\n if(mRotateAngle!=0) bitmap = Util.rotateBitmap(mDocumentBitmap,mRotateAngle);\n else bitmap = Bitmap.createBitmap(mDocumentBitmap);\n\n switch (mFilter) {\n case FILTER_MAGIC:\n bitmap = ScanUtils.getMagicColorBitmap(bitmap);\n break;\n case FILTER_GRAY_SCALE:\n bitmap = ScanUtils.getGrayBitmap(bitmap);\n break;\n case FILTER_BnW:\n bitmap = ScanUtils.getBWBitmap(bitmap);\n break;\n }\n\n return bitmap;\n }", "public int getCurrentRound()\n\t{\n \treturn currentRound;\n\t}", "public native MagickImage borderImage(Rectangle borderInfo)\n\t\t\tthrows MagickException;", "public void drawRoundedRectShadow(int x, int y, int width, int height, int roundSize, int shadowSize, Color color) {\n implementation.devDrawRoundedRect(\n x - shadowSize,\n y - shadowSize,\n width + 2 * shadowSize,\n height + 2 * shadowSize,\n roundSize + shadowSize,\n roundSize + shadowSize,\n new Color(30, 30, 30, 0.4)\n );\n\n implementation.devDrawRoundedRect(x, y, width, height, roundSize, roundSize, color);\n }", "private Point getPixel(Point source) {\n float stepWidth = /*canvasWidth*/ canvasHeight / mapWidth;\n float stepHeight = canvasHeight / mapHeight;\n\n float centerX = canvasWidth / 2;\n float centerY = canvasHeight / 2;\n\n return new Point((int) (centerX + source.X * stepWidth), (int) (centerY + source.Y * stepHeight));\n }", "public static Bitmap GetSignsBitmap()\r\n\t{\r\n\t\tBitmap signBmp = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t Resources res = CGameHelper.m_GameContext.getResources();\r\n\t if(res == null)\r\n\t \treturn signBmp;\r\n\t \r\n\t if(m_SignsBitmap == null)\r\n\t {\t\r\n\t \tm_SignsBitmap = BitmapFactory.decodeResource(res, R.drawable.signs);\r\n\t }\r\n\t signBmp = m_SignsBitmap;\r\n\t\t}\r\n\t\treturn signBmp;\r\n\t}" ]
[ "0.7017134", "0.67978644", "0.64975166", "0.6165183", "0.6108064", "0.6018659", "0.59358233", "0.5800133", "0.56509715", "0.56491196", "0.5594327", "0.5581293", "0.55471104", "0.55110866", "0.5462184", "0.5442291", "0.54353493", "0.5401139", "0.5326977", "0.53127223", "0.5309156", "0.5283424", "0.5279498", "0.5268789", "0.5263404", "0.5212485", "0.52079827", "0.52047306", "0.5156663", "0.5155604", "0.5145357", "0.5134606", "0.51259154", "0.5106134", "0.5080364", "0.50705403", "0.5067546", "0.50617725", "0.5055808", "0.50465566", "0.50329494", "0.5029212", "0.5028557", "0.5020042", "0.50158954", "0.5015288", "0.5002905", "0.49929467", "0.4984584", "0.4972985", "0.4960873", "0.49589428", "0.49453366", "0.49433818", "0.49419218", "0.4929905", "0.49158973", "0.49105218", "0.49066344", "0.49029604", "0.48977113", "0.4897265", "0.48832908", "0.48791385", "0.4874537", "0.48613703", "0.48612866", "0.48595", "0.4855013", "0.48425856", "0.48419493", "0.48413265", "0.48325914", "0.4832216", "0.48217005", "0.481939", "0.48140728", "0.48129007", "0.48060217", "0.48034483", "0.47914916", "0.47902706", "0.47726664", "0.47684833", "0.47630203", "0.47593012", "0.47559658", "0.47525752", "0.47506154", "0.4745658", "0.47336727", "0.47243017", "0.47224063", "0.4720669", "0.4718967", "0.47080994", "0.47077495", "0.47014976", "0.46962062", "0.46865284" ]
0.7318571
0
Adds Kerning to String Dyanmically
public static Spannable applyKerning(CharSequence src, float kerning) { if (src == null) return null; final int srcLength = src.length(); if (srcLength < 2) return src instanceof Spannable ? (Spannable)src : new SpannableString(src); final String nonBreakingSpace = "\u00A0"; final SpannableStringBuilder builder = src instanceof SpannableStringBuilder ? (SpannableStringBuilder)src : new SpannableStringBuilder(src); for (int i = src.length() - 1; i >= 1; i--) { builder.insert(i, nonBreakingSpace); builder.setSpan(new ScaleXSpan(kerning), i, i + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } return builder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String licenseKeyFormatting(String S, int K) {\n\t\tS = S.toUpperCase();\n\t\tString[] strs =S.split(\"-\");\n\t\tString res = \"\";\n\t\tfor(String s : strs)\n\t\t\tres+=s;\n\t\tint length = res.length()-1;\n\t\tint startLen = length % K;\n\t\tStringBuffer result = new StringBuffer(res);\n\t\tfor(int i = length; i>=0;){\n\t\t\ti = i-K;\n\t\t\tif(i>=0){\n\t\t\t\tresult.insert(i+1, \"-\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result+\"\";\n\t}", "void addWord(Nod n, String word) {\n\t\tint i = 0;\n\t\twhile (i < 26) {\n\n\t\t\tif (n.frunze.get(i).cuvant.equals(\"%\")) {\n\t\t\t\tn.frunze.get(i).cuvant = word;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "private void suffix(){\n String instruction = key_words.get(0);\n if(instruction.charAt(0) == 'B'){\n if(instruction.length() == 1) key_words.add(\"AL\");\n else{\n key_words.add(instruction.substring(1));\n key_words.set(0, \"B\");\n }\n }\n else{\n if(instruction.length() > 3){\n key_words.add(instruction.substring(3));\n key_words.set(0, instruction.substring(0,3));\n }\n }\n }", "private static String addToKey(String key, String addendum) {\n String ret = key;\n\n if (ret == null) {\n ret = \"\";\n }\n\n if (!ret.equals(\"\")) {\n ret += \".\";\n }\n\n ret += addendum;\n\n return ret;\n }", "public void insert(String s, int k) {\n assert(k > -1 && k < seq.size() + 1);\n ArrayList<Character> newSeq = new ArrayList<Character>();\n if (k == 0) {\n for (char c : s.toCharArray()) {\n if (isValid(c)) newSeq.add(c);\n }\n }\n else {\n for (int i = 0; i < k; i++) {\n newSeq.add(seq.get(i));\n }\n for (char c : s.toCharArray()) {\n if (isValid(c)) newSeq.add(c);\n }\n }\n for (int i = k; i < seq.size(); i++) {\n newSeq.add(seq.get(i));\n }\n seq = newSeq;\n }", "private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }", "static String caesarCipher(String s, int k) {\n char[] chars = s.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n chars[i] = shift(chars[i], k);\n }\n return new String(chars);\n }", "public void addLettersGuessed(char letter)\n\t {\n\t\t\n\t\t if (mysteryWord.indexOf(letter) == -1)\n\t\t {\n\t\t\t lettersGuessed += letter + \" \"; \n\t\t }\n\t\t \n\t\t missedLetters.setText(lettersGuessed);\n\t\t \n\t }", "private String toKbs(String kbsString) {\n return new StringBuilder().append(Integer.valueOf(kbsString) / 1).append(\" Kb/s\")\n .toString();\n }", "static String appendAndDelete(String s, String t, int k) {\n\n if(k >= s.length() + t.length()){\n return \"Yes\";\n }\n\n int pointer;\n\n int bound = Math.min(s.length(), t.length());\n\n for(pointer=0; pointer<bound; pointer++)\n {\n if(s.charAt(pointer) != t.charAt(pointer)){\n break;\n }\n }\n\n\n if(k == (s.length()-pointer + t.length()-pointer)){\n return \"Yes\";\n }else if(k > (s.length()-pointer + t.length()-pointer)){\n int left = k - s.length()-pointer + t.length()-pointer;\n if(left%2 == 0){\n return \"No\";\n }\n\n }\n\n if(s.equals(t) && (k%2==0)){\n return \"Yes\";\n }\n\n\n\n return \"No\";\n\n\n }", "private void buildString(String input, int k, int[] samp) {\n\r\n\t\tMap<Character, Integer> countermap = new HashMap<Character, Integer>();\r\n\r\n\t\tString out = \"\";\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tcountermap.put(input.charAt(i), countermap.getOrDefault(input.charAt(i), 0) + 1);\r\n\t\t\tif (countermap.get(input.charAt(i)) <= k) {\r\n\r\n\t\t\t\tif (countermap.get(input.charAt(i)) == 1) {\r\n\t\t\t\t\tout += input.charAt(i);\r\n\t\t\t\t\tsamp[(int) input.charAt(i)] -= 1;\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\t\tif ((samp[(int) input.charAt(j)] != 0) && (countermap.get(input.charAt(i)) != 1)) {\r\n\t\t\t\t\t\t\tout += input.charAt(j);\r\n\t\t\t\t\t\t\tsamp[(int) input.charAt(j)] -= 1;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(out);\r\n\t}", "private static String convertToLatin(String word)\n {\n return word.substring(1) + word.substring(0,1) + \"ay\";\n }", "public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }", "static int letterIslands(String s, int k) {\n /*\n * Write your code here.\n */\n\n }", "private int preSpace(String s, int k){\n \twhile(k >= 0){\n \t\tif(s.substring(k,k+1).equals(\" \"))\n \t\t\tbreak;\n \t\tk--;\n \t}\n \treturn k;\n }", "public static String newWord(String strw) {\n String value = \"Encyclopedia\";\n for (int i = 1; i < value.length(); i++) {\n char letter = 1;\n if (i % 2 != 0) {\n letter = value.charAt(i);\n }\n System.out.print(letter);\n }\n return value;\n }", "private String shiftAlphabet(int key) {\n return ALPHABET.substring(key) + ALPHABET.substring(0, key);\n }", "public void setCharacterKerning(Double kerning) {\n getOrCreateProperties().setCharacterKerning(kerning);\n }", "private void add(String thestring) {\n\t\t\n\t}", "public String generateKey(String str, String key)\n{\n int x = str.length();\n \n for (int i = 0; ; i++)\n {\n if (x == i)\n i = 0;\n if (key.length() == str.length())\n break;\n key+=(key.charAt(i));\n }\n return key;\n}", "public String adder() {\n\t\treturn prefix(\"add\").replaceAll(\"ies$\", \"y\").replaceAll(\"s$\", \"\");\n\t}", "public void bewegeKamel(Charakter charakter);", "private String fjernSkilleTegn (String inputString) {\n\t\t\tfor (int i = 0; i < skilleTegn.length; i++) {\n\t\t\t\tinputString = inputString.replace(Character.toString(skilleTegn[i]), \"\");\n\t\t\t}\n\t\t\treturn inputString;\n\t}", "public void setKdKelas(java.lang.CharSequence value) {\n this.kd_kelas = value;\n }", "public static String encipher(String string, String key){\n key = key != null ? key : defaultKey;\n String newString = \"\";\n string = Enigma.handleStringOnInput(string);\n string = string.toUpperCase();\n for (int i = 0; i < string.length(); i++){\n int temp = alphabetL.indexOf(string.charAt(i));\n newString += key.charAt(temp);\n }\n return newString;\n }", "String rotWord(String s) {\n return s.substring(2) + s.substring(0, 2);\n }", "public String createString(int N, int K) {\n\t\t\t\t\n\t\tif (N <= 1) {\n\t\t\treturn \"\";\n\t\t}\n\t\telse if (N == 2 && K == 1) {\n\t\t\treturn \"AB\";\n\t\t}\n\t\telse if (N == 2 && K == 0) {\n\t\t\treturn \"BA\";\n\t\t}\n\t\t\n\t\t//Ignore the cases when K is too large\n\t\tif (getMaxK(N) < K)\n\t\t\treturn \"\";\n\t\t\n\t\tString s = fillStringWithBs(N);\n\t\tint k = calculateK(s);\n\t\t\n\t\t//Target BABB\n\t\t//Current BBBB\n\t\twhile (K > k) {\n\t\t\tSystem.out.println(\"K is \"+K+\", k is \"+k + \", s is \"+s);\n\t\t\tif (K >= calculateK(s.replaceFirst(\"B\", \"A\"))) {\n\t\t\t\ts = s.replaceFirst(\"B\", \"A\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//replace B in the right place\n\t\t\t\tint b_count = countBs(s);\n\t\t\t\tint indexOfBToReplace = 0;\n\t\t\t\tif (k > 0)\n\t\t\t\t\tindexOfBToReplace = b_count - (K-k)-1;\n\t\t\t\telse\n\t\t\t\t\tindexOfBToReplace = b_count - (K-k);\n\t\t\t\ts = replaceIthB(s, indexOfBToReplace);\n\t\t\t}\n\t\t\tk = calculateK(s);\n\t\t}\n\t\treturn s;\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter your word :\");\n String word = scanner.nextLine();\n word = word.toUpperCase();\n// word = Character.toString((char)(word.charAt(0)-32));\n String word1 =Character.toString(word.charAt(0));\n word = word.toLowerCase();\n for (int i = 1; i <word.length() ; i++) {\n word1 += Character.toString(word.charAt(i));\n }\n System.out.println(word1);\n }", "public String encrypt(String word) {\n String [] encr = new String[word.length()];\n StringBuilder encrRet = new StringBuilder();\n for (int i = 0; i<word.length();i++)\n {\n char shift = (char) (((word.charAt(i) - 'a' + 3) % 26) + 'a');\n encrRet = encrRet.append(shift);\n }\n\n return encrRet.toString();\n }", "public void addStrangeCharacter() {\n strangeCharacters++;\n }", "public String cipherText(String str, String key)\n{\n String cipher_text=\"\";\n \n for (int i = 0; i < str.length(); i++)\n {\n // converting in range 0-25\n if(str.charAt(i) == ' ' || str.charAt(i) == '\\n')\n cipher_text+= str.charAt(i);\n else{ \n int x = (str.charAt(i) + key.charAt(i)) %26;\n // convert into alphabets(ASCII)\n x += 'A';\n \n cipher_text+=(char)(x);}\n }\n return cipher_text;\n}", "public void shingleString(String s) {\n\t\tint len = s.length();\n\t\tif(len<this.k){\n\t\t\tSystem.out.println(\"Error! k>word length\");\n\t\t}else{\n\t\t\tfor(int i=0;i<(len-this.k+1);i++){\n\t\t\t\tString shingle = s.substring(i, i+this.k);\n\t\t\t\tif(!this.contains(shingle)){\n\t\t\t\t\tthis.add(shingle);\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(this.toString());\n\t}", "private void addCustomWords() {\r\n\r\n }", "static String stringCutter1(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n\n // pemotongan string untuk pemotongan kelompok pertama\n String sentence1 = s.substring(0, value);\n\n // perulangan untuk menggeser nilai setiap karakter\n String wordNow = \"\";\n for (int i = 0; i < sentence1.length(); i++) {\n char alphabet = sentence1.toUpperCase().charAt(i);\n // pengubahan setiap karakter menjadi int\n // untuk menggeser 3 setiap nilai nya\n int asciiDecimal = (int) alphabet;\n // pengecekan kondisi apabila karakter melewati kode ascii nya\n if (asciiDecimal > 124) {\n int alphabetTransfer = 0 + (127 - asciiDecimal);\n wordNow += (char) alphabetTransfer;\n\n } else {\n int alphabetTrasfer = asciiDecimal + 3;\n wordNow += (char) alphabetTrasfer;\n }\n }\n return wordNow;\n }", "public void add(String word) {\n Signature sig = new Signature(word);\n add(sig, word);\n }", "public static String RemoveDuplicatedLetters(String s, int k) {\n if (s.length() < k) {\n return s;\n }\n String result = \"\";\n int counter = 1;\n Stack<String> stack = new Stack<>();\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n result += stack.pop();\n\n while (!stack.isEmpty()) {\n if (stack.peek().equals(result.charAt(0) + \"\")) {\n counter += 1;\n } else {\n counter = 1;\n }\n result = stack.pop() + result;\n if (counter == k) {\n result = result.length() == k ? \"\" : result.substring(k);\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n counter = 0;\n }\n }\n return result;\n }", "public static String appendAndDelete(String s, String t, int k) {\n if (s.equals(t)) {\n return \"Yes\";\n }\n\n // Return yes if the same length\n if (s.length() == t.length()) {\n if (s.length() < k) {\n return \"Yes\";\n } else {\n return \"No\";\n }\n }\n\n // Return yes of all letters are the same in both\n String test = s.substring(0,1);\n boolean same = true;\n for (int i = 0; i < s.length(); i++) {\n if (!test.equals(s.substring(i, i+1))) {\n same = false;\n break;\n }\n }\n for (int i = 0; i < t.length(); i++) {\n if (!test.equals(t.substring(i, i+1))) {\n same = false;\n break;\n }\n }\n if (same) {\n return \"Yes\";\n }\n // find the shorter length\n String shorter = \"\";\n String longer = \"\";\n if (s.length() < t.length()) {\n shorter = s;\n longer = t;\n } else if (t.length() < s.length()) {\n shorter = t;\n longer = s;\n } else {\n }\n\n\n\n // Only loop if the lengths are different\n int index = 0;\n for (int i = 0; i < shorter.length(); i++) {\n if (s.charAt(i) != t.charAt(i)) {\n //time to record index\n index = i;\n break;\n }\n }\n\n// if (index == 0 && shorter.equals(\"\")) {\n// return \"Yes\";\n// }\n\n if ((s.length() - index) + (t.length() - index) == k) {\n return \"Yes\";\n }\n return \"No\";\n\n\n }", "public static String caesarify(String text, int key) {\r\n String newText = \"\";\r\n String alpha = shiftAlphabet(0);\r\n String newAlpha = shiftAlphabet(key);\r\n\r\n for (int i = 0; i < text.length(); i++) {\r\n String currentLetter = String.valueOf(text.charAt(i));\r\n int indexOfLetter = alpha.indexOf(currentLetter);\r\n String letterReplacement = String.valueOf(newAlpha.charAt(indexOfLetter));\r\n\r\n newText += letterReplacement;\r\n\r\n }\r\n return newText;\r\n }", "private final void setto(String s)\n\t { int l = s.length();\n\t int o = j+1;\n\t for (int i = 0; i < l; i++) b[o+i] = s.charAt(i);\n\t k = j+l;\n\t }", "public void add(String previous, String current, String next)\n\t{\n\t\t//assume the input is \"aaa bbb ccc aaa ddd\"\n\t\t// the map is :\n\t\t// aaa -> {bbb, ddd}\n\t\t// bbb -> {ccc}\n\t\t// aaa bbb -> {ccc}\n\t\t// bbb ccc -> {ddd}\n\t\t// ccc -> {ddd}\n\t\t// ccc aaa -> {ddd}\n\t\t// ddd -> {null}\n\t\t\n\t\t//it means the key is not just a string of \"XXX XXX\"(two words connected by one space),\n\t\t//but also a single word\n\t\t//because user will input one single word(but not two) as the prefix\n\t\t\n\t\t//one is nextSet of current\n\t\taddOneWord(current, next);\n\t\t\n\t\t//it is not the first time. add suffix to the nextSet of \"previous current\"\n\t\tif(previous != null)\n\t\t{\n\t\t\tString preAndCurrent = previous + \" \" + current;\n\t\t\t\n\t\t\taddOneWord(preAndCurrent, next);\n\t\t}\n\t}", "public static void addKeyWord(String word)\r\n\t{\r\n\t\tkeywords.add(word);\r\n\t}", "public void add(CharSequence s, Language lang) {\r\n\t\t\r\n\t\t//Convert String to Hash Code\r\n\t\tint kmer = s.hashCode();\r\n\t\t\r\n\t\t//Get The Handle of the map for the particular language\r\n\t\tMap<Integer, LanguageEntry> langDb = getLanguageEntries(lang);\r\n\t\t\r\n\t\t\r\n\t\tint frequency = 1;\r\n\t\t//If Language Mapping Already has the Kmer, increment its Frequency\r\n\t\tif (langDb.containsKey(kmer)) {\r\n\t\t\tfrequency += langDb.get(kmer).getFrequency();\r\n\t\t}\r\n\t\t//Otherwise Insert into Map as New Language Entry\r\n\t\tlangDb.put(kmer, new LanguageEntry(kmer, frequency));\r\n\t\r\n\t\t\r\n\t}", "public void addWord(String word) {\n if (word == null || word.equals(\"\")) return;\n char[] str = word.toCharArray();\n WordDictionary cur = this;\n for (char c: str) {\n if (cur.letters[c - 'a'] == null) cur.letters[c - 'a'] = new WordDictionary();\n cur = cur.letters[c - 'a'];\n }\n cur.end = true;\n }", "void addDigit(int digit) {\n preDigits.append((char)('0' + digit));\n }", "String transcribe(String dnaStrand) {\n\t\tStringBuilder rnaStrand = new StringBuilder();\n\t\t\n\t\tfor(int i=0; i<dnaStrand.length(); i++)\n\t\t{\n\t\t\t//using append function to add the characters in rnaStrand\n\t\t\trnaStrand.append(hm.get(dnaStrand.charAt(i)));\n\t\t}\n\t\t\n\t\t//return rnaStrand as String.\n\t\treturn rnaStrand.toString();\n\t}", "public static void main(String args[]) \n {\n Scanner in=new Scanner(System.in);\n String text=in.nextLine();\n StringBuilder str=new StringBuilder(text);\n int str_len=str.length();\n int key=in.nextInt();\n for(int i=0;i<str_len;i++)\n {\n if(str.charAt(i)!=' ')\n {\n int ch=str.charAt(i)-key;\n if(str.charAt(i)>'A' && str.charAt(i)<'Z')\n {\n if(ch<'A')\n {\n ch=ch+26;\n }\n }\n else if(str.charAt(i)>'a' && str.charAt(i)<'z')\n {\n if(ch<'a')\n {\n ch=ch+26;\n }\n }\n str.setCharAt(i,(char)ch);\n }\n }\n System.out.print(str);\n }", "public static void nl(String nl) {\n Formatting.nl = nl;\n Formatting.dnl = nl + nl;\n }", "private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "@Override\n\tpublic String decorate(String d) {\n\t\tString decorated = \"\";\n\t\tfor(int i = 0; i < d.length(); i++) {\n\t\t\tif(i == 4 || i == 8 || i == 12) {\n\t\t\t\tdecorated += \" \" + d.charAt(i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdecorated += d.charAt(i);\n\t\t\t}\n\t\t}\n\t\treturn decorated;\n\t}", "public static String solution(String S, int K) {\n StringBuilder string = new StringBuilder();\n for (int i = 0; i < S.length(); i++) {\n char character = S.charAt(i);\n if (character == '-') continue;\n string.append(character);\n }\n // Builds a new string with hyphens between characters,\n // separating string into substrings of size K.\n StringBuilder output = new StringBuilder(string.length());\n for (int i = 0; i < string.length(); i++) {\n char character = string.charAt(i);\n if (i != 0 && i % K == 0) {\n output.append('-');\n output.append(character);\n } else {\n output.append(character);\n }\n }\n\n char character = output.charAt(output.length() - 1);\n int count = 0;\n while (character != '-') {\n count++;\n character = output.charAt(output.length() - (count + 1));\n }\n\n String result = output.toString();\n while (count < 3) {\n result = moveHypensLeft(result);\n count++;\n }\n\n return result;\n }", "private int preNonSpace(String s, int k){\n \twhile(k>=0){\n \t\tif(!s.substring(k,k+1).equals(\" \"))\n \t\t\tbreak;\n \t\tk--;\n \t}\n \treturn k;\n }", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tStringBuffer stb = new StringBuffer(\"abcdefghigklmnopqrstuvwxyz\");\r\n\t\tStringBuffer result = new StringBuffer(\"\");\r\n\t\t\r\n\t\tString stP = sc.nextLine();\r\n\t\tString stK = sc.nextLine();\r\n\t\tint numP;\r\n\t\tint numK;\r\n\t\tint index;\r\n\t\t\r\n\t\tint j=0;\r\n\t\tfor(int i=0;i<stP.length();i++){\r\n\t\t\t\r\n\t\t\tif(j!=stK.length()){\r\n\t\t\t\t\r\n\t\t\t\tif((int)stP.charAt(i)==32){\r\n\t\t\t\t\tresult.append(\" \");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tnumP=((int)stP.charAt(i)-96);\r\n\t\t\t\t\tnumK=((int)stK.charAt(j)-96);\r\n\t\t\t\t\tindex = numP-numK;\r\n\t\t\t\t\r\n\t\t\t\t\tif(index<=0) index += 26;\r\n\t\t\t\t\r\n\t\t\t\t\tresult.append(stb.charAt(index-1));\r\n\t\t\t\t}\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tj=0; i--;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(result.toString());\r\n\t\r\n\t}", "public void setKakaricd(String kakaricd) {\r\n this.kakaricd = kakaricd;\r\n }", "public int characterReplacement2(String s, int k) {\n Set<Character> letters = new HashSet();\n int longest = 0;\n for(int i=0;i<s.length();i++) letters.add(s.charAt(i));\n for(char l: letters){\n int c = 0;\n for(int i=0,j=0;j<s.length();j++){\n if(l==s.charAt(j))c++;\n if((j-i+1)>c+k)\n if(l==s.charAt(i++)) c--;\n longest = Math.max(j-i+1, longest);\n }\n }\n return longest;\n }", "private static void printLatinWord(String s) {\n\t\tif (s.length() < 2|| !s.matches(\"\\\\w*\")) {\n\t\t\tSystem.out.print(s+\" \");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.print(s.replaceAll(\"(\\\\w)(\\\\w*)\", \"$2$1ay \"));\n\t}", "String replaceInString(String s) {\n\t\tString newS = s.replaceAll(\"[a-zA-Z]+\", \"WORT\");\n\t\tif (newS == s) {\n\t\t\tSystem.out.println(\"gleich\");\n\t\t}\n\t\treturn newS;\n\t}", "public String a(String str) {\n return str + \" Tunnel key: \" + this.h.f();\n }", "public static String crypter (String chaineACrypter, int codeCryptage) {\r\n char car;\r\n char newCar;\r\n int charLength = chaineACrypter.length();\r\n\r\n for(int i = 0; i < charLength; i++){\r\n car = chaineACrypter.charAt(i);\r\n if(car >= 'a' && car <= 'z'){\r\n newCar = (char)(car + codeCryptage);\r\n if (i == 0) {\r\n chaineACrypter = newCar + chaineACrypter.substring(i+1);\r\n }else{\r\n chaineACrypter = chaineACrypter.substring(0, i) + newCar + chaineACrypter.substring(i+1);\r\n }\r\n }else if(car >= 'A' && car <= 'Z'){\r\n newCar = (char)(car - codeCryptage);\r\n if (i == 0) {\r\n chaineACrypter = newCar + chaineACrypter.substring(i+1);\r\n }else{\r\n chaineACrypter = chaineACrypter.substring(0, i) + newCar + chaineACrypter.substring(i+1);\r\n }\r\n }else if(car >= '0' && car <= '9'){\r\n newCar = (char)(car + 7 % codeCryptage);\r\n if (i == 0) {\r\n chaineACrypter = newCar + chaineACrypter.substring(i+1);\r\n }else{\r\n chaineACrypter = chaineACrypter.substring(0, i) + newCar + chaineACrypter.substring(i+1);\r\n }\r\n }\r\n }\r\n\r\n\r\n return chaineACrypter;\r\n }", "public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }", "@Override\n public String encrypt(String word, int cipher) {\n String result = \"\";\n int postcipher = 0;\n boolean wasUpper = false;\n for(int i = 0; i < word.length(); i++)\n {\n char c = word.charAt(i);\n postcipher = c;\n if(Character.isLetter(c)) {\n if (c < ASCII_LOWER_BEGIN) { //change to lowercase\n c += ASCII_DIFF;\n wasUpper = true;\n }\n postcipher = ((c + cipher - ASCII_LOWER_BEGIN) % NUM_ALPHABET + ASCII_LOWER_BEGIN); //shift by cipher amount\n if (wasUpper)\n postcipher -= ASCII_DIFF; //turn back into uppercase if it was uppercase\n wasUpper = false;\n }\n result += (char)postcipher; //add letter by letter into string\n }\n return result;\n }", "private void addWord(String s) {\n TrieNode node = root;\n for(int i = 0; i < s.length(); i++) {\n int index = s.charAt(i) - 'a';\n if (node.trieNodes[index] == null) {\n node.trieNodes[index] = new TrieNode();\n }\n node = node.trieNodes[index];\n }\n node.isLeave = true;\n }", "private static void stringBuff() {\n StringBuffer s1 = new StringBuffer(\"Shubham Dhage\");\n StringBuffer newString = s1.append(\"!!!\");\n StringBuffer insertString = s1.insert(0, 'B');\n\n System.out.println(newString);\n System.out.println(insertString);\n }", "public String makeKey ()\n {\n String stop = \"*\"; // default\n\n if (stopFormat.length() > 0)\n stop = String.valueOf(stopFormat.charAt(0));\n\n key = \"<BR>\";\n\n if (code.equals(\"Standard\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><B><FONT COLOR=red>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M S</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n if (unknownStatus == 1)\n key += (\"<BR>Unknown codon: <TT><FONT COLOR=#ff6633><B>u</B></FONT><BR></TT>\");\n\n\n return (key + \"<HR>\");\n\n}", "public static String calculateLetter(int dniNumber) {\n String letras = \"TRWAGMYFPDXBNJZSQVHLCKEU\";\n int indice = dniNumber % 23;\n return letras.substring(indice, indice + 1);\n }", "public String encrypt(String input)\n {\n StringBuilder encrypted = new StringBuilder(input);\n\n String alphabetLower = alphabet.toLowerCase();\n String shiftedAlphabetLower1 = shiftedAlphabet1.toLowerCase();\n String shiftedAlphabetLower2 = shiftedAlphabet2.toLowerCase();\n\n for (int k = 0; k < encrypted.length() ; k++)\n {\n char currentChar = encrypted.charAt(k);\n int indexOfCurrentCharAlphabet = alphabet.indexOf(currentChar);\n int indexOfCurrentCharLower = alphabetLower.indexOf(currentChar);\n\n if (indexOfCurrentCharAlphabet != -1 && k % 2 == 0)\n {\n char newCurrentCharAlphabet = shiftedAlphabet1.charAt(indexOfCurrentCharAlphabet);\n encrypted.setCharAt(k, newCurrentCharAlphabet);\n }\n\n if (indexOfCurrentCharAlphabet != -1 && k % 2 != 0)\n {\n char newCurrentCharAlphabet = shiftedAlphabet2.charAt(indexOfCurrentCharAlphabet);\n encrypted.setCharAt(k, newCurrentCharAlphabet);\n }\n\n if (indexOfCurrentCharLower != -1 && k % 2 == 0)\n {\n char newCurrentCharLower = shiftedAlphabetLower1.charAt(indexOfCurrentCharLower);\n encrypted.setCharAt(k, newCurrentCharLower);\n }\n\n if (indexOfCurrentCharLower != -1 && k % 2 != 0)\n {\n char newCurrentCharLower = shiftedAlphabetLower2.charAt(indexOfCurrentCharLower);\n encrypted.setCharAt(k, newCurrentCharLower);\n }\n }\n return encrypted.toString();\n }", "public void addBike(String bike) {\n if (index == bikes.length) {\n String[] largerBikes = new String[bikes.length + 5];\n System.arraycopy(bikes, 0, largerBikes, 0, bikes.length);\n bikes = largerBikes;\n }\n\n bikes[index] = bike;\n index++;\n }", "public void mo13890h(String str) {\n this.f5088n = str;\n }", "private String addCharacter() {\n\t\t// Two Parameters: CharaNumber, CharaName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|chara\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}", "Builder addCharacter(String value);", "public IDnaStrand append(String dna);", "private static String m12563a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "public void insertDH(String s) {\n int key = Math.floorMod(oaat(s.toCharArray()), this.size);\n int step = Math.floorMod(fnv1a32(s.toCharArray()), this.size - 1) + 1;\n while (this.data[key] != null) {\n this.collisions++;\n key = Math.floorMod(key + step, this.size);\n }\n this.data[key] = s;\n }", "@Override\n\tpublic void addAtBeginning(String data) {\n\t}", "public final void mo7596sH(String str) {\n }", "static String m60358a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "private void addSpaces(String text) {\n if (!text.equals(myPreviousText)) {\n // Remove spaces\n text = text.replace(\" \", \"\");\n\n // Add space between each character\n StringBuilder newText = new StringBuilder();\n for (int i = 0; i < text.length(); i++) {\n if (i == text.length() - 1) {\n // Do not add a space after the last character -> Allow user to delete last character\n newText.append(Character.toUpperCase(text.charAt(text.length() - 1)));\n }\n else {\n newText.append(Character.toUpperCase(text.charAt(i)) + LETTER_SPACING);\n }\n }\n\n myPreviousText = newText.toString();\n // Update the text with spaces and place the cursor at the end\n myEditText.setText(newText);\n myEditText.setSelection(newText.length());\n }\n }", "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}", "public String encrypt(String word) {\n char[] encrypted = word.toCharArray();\n for (int i = 0; i < encrypted.length; i++){\n if (encrypted[i] == 'x' || encrypted[i] == 'y' || encrypted[i] == 'z'){\n encrypted[i] -= 23;\n } else {\n encrypted[i] += 3;\n }\n \n }\n String encryptedResult = new String(encrypted);\n return encryptedResult;\n }", "private void genRunwayName(Group root, String runwayId, Integer helperHeight){\n Point runwayPos = controller.getRunwayPos(runwayId);\n Dimension runwayDim = controller.getRunwayDim(runwayId);\n\n //text color and text font\n javafx.scene.text.Font font = new javafx.scene.text.Font(\"SansSerif\", runwayDim.height/2);\n Color fontColor = convertToJFXColour(Settings.RUNWAY_NAME_COLOUR);\n\n // rotate to make the string flat on the runway\n Rotate flatRotation = new Rotate(-90,0,-1,0, Rotate.X_AXIS);\n\n //offset for the id\n Integer idOffset = 16;\n //offset for the letter;\n Double letterOffset = 30.5;\n //offset for putting the letter which has a smaller font higher\n Integer letterHeightOffset = 10;\n\n if(runwayId.length() == 2){\n Text text = new Text(runwayId);\n text.setFill(fontColor);\n text.setFont(font);\n text.setTranslateX(runwayPos.x - runwayDim.height/2 + idOffset);\n text.setTranslateZ(-runwayPos.y + runwayNameOffset);\n text.setTranslateY(-helperHeight);\n\n Rotate rotate = new Rotate(controller.getBearing(runwayId), runwayDim.height/2 - idOffset,0, -runwayNameOffset, Rotate.Y_AXIS);\n text.getTransforms().add(rotate);\n text.getTransforms().add(flatRotation);\n\n text.setCache(true);\n text.setCacheHint(CacheHint.QUALITY);\n root.getChildren().add(text);\n\n }else{\n Text newRunwayId = new Text(runwayId.substring(0,2));\n newRunwayId.setFill(fontColor);\n newRunwayId.setFont(font);\n Text letter = new Text(runwayId.charAt(2) + \"\");\n letter.setFill(fontColor);\n letter.setFont(new javafx.scene.text.Font(\"SansSerif\", runwayDim.height/2-10));\n\n newRunwayId.setTranslateX(runwayPos.x - runwayDim.height/2 + idOffset);\n newRunwayId.setTranslateZ(-runwayPos.y + runwayNameOffset);\n newRunwayId.setTranslateY(-helperHeight);\n\n Rotate IdRotate = new Rotate(controller.getBearing(runwayId), runwayDim.height/2 - idOffset,0, - runwayNameOffset, Rotate.Y_AXIS);\n newRunwayId.getTransforms().add(IdRotate);\n\n letter.setTranslateX(runwayPos.x - runwayDim.height/2 + letterOffset);\n letter.setTranslateZ(-runwayPos.y + runwayNameOffset - runwayDim.height/2 + letterHeightOffset);\n letter.setTranslateY(-helperHeight);\n\n Rotate letterRotate = new Rotate(controller.getBearing(runwayId), runwayDim.height/2 - letterOffset,0, - runwayNameOffset + runwayDim.height/2 - letterHeightOffset, Rotate.Y_AXIS);\n letter.getTransforms().add(letterRotate);\n\n newRunwayId.getTransforms().add(flatRotation);\n letter.getTransforms().add(flatRotation);\n\n newRunwayId.setCache(true);\n newRunwayId.setCacheHint(CacheHint.QUALITY);\n\n letter.setCache(true);\n letter.setCacheHint(CacheHint.QUALITY);\n\n root.getChildren().add(newRunwayId);\n root.getChildren().add(letter);\n }\n }", "public void cogerLetra(String letra){\r\n sb.append(letra);\r\n }", "public static final String shift(String text) {\n return \"+\" + text; /*I18nOK:LINE*/\n }", "void mo1935c(String str);", "public String originalText(String cipher_text, String key)\n{\n String orig_text=\"\";\n \n for (int i = 0 ; i < cipher_text.length() && \n i < key.length(); i++)\n {\n if(cipher_text.charAt(i) == ' ' || cipher_text.charAt(i) == '\\n')\n orig_text+=cipher_text.charAt(i);\n else{\n // converting in range 0-25\n int x = (cipher_text.charAt(i) - \n key.charAt(i) + 26) %26; \n // convert into alphabets(ASCII)\n x += 'A';\n orig_text+=(char)(x);\n }\n }\n return orig_text;\n}", "public static void main(String[] args) {\n Scanner input= new Scanner(System.in);\n System.out.println(\" Enter a string value: \");\n String word=input.nextLine();\n String newWord=word.charAt(0)+\"\";\n for (int i = 1; i <word.length() ; i++) {\n if(word.charAt(i)>=65 && word.charAt(i)<=90){\n newWord+=\" \"+word.charAt(i);\n }else{\n newWord+=word.charAt(i);\n }\n\n }\n System.out.println(newWord);\n }", "char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}", "@Override\n\tpublic void updateKey() {\n\t\tkey = String.format(\"%s;%s;%s;%s;%s;%s;%s\", dim, x1, y1, z1, x2, y2, z2);\n\t}", "public static void main(String[] args) {\n String str =\"any text goes here\";\n System.out.println(str);\n String str2 = \"1\";\n System.out.println(str2);\n String hello =\"Hello world\";\n System.out.println(\"hello\");\n\n String myName =\"Cybertek\"+\"School\";\n System.out.println(\"myName\");\n //Example\n String name = \"Parizat\";\n System.out.println(\"My name is \"+name);\n\n String newStr = \"100\"+10;//10010\n System.out.println(newStr);\n\n System.out.println(1+2+3);//6\n System.out.println(\"1\"+2+3);//123 \"12\"+3==>123\n //System.out.println(\"1\"+1-3); \"11\"-3\n\n System.out.println(\"Batch 12\"+ 1+2);//\"Batch 121\"+2====>Batch1212\n\n System.out.println(2-1+1+\"4\");//24\n System.out.println(1+\"123\"+4+5);//112345\n\n System.out.println(\"123\"+(4+5));\n System.out.println(1+(\"1\"+2));//112\n// 1+ \"12\"==>112\n\n System.out.println(1+\"123\"+(4+5));\n// \"1123\"+ 9====>11239\n\n System.out.println(4+3-(9+3));\n// 7-12===>-5\n System.out.println((1+2)+\"3\");//33\n\n //System.out.println(_(1+2)- \"3\" );\n// 3 text\n\n\n String BookName=\"I like the booke call\\'Game of throne \\'\";\n System.out.println(BookName);\n\n String MyInfo = \"my name is \\n\\tCybertek\";\n System.out.println(MyInfo);\n\n System.out.println('3'+3);\n // 51+3====>54\n System.out.println(\"3\"+3);\n\n\n System.out.println(\"3\"+'3');//if we concat char to string,char is concat as a character\n // \"3\"+3\n System.out.println(12+'3');//if we concat char to number ,representive number char will comncat\n// 12+51=63\n\n System.out.println(2+3);//5\n System.out.println(\"2\"+3);//23\n\n System.out.println('7'+3);//58\n // 55+3=58\n\n System.out.println('7'+\"3\");//73\n System.out.println('7'+9);\n // 53+9\n\n\n\n\n\n }", "void addHadithText(Object newHadithText);", "void mo1329d(String str, String str2);", "void mo41089d(String str);", "static String richieRich(String s, int n, int k){\n // Complete this function\n StringBuilder left;\n StringBuilder right;\n left = new StringBuilder(s.substring(0,s.length()/2));\n if(s.length()%2 == 0){\n right = new StringBuilder(s.substring(s.length()/2));\n }else{\n right = new StringBuilder(s.substring(s.length()/2+1));\n }\n \n StringBuilder reverseRight = new StringBuilder();\n int j=0;\n for(int i=right.length()-1;i>=0;i--){\n reverseRight.append(right.charAt(i));\n j++;\n }\n \n right = reverseRight;\n int diff = 0;\n for(int i=0;i<left.length();i++){\n if(left.charAt(i) != right.charAt(i)){\n diff++;\n }\n }\n int availableChanges = k;\n //int changesMade = 0;\n if(diff > k){\n return \"-1\";\n }\n for(int i=0;i<left.length();i++){\n char leftChar = left.charAt(i);\n char rightChar = right.charAt(i);\n if(leftChar != rightChar){\n if(leftChar == '9'){\n k--;\n diff--;\n right.setCharAt(i,'9');\n }else if(rightChar == '9'){\n k--;\n diff--;\n left.setCharAt(i,'9');\n }else{\n if(k-2 < diff-1){\n k--;\n diff--;\n if(leftChar > rightChar){\n right.setCharAt(i,leftChar);\n }else{\n left.setCharAt(i,rightChar);\n }\n }else{\n k -=2;\n diff--;\n left.setCharAt(i,'9');\n right.setCharAt(i,'9');\n }\n }\n \n \n }else{\n if(k > diff){\n if(leftChar!= '9'){\n if(k-2 >= diff){\n k -=2;\n left.setCharAt(i,'9');\n right.setCharAt(i,'9');\n \n } \n }\n }\n }\n }\n \n reverseRight = new StringBuilder(\"\");\n int j_i=0;\n for(int i=right.length()-1;i>=0;i--){\n reverseRight.append(right.charAt(i));\n j_i++;\n }\n \n \n right = reverseRight;\n if(s.length()%2 == 0){\n return left.toString()+right.toString(); \n }else{\n if(k > 0){\n return left.toString()+ '9' +right.toString();\n }else{\n return left.toString()+ s.charAt(s.length()/2) +right.toString();\n }\n }\n \n }", "public void setHangmanWord()\n {\n if(word == null || word == \"\") return;\n\n String hangmanWord = \"\";\n for(int i=0; i<word.length(); i++)\n {\n if(showChar[i])\n hangmanWord += word.substring(i, i+1)+\" \";\n else\n hangmanWord += \"_ \";\n }\n\n wordTextField.setText(hangmanWord.substring(0, hangmanWord.length()-1));\n }", "public void addWord(String word) {\n \tTrieNode curr=root;\n for(int i=0;i<word.length();i++){\n \tchar ch=word.charAt(i);\n \tif(curr.children[ch-'a']==null)\n \t\tcurr.children[ch-'a']=new TrieNode();\n \tif(i==word.length()-1)\n \t\tcurr.children[ch-'a'].isCompleteword=true;\n \t\n \tcurr=curr.children[ch-'a'];\n }\n }", "public void addWord(String s)\n {\n if(s.isEmpty())\n return;\n prefixes++;\n char first = s.charAt(0);\n if(children.containsKey(first))\n children.get(first).addWord(s.substring(1));\n else {\n TrieTree trieTree = new TrieTree();\n trieTree.addWord(s.substring(1));\n children.put(first, trieTree);\n }\n childrenAdded.add(first);\n }", "static String lexography(String s,int k) {\n\t\tString smallest=\"\";\n\t\tString largest=\"\";\n\t\tString temp=\"\";\n\t\tsmallest=largest=s.substring(0, k);\n\t\tint x;\n\t\tfor(int i=1;i<=s.length()-k;i++)\n\t\t{\n\t\t\ttemp=s.substring(i,i+k);\n\t\t\t\n\t\t\tx=temp.compareTo(smallest);\n\t\t\tif(x<0) smallest=temp;\n\t\t\tx=temp.compareTo(largest);\n\t\t\tif(x>0) largest=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t return smallest+\"\\n\"+largest;\n\t}", "@Override\n public void insertString(int offs, String str, AttributeSet a) throws NumberFormatException {\n int help;\n\n\n if (Character.isDigit(str.charAt(0))) {\n help = Character.digit(str.charAt(0),10);\n if (help < 10) {\n if (super.getLength() + str.length() > maxWert) {\n str = str.substring(0, maxWert - super.getLength());\n }\n try {\n super.insertString(offs, str, a);\n\n String text = super.getText(0, super.getLength());\n if(text != null && !text.equals(\"\")){\n edge.setWeight(Integer.parseInt(text));\n\n }\n\n } catch (BadLocationException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void add(String str) throws NoSuchAlgorithmException{\n\t\t\n\t\tint[] position=hashpositions(str);\n\t\t\n\t\t\n\t\tfor(int i=0;i<k;i++)\n\t\t\tbloomfilter.set(position[i]);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void add(String s) {\n s = s.toUpperCase();\n TrieNode node = root;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (node.get(c) == null) node.put(c, new TrieNode());\n node = node.get(c);\n }\n node.isLeaf = true;\n\n }", "@Override\n\tpublic void talk(String s) {\n\t\tString[] stuff=s.split(\" \");\n\t\tString talkString=\"\";\n\t\tfor (String string : stuff) {\n\t\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\t\tif(i<string.length()/2) {\n\t\t\t\t\ttalkString+=\"o\";\n\t\t\t\t}else {\n\t\t\t\ttalkString+=\"i\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttalkString+=\"nk \";\n\t\t}\n\t\tSystem.out.println(talkString);\n\t}" ]
[ "0.601907", "0.56482184", "0.55470425", "0.55386496", "0.5526456", "0.5368118", "0.53610003", "0.5344471", "0.53436494", "0.53418946", "0.5301528", "0.529603", "0.5264234", "0.5260861", "0.5250663", "0.5237331", "0.5237076", "0.5228651", "0.52285135", "0.5197365", "0.5179032", "0.51593846", "0.5156647", "0.5149728", "0.51457083", "0.5143751", "0.5119367", "0.5114534", "0.5103331", "0.5099776", "0.50900346", "0.5086957", "0.50849044", "0.50812936", "0.50607455", "0.50481784", "0.50381327", "0.50319564", "0.5025423", "0.50216633", "0.50139225", "0.5012234", "0.50117314", "0.5009178", "0.5000967", "0.49953976", "0.49913758", "0.49798435", "0.49733794", "0.49700895", "0.49682653", "0.49657074", "0.49607134", "0.49537423", "0.495046", "0.4949941", "0.49446893", "0.4933297", "0.49331218", "0.4931156", "0.49271318", "0.4926396", "0.49168915", "0.49168915", "0.49137747", "0.49113256", "0.49059862", "0.4904529", "0.49040365", "0.48936814", "0.48828128", "0.48825258", "0.48815215", "0.4876697", "0.48760033", "0.48757917", "0.4870628", "0.48690915", "0.4866726", "0.486041", "0.48570365", "0.48539197", "0.48494673", "0.48492414", "0.48437455", "0.4842053", "0.4841929", "0.48399478", "0.48347452", "0.4826483", "0.48243275", "0.48220068", "0.4819897", "0.48193786", "0.48186952", "0.48143002", "0.4808374", "0.48032692", "0.48005253", "0.47997034" ]
0.55153584
5
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,HomeActivity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel1Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel2Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel3Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel4Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel5Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel6Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel7Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel8Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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