nodedata.java

来自「JAVA 所有包」· Java 代码 · 共 53 行

JAVA
53
字号
/* * @(#)NodeData.java	1.4 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.orbutil.graph ;/** Data about a node in a graph.  */public class NodeData {    private boolean visited ;    private boolean root ;    public NodeData()    {	clear() ;    }    public void clear()    {	this.visited = false ;	this.root = true ;    }    /** Return whether this node has been visited in a traversal.     * Note that we only support a single traversal at a time.     */    boolean isVisited()     {	return visited ;    }    void visited()    {	visited = true ;    }    /** Return whether this node is a root.     */    boolean isRoot()     {	return root ;    }    void notRoot()    {	root = false ;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?