1 /*
2  * Copyright (C) 2011 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.inject.grapher;
18 
19 /**
20  * Alias between two nodes. Causes the 'from' node to be aliased with the 'to' node, which means
21  * that the 'from' node is not rendered and all edges going to it instead go to the 'to' node.
22  *
23  * @author bojand@google.com (Bojan Djordjevic)
24  * @since 4.0
25  */
26 public final class Alias {
27   private final NodeId fromId;
28   private final NodeId toId;
29 
Alias(NodeId fromId, NodeId toId)30   public Alias(NodeId fromId, NodeId toId) {
31     this.fromId = fromId;
32     this.toId = toId;
33   }
34 
getFromId()35   public NodeId getFromId() {
36     return fromId;
37   }
38 
getToId()39   public NodeId getToId() {
40     return toId;
41   }
42 }
43