Skip to content

Commit b0bc20e

Browse files
authored
added missing license header (#138)
1 parent d6999a9 commit b0bc20e

File tree

69 files changed

+2072
-674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2072
-674
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ esri-geometry-api.jar
77
description.jardesc
88
*.bak
99
*.properties
10+
*.zip
1011

1112
# Intellij project files
1213
*.iml

src/main/java/com/esri/core/geometry/AttributeStreamOfDbl.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 1995-2015 Esri
2+
Copyright 1995-2017 Esri
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -31,14 +31,14 @@
3131

3232
final class AttributeStreamOfDbl extends AttributeStreamBase {
3333

34-
double[] m_buffer = null;
35-
int m_size;
34+
private double[] m_buffer = null;
35+
private int m_size;
3636

3737
public int size() {
3838
return m_size;
3939
}
4040

41-
public void reserve(int reserve)// only in Java
41+
public void reserve(int reserve)
4242
{
4343
if (reserve <= 0)
4444
return;
@@ -54,6 +54,10 @@ public void reserve(int reserve)// only in Java
5454

5555
}
5656

57+
public int capacity() {
58+
return m_buffer != null ? m_buffer.length : 0;
59+
}
60+
5761
public AttributeStreamOfDbl(int size) {
5862
int sz = size;
5963
if (sz < 2)

src/main/java/com/esri/core/geometry/AttributeStreamOfFloat.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 1995-2015 Esri
2+
Copyright 1995-2017 Esri
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@
3030

3131
final class AttributeStreamOfFloat extends AttributeStreamBase {
3232

33-
float[] m_buffer = null;
34-
int m_size;
33+
private float[] m_buffer = null;
34+
private int m_size;
3535

3636
public int size() {
3737
return m_size;
@@ -53,6 +53,10 @@ public void reserve(int reserve)// only in Java
5353

5454
}
5555

56+
public int capacity() {
57+
return m_buffer != null ? m_buffer.length : 0;
58+
}
59+
5660
public AttributeStreamOfFloat(int size) {
5761
int sz = size;
5862
if (sz < 2)
@@ -314,7 +318,7 @@ public void addRange(AttributeStreamBase src, int start, int count,
314318
resize(newSize);
315319

316320
if (bForward) {
317-
System.arraycopy(((AttributeStreamOfDbl) src).m_buffer, start,
321+
System.arraycopy(((AttributeStreamOfFloat) src).m_buffer, start,
318322
m_buffer, oldSize, count);
319323
} else {
320324
int n = count;

src/main/java/com/esri/core/geometry/AttributeStreamOfInt16.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 1995-2015 Esri
2+
Copyright 1995-2017 Esri
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@
3030

3131
final class AttributeStreamOfInt16 extends AttributeStreamBase {
3232

33-
short[] m_buffer = null;
34-
int m_size;
33+
private short[] m_buffer = null;
34+
private int m_size;
3535

3636
public int size() {
3737
return m_size;
@@ -53,6 +53,10 @@ public void reserve(int reserve)// only in Java
5353

5454
}
5555

56+
public int capacity() {
57+
return m_buffer != null ? m_buffer.length : 0;
58+
}
59+
5660
public AttributeStreamOfInt16(int size) {
5761
int sz = size;
5862
if (sz < 2)
@@ -299,7 +303,7 @@ public void addRange(AttributeStreamBase src, int start, int count,
299303
resize(newSize);
300304

301305
if (bForward) {
302-
System.arraycopy(((AttributeStreamOfDbl) src).m_buffer, start,
306+
System.arraycopy(((AttributeStreamOfInt16) src).m_buffer, start,
303307
m_buffer, oldSize, count);
304308
} else {
305309
int n = count;

src/main/java/com/esri/core/geometry/AttributeStreamOfInt32.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 1995-2015 Esri
2+
Copyright 1995-2017 Esri
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -31,10 +31,10 @@
3131

3232
final class AttributeStreamOfInt32 extends AttributeStreamBase {
3333

34-
int[] m_buffer = null;
35-
int m_size;
34+
private int[] m_buffer = null;
35+
private int m_size;
3636

37-
public void reserve(int reserve)// only in Java
37+
public void reserve(int reserve)
3838
{
3939
if (reserve <= 0)
4040
return;
@@ -54,6 +54,10 @@ public int size() {
5454
return m_size;
5555
}
5656

57+
public int capacity() {
58+
return m_buffer != null ? m_buffer.length : 0;
59+
}
60+
5761
public AttributeStreamOfInt32(int size) {
5862
int sz = size;
5963
if (sz < 2)
@@ -352,7 +356,7 @@ public void addRange(AttributeStreamBase src, int start, int count,
352356
resize(newSize);
353357

354358
if (bForward) {
355-
System.arraycopy(((AttributeStreamOfDbl) src).m_buffer, start,
359+
System.arraycopy(((AttributeStreamOfInt32) src).m_buffer, start,
356360
m_buffer, oldSize, count);
357361
} else {
358362
int n = count;

src/main/java/com/esri/core/geometry/AttributeStreamOfInt64.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 1995-2015 Esri
2+
Copyright 1995-2017 Esri
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@
3030

3131
final class AttributeStreamOfInt64 extends AttributeStreamBase {
3232

33-
long[] m_buffer = null;
34-
int m_size;
33+
private long[] m_buffer = null;
34+
private int m_size;
3535

3636
public int size() {
3737
return m_size;
@@ -53,6 +53,10 @@ public void reserve(int reserve)// only in Java
5353

5454
}
5555

56+
public int capacity() {
57+
return m_buffer != null ? m_buffer.length : 0;
58+
}
59+
5660
public AttributeStreamOfInt64(int size) {
5761
int sz = size;
5862
if (sz < 2)
@@ -299,7 +303,7 @@ public void addRange(AttributeStreamBase src, int start, int count,
299303
resize(newSize);
300304

301305
if (bForward) {
302-
System.arraycopy(((AttributeStreamOfDbl) src).m_buffer, start,
306+
System.arraycopy(((AttributeStreamOfInt64) src).m_buffer, start,
303307
m_buffer, oldSize, count);
304308
} else {
305309
int n = count;

src/main/java/com/esri/core/geometry/AttributeStreamOfInt8.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 1995-2015 Esri
2+
Copyright 1995-2017 Esri
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@
3030

3131
final class AttributeStreamOfInt8 extends AttributeStreamBase {
3232

33-
byte[] m_buffer = null;
34-
int m_size;
33+
private byte[] m_buffer = null;
34+
private int m_size;
3535

3636
public int size() {
3737
return m_size;
@@ -53,6 +53,10 @@ public void reserve(int reserve)// only in Java
5353

5454
}
5555

56+
public int capacity() {
57+
return m_buffer != null ? m_buffer.length : 0;
58+
}
59+
5660
public AttributeStreamOfInt8(int size) {
5761
int sz = size;
5862
if (sz < 2)
@@ -350,7 +354,7 @@ public void addRange(AttributeStreamBase src, int start, int count,
350354
resize(newSize);
351355

352356
if (bForward) {
353-
System.arraycopy(((AttributeStreamOfDbl) src).m_buffer, start,
357+
System.arraycopy(((AttributeStreamOfInt8) src).m_buffer, start,
354358
m_buffer, oldSize, count);
355359
} else {
356360
int n = count;

src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/*
2+
Copyright 1995-2017 Esri
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+
For additional information, contact:
17+
Environmental Systems Research Institute, Inc.
18+
Attn: Contracts Dept
19+
380 New York Street
20+
Redlands, California, USA 92373
21+
22+
email: contracts@esri.com
23+
*/
24+
125
package com.esri.core.geometry.ogc;
226

327
import com.esri.core.geometry.Envelope;

src/main/java/com/esri/core/geometry/ogc/OGCCurve.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/*
2+
Copyright 1995-2017 Esri
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+
For additional information, contact:
17+
Environmental Systems Research Institute, Inc.
18+
Attn: Contracts Dept
19+
380 New York Street
20+
Redlands, California, USA 92373
21+
22+
email: contracts@esri.com
23+
*/
24+
125
package com.esri.core.geometry.ogc;
226

327
import com.esri.core.geometry.MultiPoint;

src/main/java/com/esri/core/geometry/ogc/OGCGeometry.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/*
2+
Copyright 1995-2017 Esri
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+
For additional information, contact:
17+
Environmental Systems Research Institute, Inc.
18+
Attn: Contracts Dept
19+
380 New York Street
20+
Redlands, California, USA 92373
21+
22+
email: contracts@esri.com
23+
*/
24+
125
package com.esri.core.geometry.ogc;
226

327
import java.io.IOException;

0 commit comments

Comments
 (0)