java


template of Java primitive type


I have the following problem.
public interface parent<T> {
void getSomething(T input);
}
public interface child extends parent<Long> {
void getMore(int input);
}
Now the problem is, if I implement by:
final class realImpl implements child {
...
#Override
public void getMore(int input) {
return; /*do nothing*/
}
#Override
public void getSomething(long input) {
/*print out input*/
}
...
}
Java said
Error:(46, 14) error: realImpl is not abstract and does not override abstract method getSomething(Long) in parent
It seems that
public void getSomething(Long input) { ... }
resolves the compile issue.
However, is there a better & clear way to avoid it?
Why it should be that?
BTW,
public interface child extends parent<long> is wrong, as
Error:(23, 49) error: unexpected type
required: reference
found: long
PS: I have added #override
Thanks in advance!

Related Links

Filling an 3x3 array with random int values from 1-9 while making sure every number is only used once [duplicate]
How to propagate a `Channel closed but no message received` to a camel-route
Hibernate cannot create table hibernate_sequences
Tomcat 8 problems on download files from browser
Moving faster in libgdx?
Opinion on the use of -D jvm startup
Trying to determine if a string is an integer
Split array of dates into multiple arrays
How to create user defined Daemon thread in Java? [duplicate]
Java: find common characters in two strings
Confusion With Threads, Multithreads
Camunda BPM execution and variable scope misunderstanding
Missing Java namespace in R
Unknown character android
What does this mean and How do i fix it? [duplicate]
java.lang.OutOfMemoryError with ArrayList.addAll()

Categories

HOME
cakephp
vim
ionic-framework
webpack
oracle11g
adb
razor
spring-cloud-stream
serverspec
mouse
android-youtube-api
add
elasticsearch-hadoop
tomcat6
dax
gz
circuit
decomposition
serverless-framework
openedx
emulator
visjs
ehcache
kvc
language-agnostic
phpfox
fopen
primitive
fabric8
socialengine
google-rich-snippets
stormpath
xquery-3.0
http-get
caret
phpfreechat
form-data
mapbox-gl
android-ble
disassembling
squib
jvm-languages
android-mediaprojection
eclipse-gef
qcombobox
jedis
boost-multi-index
lowpass-filter
memory-alignment
gcsfuse
sts-springsourcetoolsuite
database-optimization
storekit
pickadate
fadeout
bluegiga
rhino-servicebus
goose
revolution-r
independentsoft
pyke
purge
microbenchmark
nsight
block-device
tween
funcunit
braille
dealloc
geos
dir
listings
excel-2003
chronoforms
orchardcms-1.7
anonymous-methods
gil
google-email-migration
nsmanagedobject
netbeans-6.9
postgresql-performance
libc++
stage
vdsp
subgurim-maps
genshi
coercion
xmlspy
horizontal-accordion
table-footer
netbeans-7.1
jmock
w3wp.exe
sudzc
infrastructure
web-architecture
webkit.net
adrotator
pascal-fc
private-members
paul-graham

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App