Class Item

 1 /*
 2  * Copyright (c) 2019 Martin Davis.
 3  *
 4  * All rights reserved. This program and the accompanying materials
 5  * are made available under the terms of the Eclipse Public License 2.0
 6  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
 7  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
 8  * and the Eclipse Distribution License is available at
 9  *
10  * http://www.eclipse.org/org/documents/edl-v10.php.
11  */
12 package org.locationtech.jts.index.hprtree;
13  
14 import org.locationtech.jts.geom.Envelope;
15  
16 public class Item {
17  
18   private Envelope env;
19   private Object item;
20  
21   public Item(Envelope env, Object item) {
22     this.env = env;
23     this.item = item;
24   }
25  
26   public Envelope getEnvelope() {
27     return env;
28   }
29   
30   public Object getItem() {
31     return item;
32   }
33   
34   public String toString() {
35     return "Item: " + env.toString();
36   }
37 }
38