This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] - transition options for layer properties
- Loading branch information
Showing
33 changed files
with
2,841 additions
and
24 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...ndroid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/TransitionOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.mapbox.mapboxsdk.style; | ||
|
||
public class TransitionOptions { | ||
|
||
private long duration; | ||
private long delay; | ||
|
||
public TransitionOptions(long duration, long delay) { | ||
this.duration = duration; | ||
this.delay = delay; | ||
} | ||
|
||
public long getDuration() { | ||
return duration; | ||
} | ||
|
||
public long getDelay() { | ||
return delay; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
|
||
TransitionOptions that = (TransitionOptions) o; | ||
|
||
if (duration != that.duration) { | ||
return false; | ||
} | ||
return delay == that.delay; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = (int) (duration ^ (duration >>> 32)); | ||
result = 31 * result + (int) (delay ^ (delay >>> 32)); | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.