CINXE.COM

org.eclipse.example.calc/src/org/eclipse/example/calc/Operation.java - training/sample - Git at Google

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>org.eclipse.example.calc/src/org/eclipse/example/calc/Operation.java - training/sample - Git at Google</title><link rel="stylesheet" type="text/css" href="/+static/base.css"><link rel="stylesheet" type="text/css" href="/+static/prettify/prettify.css"><!-- default customHeadTagPart --></head><body class="Site"><header class="Site-header"><div class="Header"><a class="Header-image" href="/"><img src="//www.gstatic.com/images/branding/lockups/2x/lockup_git_color_108x24dp.png" width="108" height="24" alt="Google Git"></a><div class="Header-menu"> <a class="Header-menuItem" href="https://accounts.google.com/AccountChooser?faa=1&amp;service=gerritcodereview&amp;continue=https://gerrit.googlesource.com/login/training/sample/%2B/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse/example/calc/Operation.java">Sign in</a> </div></div></header><div class="Site-content"><div class="Container "><div class="Breadcrumbs"><a class="Breadcrumbs-crumb" href="/?format=HTML">gerrit</a> / <a class="Breadcrumbs-crumb" href="/training/">training</a> / <a class="Breadcrumbs-crumb" href="/training/sample/">sample</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b">4887eaf5cc6d1cffaf78f030401e4725bc0e786b</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/">.</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc">org.eclipse.example.calc</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src">src</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org?autodive=0">org</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse?autodive=0">eclipse</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse/example?autodive=0">example</a> / <a class="Breadcrumbs-crumb" href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse/example/calc">calc</a> / <span class="Breadcrumbs-crumb">Operation.java</span></div><div class="u-sha1 u-monospace BlobSha1">blob: 68cb04646fb31be375fc9a3dc66bddf17addc3ce [<a href="/training/sample/+/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse/example/calc/Operation.java">file</a>] [<a href="/training/sample/+log/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse/example/calc/Operation.java">log</a>] [<a href="/training/sample/+blame/4887eaf5cc6d1cffaf78f030401e4725bc0e786b/org.eclipse.example.calc/src/org/eclipse/example/calc/Operation.java">blame</a>]</div><table class="FileContents"><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="1"></td><td class="FileContents-lineContents" id="1"><span class="com">/*******************************************************************************</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="2"></td><td class="FileContents-lineContents" id="2"><span class="com"> * Copyright (C) 2010, Matthias Sohn &lt;matthias.sohn@sap.com&gt;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="3"></td><td class="FileContents-lineContents" id="3"><span class="com"> *</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="4"></td><td class="FileContents-lineContents" id="4"><span class="com"> * All rights reserved. This program and the accompanying materials</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="5"></td><td class="FileContents-lineContents" id="5"><span class="com"> * are made available under the terms of the Eclipse Public License v1.0</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="6"></td><td class="FileContents-lineContents" id="6"><span class="com"> * which accompanies this distribution, and is available at</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="7"></td><td class="FileContents-lineContents" id="7"><span class="com"> * http://www.eclipse.org/legal/epl-v10.html</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="8"></td><td class="FileContents-lineContents" id="8"><span class="com"> *******************************************************************************/</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="9"></td><td class="FileContents-lineContents" id="9"><span class="kwd">package</span><span class="pln"> org</span><span class="pun">.</span><span class="pln">eclipse</span><span class="pun">.</span><span class="pln">example</span><span class="pun">.</span><span class="pln">calc</span><span class="pun">;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="10"></td><td class="FileContents-lineContents" id="10"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="11"></td><td class="FileContents-lineContents" id="11"><span class="kwd">public</span><span class="pln"> </span><span class="kwd">interface</span><span class="pln"> </span><span class="typ">Operation</span><span class="pln"> </span><span class="pun">{</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="12"></td><td class="FileContents-lineContents" id="12"><span class="pln"> </span><span class="com">/**</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="13"></td><td class="FileContents-lineContents" id="13"><span class="com"> * @return name of the operation</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="14"></td><td class="FileContents-lineContents" id="14"><span class="com"> */</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="15"></td><td class="FileContents-lineContents" id="15"><span class="pln"> </span><span class="kwd">public</span><span class="pln"> </span><span class="typ">String</span><span class="pln"> getName</span><span class="pun">();</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="16"></td><td class="FileContents-lineContents" id="16"><span class="pun">}</span></td></tr></table><script nonce="Dhlv93wLMZ9vCkbnB8X4rw">for (let lineNumEl of document.querySelectorAll('td.u-lineNum')) {lineNumEl.onclick = () => {window.location.hash = `#${lineNumEl.getAttribute('data-line-number')}`;};}</script></div> <!-- Container --></div> <!-- Site-content --><footer class="Site-footer"><div class="Footer"><span class="Footer-poweredBy">Powered by <a href="https://gerrit.googlesource.com/gitiles/">Gitiles</a>| <a href="https://policies.google.com/privacy">Privacy</a>| <a href="https://policies.google.com/terms">Terms</a></span><span class="Footer-formats"><a class="u-monospace Footer-formatsItem" href="?format=TEXT">txt</a> <a class="u-monospace Footer-formatsItem" href="?format=JSON">json</a></span></div></footer></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10